I am fairly new to PHP and MySQL and am trying to write a code where I display all the values of the column value where the column attribute_id = 64. This is what I have written but I can’t seem to get it to display:
<?
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'];
}
?>
Try this code-
What i added —
<?to<?php.mysql_fetch_array($result,MYSQL_ASSOC).