Jump to content

Using functions inside a MySQL query!!! please help


shane18

Recommended Posts

I understand how to do:

 

$sql = "SELECT e_mails FROM mail_useage WHERE date='".date("Y-m-d", TIME() - 18000)."'";
$sql2 = mysql_query($sql);

 

but how do i skip the extra step and put it all into one without a error...

 

like

 

*I haven't tested this, its just how I can think of how to do it.. please help me figure out how to do this*

$sql = mysql_query("SELECT e_mails FROM mail_useage WHERE date=date("Y-m-d", TIME() - 18000)");

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.