$connect = mysql_connect('email.dev', 'root', 1234, 'db_name');
$query = "INSERT INTO mail VALUES (1, 'guest', 'XYZ', '2000', 'NOW', 1)";
mysql_query($connect, $query);
PHP Warning: mysql_query() expects parameter 1 to be string, resource given in
$connect = mysql_connect('email.dev', 'root', 1234, 'db_name');
$query = "INSERT INTO mail VALUES (1, 'guest', 'XYZ', '2000', 'NOW', 1)";
mysql_query($connect, $query);
mysql_query($query, $connect) or die(mysql_error());
Цитата (Oggy @ 7.05.2013 - 20:06) |
$connect = mysql_connect('email.dev', 'root', 1234, 'db_name'); |