Jump to content

cannot get the value


robert_gsfame

Recommended Posts

let say i have this

 

=================

mycolumn

=================

carrot, apple & orange

 

and i try this

$query=mysql_query("SELECT * FROM table WHERE mycolumn='carrot, apple & orange'");

$numrow=mysql_num_rows($query);

echo $numrow;

 

why do i always get 0 instead of 1 ??

I guess something caused by the comma there. How to fix it anyway?

Link to comment
https://forums.phpfreaks.com/topic/254814-cannot-get-the-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.