Code: Select all
<?php
$result = mysql_query("SELECT * FROM bmem WHERE employer=$_SESSION['id']");
while($row = mysql_fetch_array($result))
{
echo $row['name'] . " " . $row['age'];
echo "<br />";
}
?>I know I can't use $_SESSION['id'] because of the error, so i'd appreciate if anyone could point me the direction of the correct way to accomplish the goal.
(Security is little of the essence, although never completely disregarded of course, as none of the information stored is crucial. Most of it is made up, actually.)
Thanks :]