Jump to content

[SOLVED] simple, simple question


woodsonoversoul

Recommended Posts

I'll start off by saying sorry, I know this is a dumb question I should know the answer to, but I don't, so my problem is getting this output:

 

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/spindex/display.php on line 56

 

Which is a reference to this block of code:

 

52 echo $row[0];

53 echo "category  location  price";

54        echo "<table cellpadding=10 border=1>";

55        while($row = $result->fetch_array()) {

56            echo "<div id="navcontainer">";

57     echo "<ul>";

58            echo "<li>".$row[2]."</li>";

59     echo "<li>".$row[3]."</li>";

60     echo "<li>".$row[4]."</li>";

61            echo "<li><a 62href=".$_SERVER['PHP_SELF']."?id=".$row[0].">Delete</a></li>";

63            echo "</ul>";

64 echo "</div>";

 

Any help would be appreciated. I'm trying to list the contents of a row in a straight line and dabling in some CSS. It was working when it was all in php. How do I fix this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.