congrat's on getting your article in, especially on the front cover, i'm trying to get into php but have run into problems with mysql.
how do you get all the info from a table to be printed?, i can't seem to get anything out of my database.
<html><head>
<?php
define ('DB_USER', 'loginname');
define ('DB_PASSWORD', 'password');
define ('DB_HOST', 'server');
define ('DB_NAME', 'database');
$dbc = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die ('could not connect to mysql: ' . mysql_error() );
mysql_select_db (DB_NAME) or die ('could not select the database: ' . mysql_error() );
//all of the above works, i would really like it if someone
//reposted this with a method of echo ing everything in the
//table to the html
?></body></html>
all of the above works, i would really like it if someone reposted this with a method of echo ing everything in the table to the html
i have tried several ways but have removed them because i thought it would be easier for someone else to work with, sorry if this is off-topic.
(if you go to the news section of my website (under the home pull down menu) you can see my php work so far but that uses a txt file, not very secure, i also did the counter)
http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.