Alright,I have one table with 4 fields,id,name,caption,and catid. I want to display name but I'm having some retarded trouble.Here's the code for the script:
<?php
echo "Welcome to Cosmic Charge";
require ('http://127.0.0.1/config.php');
//Selecting the whole table boards.
$sqlquery = mysql_query('SELECT * FROM `boards` ORDER BY `catid` ASC');
//Lists boards.
while ($row = mysql_fetch_array($sqlquery)) {
echo $row[1];
}
?>
Here's config.php:
<?php
//The DB connection file <_<
require ('http://127.0.0.1/sql.php');
//ERROR REPORTING TO DA MAX BABY
error_reporting (4095);
//Sets a variable for the time it takes to load the page.
$load_time = array_sum (explode (' ', microtime()));
?>
The SQL connect file is correct,also.All it displays is Welcome to Cosmic Charge. Nothing else.And there is a row in the DB,too.So uhh,any help is appreciated.