I keep getting a “No data received” error, I know this is common with Google Chrome so I tried in IE and I get a connection problem error. Here is my script, I really don’t see what is causing this error.
$getAlName = mysql_query("SELECT * FROM categories WHERE id=" . $cat);
$alName = mysql_feth_assoc($getAlName);
$images = mysql_query("SELECT * FROM images WHERE category=" . $alName['name']);
while($imgs = mysql_fetch_object($images)) {
$url = $imgs->url;
$id = $imgs->id;
echo ("<img src='" . $url . "'></img>\n");
}
You need to add single quotes around your strings:
…and you also got a typo, use
mysql_fetch_associnstead ofmysql_feth_assoc($getAlName);