Why can't this code display my result?
| From: | Ardani Sarjito | Date: | Thu, 10 Feb 2000 23:06:26 +0000 |
| Subject: | Why can't this code display my result? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62111@lists.php.net to get a copy of this message | ||
hi everyone!
I'm new to PHP.
I don't know why I can't make this page work.
it doesn't show my search result.
Any help would be appreciated.
This script is driving me nuts! :-)
Thanks!
<?php
$connect = mysql_connect("localhost","user_name","password");
$select_data = mysql_select_db("ardani_cd_collection");
$query = "SELECT * FROM main where description = '$song_title'";
$result = mysql_query($query);
while($row = mysql_fetch_row($result))
{echo "<table
border='1'>","<TR>","<TD>",$row[1],"</TD>","<TD>",$row[2],"</TD>","<TD>",$ro
w[3],"</TD>","<TD>",$row[4],"</TD>","<TD>",$row[5],"</TD>","</TR>","</table>
";}
?>