0

Tryin to get this project to open on the server but before i can even see the php file inside i am getting errors. Solved a few but cannot see the error here hopefully ye can help.

Error 1 = SCREAM: Error suppression ignored for

Error 2 : Parse error: syntax error, unexpected '" href="' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in C:\wamp\www\Bus\bar.php on line 5

php file :

1 <?php
2 $catsql = "SELECT * FROM categories;";
3 $catres = mysql_query($catsql);
4 while($catrow = mysql_fetch_assoc($catres)){
5 echo "<a id="" href="&quot; .$config_basedir. &quot;/products.php?id=&quot; . $catrow[">".         $catrow['name'] . "</a>";}
  ?>
2
Contributors
1
Reply
17
Views
3 Years
Discussion Span
Last Post by Tpojka
0

I see there many syntax errors.
Mayby you could try this way:

$catsql = "SELECT * FROM categories";
$catres = mysql_query($catsql);
while($catrow = mysql_fetch_assoc($catres)){
    echo "<a href=" . $config_basedir . "/products.php?id=" . $catrow['name'] . "</a>";}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.