Lig,
Seems like you are the man on this forum so maybe you can help out a little.
I am trying to learn how to use an <href=> tag in my html.
I used this line of code:
B
passed it to this:
$db=mysql_select_db($db_name,$conn) or die(mysql_error());
$sql = "SELECT id,restName, restAddress, restCity, restState,restZip, restCuisine, restCuisine02,restType, restPhone, restFax, restWeb, deliveryRadius,
delivery_time, restHours, restFeature, restMap FROM $table_name WHERE restName = like b%;
$result= mysql_query($sql,$conn) or die(mysql_error());
//start the while loop
while ($row= mysql_fetch_array($result)) {
$id=$row[‘id’];
$restName=$row[‘restName’];
$restAddress=$row[‘restAddress’];
$restCity=$row[‘restCity’];
etc, etc,
and I get an error:
Parse error: parse error, expecting T_STRING' or
T_VARIABLE’ or `T_NUM_STRING’ in /home/western/public_html/show_rest_alph.php on line 21
I am just starting to use the url pass of the data, however, I cannot seem to get it to work. I understand the queries perfectly, but it is the php that is giving me problems.
Thanks for the help,
Brian