Jump to content

select question

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
techker

techker

    Programmer

  • Members
  • PipPipPipPip
  • 136 posts
hey guy im trying to extract from my database the number of clients loggin in on the date selected.


$q3 = "SELECT COUNT(*) AS Number FROM `scan_stats` WHERE 'login_date' = $date_issued";

$res3 = mysql_query($q3);

$row3 = mysql_fetch_assoc($res3)




<?php echo $row3['Number'] ?>


scan_stats table
`id` `member_id` `login_date` `time`

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,298 posts
yes? seems correct for me? except for the apostrophes around login_date, use `, not ' for table and column names as you do at scan_stats
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall