如何在 HEX-SQL-Query 中格式化 SQL-Query?
$query = "SELECT * FROM test";
$sql = mysql_query($query) or die(mysql_error());
while ($ds = mysql_fetch_object($sql)){
$text = $ds -> text;
echo $text;
}
查询应如下所示:
$query = "SELECT HEX(text) FROM test";
但是有一个错误:
Notice: Undefined property: stdClass::$text in /var/www/web207/html/... on line 45
第 45 行是 $text = $ds -> text;