Can't Find What is Wrong

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gaddyf
Forum Newbie
Posts: 14
Joined: Sat Jun 13, 2009 10:09 pm

Can't Find What is Wrong

Post by gaddyf »

Code: Select all

if(mysql_num_rows($res_status)==0 && $row->total_quentity==0)
                       echo <font color="#FF8C00">"Sold"</font>;
In the above PHP code, I want the "sold" word to have a different color when posted but i keep getting syntax error message. Can someone help me with this code?

Thanks in advance
Last edited by Benjamin on Tue Jun 30, 2009 12:09 am, edited 1 time in total.
Reason: Added [code=php] tags.
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: Can't Find What is Wrong

Post by Mark Baker »

gaddyf wrote: I want the "sold" word to have a different color when posted but i keep getting syntax error message. Can someone help me with this code?

Code: Select all

 
if (mysql_num_rows($res_status)==0 && $row->total_quentity==0)
    echo '<font color="#FF8C00">Sold</font>';
 
gaddyf
Forum Newbie
Posts: 14
Joined: Sat Jun 13, 2009 10:09 pm

Re: Can't Find What is Wrong

Post by gaddyf »

Thank man. It works.
Post Reply