Hai All i want a code that fetches a row in a sql database named student and display the result in a table format.........i am a newbie in php................please Help me
shahaz
0
Newbie Poster
Recommended Answers
Jump to Post$con=mysql_connect("servername", "username", "password");//'localhost','root','' if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("shahaz", $con); $string = ("select * from student where Reg= '$Register No'); $query = mysql_query($string) or die (mysql_error()); $query = mysql_query($string) or die (mysql_error()); $result = mysql_fetch_array($query); if($result==true) { do { echo "<table><tr>"; echo …
Jump to Postsee this link
or
see this code
<h2>Search</h2> <form name="search" method="post" action="<?=$PHP_SELF?>"> Seach for: <input type="text" name="find" /> in <Select NAME="field"> <Option VALUE="fname">First Name</option> <Option VALUE="lname">Last Name</option> <Option …
All 8 Replies
dandixon
0
Junior Poster in Training
shahaz
0
Newbie Poster
raju_boini525
0
Junior Poster in Training
shahaz
0
Newbie Poster
raju_boini525
0
Junior Poster in Training
shahaz
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
sainigks
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.