$conn_sv = "localhost"; //Host โดยปกติจะเป็น localhost
$conn_user = "root"; //Username สำหรับเชื่อมต่อไปยัง SQL
$conn_pwd = "password"; //Password
$conn_db = "atutor15_beta"; //Database name
@mysql_connect($conn_sv, $conn_user, $conn_pwd) or die(mysql_error());
@mysql_select_db($conn_db) or die(mysql_error());
$sql_query = ("select * from at_courses where title LIKE '%en%'");
$query = @mysql_query($sql_query) or die(mysql_error());
$num = @mysql_num_rows($query);
echo $num;
if ($num >= 1) {
$row = mysql_fetch_array($query);
echo "statusdata=ok";