Jump to content

Parse error: parse error


mdvignesh

Recommended Posts

I want to retrive data in textbox from databse

 

 

I get this error

Parse error: parse error in C:\wamp\www\mariyano\profile.php on line 20

 

I have upload the file

 

<?php
//echo "<div align='center'><h3>profile</h3><br></div>";
//<p> Name: <input type="text" value=vignesh name="name"></p>
//Email: <input type="text" value=mdviky@gmail.com name=email>

include("connect.php");

if(!$cn)
{
die('could not connect' . mysql_error);
}

echo "<a href='signin.php'><h3>Sign in</h3></a> <br/>";  //remember to put single quotes in url

$qry=mysql_query("SELECT * FROM pro");

while($row=mysql_fetch_array($qry))
{
$name=echo $row['name'];
$mobile=echo $row['mobile'];
$email=echo $email['email'];
//echo "profiles". "<br/><br/>";
echo $row['name'] . $row['mobile'] . $row['email'];
}
/*<html>

<head>
<title> profile </title>
</head>
<body>
<h3>
Profiles<br/><br/>
Name: <input type='text' name='name' value="<?php 
echo "jhj";?>">
<br/>
Mobile: <input type='text' name='mobile' value="<?php $mobile?>">
<br/>
Email: <input type='text' name='email' value="<?php $email?>">
</h3>
</body>


$name=echo "$row['name']";
$mobile=echo "$row['mobile']";
$email=echo "$row['email']";

*/
if(mysql_query($qry,$cn))
{

die('error' . mysql_error());

}

echo "<h3>Profiles</h3><br/><br/>";
echo "Name: <input type=\"text\" name=\"name\" value=\"$name\"> ";
echo "<br/>";
echo "Mobile: <input type=\"text\" name=\"mobile\" value=\"$mobile\"; ";
echo "<br/>";
echo "Email: <input type='text' name='email' value=\"$email\"; ";
?>

 

Please help its urgent

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.