connect database : $Myconn = mysql_connect ("localhost","root","123456root"); if (mysql_select_db ("skillful", $Myconn) !=False) { print "Successfully"; } else { print "can not"; } $text="bb"; $excaped = addslashes($text); ?>