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)) { } Quote 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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/632-embedding-mysql-functions/#findComment-2141 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.