help with script!!!

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: help with script!!!
Groups: php.general 
Request: Send a blank email to php-general+get-133963@lists.php.net to get a copy of this message
Hello guys and gals!!! can you tell me why i can't get this script to print my table.... thanks Karl please check out the code below obviously i left my username and passwords blank :-) ----------------------------------------------------------------------------- -------------------------------------------------------- <? $sqlhost = "localhost"; $sqllogin = "login"; $sqlpw = "password"; $sqldb = "database table name"; (@!mysql_pconnect($sql[localhost], $sql[wedbd13], $sql[webdb13])) { die(mysql_error()); } (@!mysql_select_db($sql[wedbd13])) { die(mysql_error()); } $result = mysql_query("SELECT * FROM assignment_one"); while($array = mysql_fetch_array($result)) { echo("| %s | %s | %s | %s | %s |<br />", $array[id], $array[username], $array[password], $array[status], $array[notes]); } ?> -------------------------------------------------------------------------------------------------------------------------------------

« previous php.general (#133963) next »