First problem is case sensitivity.
- Code: Select all
while ($text = mysql_Fetch_assoc($result)); {
Both of these lines in your code have a uppercase 'F' which should be lowercase.
Second problem.
- Code: Select all
$query = "SELECT * FROM `EMPLOYEES` where loginName='$logname'";
In both these line, you don't need the single quotes around the table name and I prefer coding like;
- Code: Select all
...loginName='".$logname."'";
Potential third problem.
- Code: Select all
echo ''.$text['name'].'<br>
'.$text['phone'].'<br>
'.$text['email'].'';
Unless you did this when you posted the code,
PHP will think you have unterminated lines, etc.