我正在尝试将一些数据发布到数据库。该代码似乎很好,但它没有在数据库中创建新条目。我犯了什么错误?
PhP脚本:
<?php
mysql_connect('localhost','abcd','12345');
mysql_connect_db('xmytestdb');
$hello = $_POST['hello'];
$world = $_POST['world'];
$query = "INSERT INTO 'myTable' VALUES ('','".mysql_real_escape_string($hello)."', '".mysql_real_escape_string($world)."')";
mysql_query($query);
?>
问候