View Single Post
  #1  
Old 08-09-2006, 01:26 PM
lampard lampard is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lampard is on a distinguished road
Thumbs down T_string!!!!!!!!!!!

Getting this error but do not know why?? can u help??


Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/myaccount/public_html/folder/my account.php on line 16.
Here is the code I am working with:

PHP Code:
require "config2.php";
$query = "SELECT username, password, email, comments FROM users WHERE username=$username";
$result = mysql_query($query) or die("Could not select data from the database because: ". mysql_error());
while($row = mysql_fetch_array($result)){
echo "<b>Edit your Account</b>";
echo "<form action=account.php method=post>";
// line 16
echo "Username: ".'$row['username']'."<br> E-mail address: <input name=email type=text value=".'$row['email']'."><br /><a href=comments.php>View comments</a> <br /> -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - T_string!!!!!!!!!!!
View Single Post
  #1  
Old 08-09-2006, 01:26 PM
lampard lampard is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lampard is on a distinguished road
Thumbs down T_string!!!!!!!!!!!

Getting this error but do not know why?? can u help??


Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/myaccount/public_html/folder/my account.php on line 16.
Here is the code I am working with:

PHP Code:
require "config2.php";
$query = "SELECT username, password, email, comments FROM users WHERE username=$username";
$result = mysql_query($query) or die("Could not select data from the database because: ". mysql_error());
while($row = mysql_fetch_array($result)){
echo "<b>Edit your Account</b>";
echo "<form action=account.php method=post>";
// line 16
echo "Username: ".'$row['username']'."<br> E-mail address: <input name=email type=text value=".'$row['email']'."><br /><a href=comments.php>View comments</a> <br /> -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote