Mysql database all data not show

mark56z

OSNN Newbie
Joined
21 Jul 2012
Messages
9
hi guys i am example working in php and database but some time problem my table all data submit direction variable but all data now submit database.
 
HI ! I give you one example for your problem regarding data i think it will help you.

<html>

<head>

<title>Search data</title>

</head>

<body>

<table>

<tr>

<td align="center">EMPLOYEES DATA</td>

</tr>

<tr>

<td>

<table border="1">

<tr>

<td>NAME</td>

<td>EMPLOYEES<br>NUMBER</td>

<td>ADDRESS</td>

</tr>

<?

//the example of searching data

with the sequence based on the field name

//search.php

mysql_connect("localhost","root","admin");//database connection

mysql_select_db("employees");



$order = "SELECT * FROM data_employees ORDER BY name";

//order to search data

//declare in the order variable


$result = mysql_query($order);

//order executes the result is saved

//in the variable of $result



while($data = mysql_fetch_row($result)){

echo("<tr><td>$data[1]</td><td>$data[0]</td><td>$data[2]</td></tr>");

}

?>

</table>

</td>

</tr>

</table>

</body>

</html>
 

Members online

No members online now.

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
Perris Calderon wrote on Electronic Punk's profile.
EP, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there!

Forum statistics

Threads
61,993
Messages
673,359
Members
5,586
Latest member
David Milller
Back