Jump to content

parse error?

  • Please log in to reply
4 replies to this topic

#1 _*rc69_*

  • Guests

Posted 26 August 2004 - 07:12 PM

Parse error: parse error, unexpected $ in /home/graphics/public_html/shoutbox.php on line 79

   $result = mysql_query($query); 
    echo "<TABLE>"; 
// To modify the appearance, edit this : 
        echo "<TR> 
            <TD><font class=shoutbox> 
Posted $r[date] by <A HREF=\"mailto:$r[email]\"> 
            <TD><font class=shoutbox>$r[message]</font></TD> 
    echo "</TABLE>"; 

lines 61-79, what is that error, why's it there, how do i get rid of it?

also, if you need any more info just ask

#2 _*Dabu_*

  • Guests

Posted 26 August 2004 - 07:24 PM

change your query to

$result = mysql_query($query) or die("Mysql Error: " . mysql_error());

and tell me if you get an error. Btw that method is veyr good habbit to form because you know that you will not have any bad queries.

#3 _*Gio_*

  • Guests

Posted 27 August 2004 - 10:59 AM

Always use error reporting and all that jazz, makes it easier to find what isnt working.

#4 _*rc69_*

  • Guests

Posted 27 August 2004 - 05:18 PM

kk, i might add the error report thing (i could really use it on my forums... i cant get a mod to work right!!)

but incedently about 10 mins after i posted this i just added
to the end of the code and it fixed the error, thanks for the help :o

#5 _*Gio_*

  • Guests

Posted 28 August 2004 - 03:59 PM

Thats why you post the full code to the script ^_^

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users