我在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