Jump to content

Mysql 4 Select into


wickedinfinity

Recommended Posts

Well yes, but knowing a bit more about what exactly it is that you're trying to do would help to help you better. Anyway, try something like this:

 

$query = "SELECT COUNT(*) AS `mycount` FROM `mytable` WHERE (some condition of yours)";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
echo $row['mycount'];

Link to comment
https://forums.phpfreaks.com/topic/2848-mysql-4-select-into/#findComment-9569
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.