Jump to content


Photo

Embedding mysql functions


  • Please log in to reply
2 replies to this topic

#1 svad

svad
  • Members
  • Pip
  • Newbie
  • 1 posts

Posted 24 June 2003 - 06:50 PM

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)) { }

#2 techiedude

techiedude
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 26 June 2003 - 07:51 PM

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?

#3 Nairb

Nairb
  • Members
  • PipPip
  • Member
  • 18 posts
  • LocationCanada

Posted 26 June 2003 - 09:50 PM

That doesnt work because you have to actually perform the query first




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users