我在PHP下面的代码:脚本查询数据库需要帮助
$host="localhost"; // Host name
$username="***"; // username
$password="***"; // password
$db_name="***"; // 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");
mysql_select_db("$db_name");
$sql="SELECT created_at FROM rc_profile_table where created_at > 2011-04-19 08:00:00";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
$sql="SELECT created_at FROM rc_profile_relation_table where created_at > 2011-04-19 08:00:00";
$result2=mysql_query($sql);
$count2=mysql_num_rows($result);
mysql_close();
接受最近的问题。 – hsz 2011-04-20 10:05:26
请勿发布您的用户名和密码... – rsplak 2011-04-20 10:06:20
请选择您的代码,然后在提问时单击{}图标。这将格式化代码。 – 2011-04-20 10:06:51