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>";}
  ?>

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>";}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.