svad Posted June 24, 2003 Share Posted June 24, 2003 If this works: $result = mysql_query($sql); while ($array = mysql_fetch_array($result) { // do something } Why doesn\'t this work? while ($array = mysql_fetch_array(mysql_query($sql)) { } Link to comment https://forums.phpfreaks.com/topic/632-embedding-mysql-functions/ Share on other sites More sharing options...
techiedude Posted June 26, 2003 Share Posted June 26, 2003 Are you using SELECT,SHOW,DESCRIBE or EXPLAIN statements in your sql statement? What\'s the error message? Does the SQL statement return valid data? Link to comment https://forums.phpfreaks.com/topic/632-embedding-mysql-functions/#findComment-2139 Share on other sites More sharing options...
Nairb Posted June 26, 2003 Share Posted June 26, 2003 That doesnt work because you have to actually perform the query first Link to comment https://forums.phpfreaks.com/topic/632-embedding-mysql-functions/#findComment-2141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.