Hey guys, I was creating an array in PHP through pulling values from two tables where the id matches and sadly I get an error.
$result = mysql_query("SELECT s1.pfiles
FROM pfiles s1, puploads s2
where s1.id = s2.id and
s2.tags = $search");
$row = mysql_fetch_array($result);
$tagdata = $row;
print_r($tagdata);
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in W:\www\fs\layout\test\tpl_tagcloud.php on line 128
If any of you could help I'd appreciate it. =)
$result = mysql_query("SELECT s1.pfiles
FROM pfiles s1, puploads s2
where s1.id = s2.id and
s2.tags = $search");
$row = mysql_fetch_array($result);
$tagdata = $row;
print_r($tagdata);
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in W:\www\fs\layout\test\tpl_tagcloud.php on line 128
If any of you could help I'd appreciate it. =)