Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Make a MySQL Connection
- mysql_connect("localhost", "macca", "macca912") or die(mysql_error());
- mysql_select_db("test") or die(mysql_error());
- // Retrieve all the data from the "*****" table
- $result = mysql_query("SELECT * FROM ******")
- or die(mysql_error());
- // store the record of the "*****" table into $row
- $row = mysql_fetch_array( $result );
- // Print out the contents of the entry
- echo "UserName: ".$row['name'];
- echo " password: ".$row['password'];
- ?>
- (edited due to names)
Add Comment
Please, Sign In to add comment