Code: Select all
<?php
include("connect.php");
$result = mysql_query("SELECT * FROM table ORDER BY id ASC");
$row = mysql_fetch_array($result);
?>Code: Select all
<?php
$link = mysql_connect("localhost", "username", "xxx") or die("Could not connect");
mysql_select_db("db_name") or die("Could not select database");
?>Code: Select all
<?php
mysql_close($link);
?>Thanks!