Jump to content

View Cetain records, Edit And Delete Records Help


cnagra

Recommended Posts

[!--quoteo(post=365914:date=Apr 18 2006, 02:44 AM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ Apr 18 2006, 02:44 AM) [snapback]365914[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Just google... Here's one I found using: mysql php tutorial.
[a href=\"http://www.freewebmasterhelp.com/tutorials/phpmysql\" target=\"_blank\"]http://www.freewebmasterhelp.com/tutorials/phpmysql[/a]

Orio.
[/quote]




Use a select query and use mysql_fetch array to view a particular coloum.
Eg: try understanding the following code.. it gives the value of email stored in the database.
$name=$_POST['txt_name'];
$query="Select email from emp where Name ='$name'"

$result=mysql_query($query) or die(mysql_error());

//$numrows=mysql_numrows($resultset);
if(mysql_num_rows($result)==1 )
{

$row=mysql_fetch_array($result);
$email= $row['email'];
echo $email;
}
Perhaps your best bet is to put that idea to the side for a minute and concentrate on getting a better knowledge of php. Use the beginner tutorials on this site - they may not be specifically for what you want, but they will include elemnts you can appy to any situation.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.