cnagra Posted April 18, 2006 Share Posted April 18, 2006 hi i need to figure out how to view certain records, edit existing records and delete records...does anyone know of any good tutorial sites, or can help me out?thanks Quote Link to comment Share on other sites More sharing options...
cnagra Posted April 18, 2006 Author Share Posted April 18, 2006 can anyone please please help....i jus need the html and php code to input one ID, then view, edit and delete...please help Quote Link to comment Share on other sites More sharing options...
Orio Posted April 18, 2006 Share Posted April 18, 2006 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 Link to comment Share on other sites More sharing options...
christite214 Posted April 18, 2006 Share Posted April 18, 2006 [!--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;} Quote Link to comment Share on other sites More sharing options...
cnagra Posted April 18, 2006 Author Share Posted April 18, 2006 hi, im very new to php, will i put that code in a php file, what kind of html file would i have to make. i didnt understand that tutprial, can you please break it down what i have to do for me. thanks Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted April 18, 2006 Share Posted April 18, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.