0
如何在十六進制SQL查詢中格式化SQL查詢?MySQL Select Hex()輸出不起作用
$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號線是$文字= $ DS - >文本;
這工作正常,謝謝你:) – Loko