PHP-Code:
$sql="SELECT name FROM modells WHERE modell_id NOT IN (".$strViewedIDs.") ORDER BY RAND() LIMIT 1";
echo $sql;
$view = mysql_query($sql) or die(mysql_error());
aber du solltest aus
echo name;
$sql="SELECT name FROM modells WHERE modell_id NOT IN (".$strViewedIDs.") ORDER BY RAND() LIMIT 1";
echo $sql;
$view = mysql_query($sql) or die(mysql_error());
$view = mysql_query("SELECT name FROM modells WHERE id NOT IN (".$strViewedIDs.") ORDER BY RAND() LIMIT 1");
$view1 = mysql_fetch_row($view);
$name = view1[0];
echo $name;
EDIT:
php-tags eingefügt.
Abraxax
EDIT:
grrrrrr
Kommentar