View Full Version : Resolved script for query a db help needed

04-20-2011, 11:52 AM
i have the following code in php:

error_reporting (E_ALL);

$host="localhost"; // Host name
$username="elemental"; // username
$password="rclogin"; // password
$db_name="traffic2"; // Database name
//$rc_profile_table="rc_profile_table"; // Table name
//$rc_profile_relation_table="rc_profile_relation_table"; // Table name

mysql_connect("$host", "$username", "$password");

$sql="SELECT created_at FROM rc_profile_table where created_at > 2011-04-19 08:00:00";

$sql="SELECT created_at FROM rc_profile_relation_table where created_at > 2011-04-19 08:00:00";



am i on the right path please?
thank you

04-20-2011, 01:50 PM
echo $count and $count2 to see if they contain results. You may have to put the date times in single quotes.