hmmm well i'm not to sure.. but maybe this might be the problem..
where you are listing $column,$table i thought you would have to have a space in between the , like $column, $table
i really havn't heard of this feature.. but you could check here.. about it
Split
here's what the code would look like after you added the spaces..
$query="SELECT COLUMN_NAME,TABLE_NAME FROM xxx WHERE COLUMN_NAME LIKE '" . $search . "%'";
$result2=odbc_exec($cnx, $query);
while(odbc_fetch_row($result2))
{
for($i=1;$i<=odbc_num_fields($result2);$i++)
{
echo "<table>";
list($column, $table) = split(" ",$result2, 2);
echo "<a href=http://try5.php>". odbc_result($column, $i)."is in the table". odbc_result($table, $i). "</a>";
echo "</table>";
}
}
I'm kind of having a problem myself.. do you know about the
fopen
fwrite
fclose
features? well i'm making a thing so when you login to my website you can add news... i'm using a text document to add it to.. then i want the text document to be displayed on my homepage..
add code
<?php
$fopn = fopen ("news.txt", "w");
$fwrt = fwrite ($fopn, $topic, $message);
$fcls = fclose ($fopn);
{
echo "Success!";
}
?>
print to homepage code
<?php
$fopn = fopen ("news.txt", "r");
$fcls = fclose ($fopn);
?>
are those right? My Homepage