I seem to have an error but can't find it. I keep getting a mysql error.
Here is the live site:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/d/o/l/dollgenie/html/00-fgw/index.php on line 69
I used an echo to output the mysql and it works fine when I copy and paste into phpmyadmin query this is the output of the echo
I appreciate any help with this. It works fine with any other action with the dropdowns using different GET values
If you can't stand behind your troops, stand in front of them.
Semper Fidelis
Jim
Here is the live site:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/d/o/l/dollgenie/html/00-fgw/index.php on line 69
I used an echo to output the mysql and it works fine when I copy and paste into phpmyadmin query this is the output of the echo
Code:
SELECT * from images where description LIKE '%mom%' or name LIKE '%mom%' order by name
I appreciate any help with this. It works fine with any other action with the dropdowns using different GET values
Code:
foreach( $_GET as $key => $value){
if($key=='query') {
$value1='%'.$value.'%';
echo "SELECT * from images where description LIKE '$value1' or name LIKE '$value1' order by name";
$mysql=mysql_query("SELECT * from images where description LIKE '$value1' or name LIKE '$value1' order by name");
} else {
$mysql=mysql_query("SELECT * from images where ".$key."='$value'");
}
$page=1;
}
$ax=1;
echo '<table bgcolor="ffffff">';
while($row=mysql_fetch_assoc($mysql)) {
If you can't stand behind your troops, stand in front of them.
Semper Fidelis
Jim