当我运行mysql_real_escape_string($value)时,我得到了这个错误。Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to MySQL serverfunction __get($value) //in order for this to work properly, I must have a live connection
我在我的数据库中查询用户的youtube用户名。如果为Null,则需要显示"Missing Username“。我不知道如何判断结果是否为空。comprofiler WHERE id=$userid";
$youtubeusername=$db->loadresult() or die(mysql_error