Jump to content

Which method is better?


envexlabs

Recommended Posts

Hey,

 

Just a quick question that occured today.

 

Which method is better to grab rows from a mysql database, or are they exactly the same?

 

method 1:

 

$query = mysql_query(SOME QUERY);

$result = mysql_fetch_assoc($query);

 

method 2:

 

$result = mysql_fetch_assoc(mysql_query(SOME QUERY));

Link to comment
https://forums.phpfreaks.com/topic/123322-which-method-is-better/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.