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 PostPerhaps you should make a bit of effort on this yourself? So far all I have seen is "gimme code" posts and no code of your own.
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.