php - probably wood for trees - mysql won't return fulldataset -
i run following php , first record in table , that's it, array containing 1 element.
$sql = 'select id users'; $pass = mysql_query($sql); var_dump($pass); $row = mysql_fetch_assoc($pass); var_dump($row); but exact same sql fed straight database gives me full dataset, on 300 records. flip doing wrong php?
thanks :)
you have loop through each row:
$sql = 'select id users'; $pass = mysql_query($sql); while( $row = mysql_fetch_assoc($pass) ) { var_dump($row); }
Comments
Post a Comment