Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html class="no-js" lang="en">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
- </head>
- <body>
- <?php
- //Connect To Database
- $hostname='37.187.141.39';
- $username='mc12';
- $password='6ece545c09';
- $dbname='mc12';
- $usertable='sl_creative';
- $yourfield = 'lat';
- mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
- mysql_select_db($dbname);
- $query = 'SELECT * FROM ' . $usertable;
- $result = mysql_query($query);
- if($result) {
- while($row = mysql_fetch_array($result)){
- print $name = $row[$yourfield];
- echo 'Name: ' . $name;
- }
- }
- else {
- print "Database NOT Found ";
- mysql_close($db_handle);
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement