Hi,
This is a snippet of a code which throws the error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\phpdev\www\public\management\testsearch.php on line 48
I don't know why though. There is a value in $value, and the query runs in phpadmin. What am I missing?
foreach($keywords as $key=> $value)
{
echo $value;
$intable = mysql_query("select * from st_keyword where description = $value");
if ( mysql_num_rows($intable) == 0)
{
$inserted = mysql_query("insert into st_keyword ( description, refer_id, count)
values ('$key', '$refererid', '1'");
}
Thanks..?