Page 1 of 1

Can't Find What is Wrong

Posted: Mon Jun 29, 2009 12:20 pm
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

Re: Can't Find What is Wrong

Posted: Mon Jun 29, 2009 12:27 pm
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>';
 

Re: Can't Find What is Wrong

Posted: Mon Jun 29, 2009 10:46 pm
by gaddyf
Thank man. It works.