mr e
08-16-2002, 04:47 AM
ok i have a completely different page, nothing to do with vb, but here's what i have so far...
$DB = mysql_connect( "localhost", $DBUSER, $DBPASS ) or die("Could not connect to $DBNAME");
mysql_select_db( $DBNAME, $DB ) or die("Could not find database");
function view() {
$getshouts = mysql_query("SELECT * FROM shouts");
while(list($shouts) = mysql_fetch_array($getshouts, $DB)) {
echo $shouts[name];
}
...
and yes i DO have more in the view() funcion but i only listed what was neccessary, basically i can't get it to echo anything out, im only using the echo as a test to see if i can actually use the variables, i have tried quite a variety of ways but still can't figure out whats up...hope you can help :D
$DB = mysql_connect( "localhost", $DBUSER, $DBPASS ) or die("Could not connect to $DBNAME");
mysql_select_db( $DBNAME, $DB ) or die("Could not find database");
function view() {
$getshouts = mysql_query("SELECT * FROM shouts");
while(list($shouts) = mysql_fetch_array($getshouts, $DB)) {
echo $shouts[name];
}
...
and yes i DO have more in the view() funcion but i only listed what was neccessary, basically i can't get it to echo anything out, im only using the echo as a test to see if i can actually use the variables, i have tried quite a variety of ways but still can't figure out whats up...hope you can help :D