How do I return all the row values for a given id?
require('dbc.php');
mysql_select_db($db);
$result = mysql_query("SELECT * FROM about WHERE id=".$_GET['id']);
$row = mysql_fetch_assoc($result);
echo $row['content']; // return all values instead of just content
The following will work:
But, I would suggest you move to MySQLi, for security and performance purposes. Once you do, you can use:
You could loop through this or call
implodeon it to return the values.