View Single Post
  #2 (permalink)  
Old Aug 4th, 2006, 22:29
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Suddenly having trouble..

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.
Reply With Quote