我对 PHP 和 MySQL 相当陌生,正在尝试编写一个代码,在其中显示列的所有value
值attribute_id = 64
。这是我写的,但我似乎无法让它显示:
<?
mysql_connect ("localhost","cpsdev_mage1","**********");
mysql_select_db ("cpsdev_mage1");
$sql = "select 'value' from mage_catalogsearch_fulltext
WHERE 'Attribute_id' = 64";
$result = mysql_query ($sql) or die($myQuery."<br/><br/>".mysql_error());
while($row = mysql_fetch_array($result))
{
echo $row['value'];
}
?>