Jump to content

quick problem


jwk811

Recommended Posts

    $sql = "SELECT max(size) FROM products";

 

    $result = dbQuery($sql);

 

$row = mysql_fetch_assoc($result);

extract($row);

$size isnt an option? how can I get the number of the max size?

 

(functions are fine, just simplified)

 

SELECT max(size) AS max_size FROM products

 

Now use max_size as the col name.

 

Best,

 

Patrick

Link to comment
https://forums.phpfreaks.com/topic/38714-quick-problem/#findComment-185976
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.