You cannot directly see the result of the query using mysql_query, it only calls the query in mysql.
To get the result you need to add lil things to the script, like
require_once('db.php'); $sql="SELECT * FROM modul1open WHERE idM1O>=(SELECT FLOOR( MAX( idM1O ) * RAND( ) ) FROM modul1open) ORDER BY idM1O LIMIT 1"; $result = mysql_query($sql); //echo [$result]; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { print_r($row); }
This will give you the result;
source share