Jump to content

Archived

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

wickedinfinity

Mysql 4 Select into

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'];

Share this post


Link to post
Share on other sites

×

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.