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;
}
Link to comment
Share on other sites

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