Kirk Voclain
09-28-2004, 02:47 AM
Hello everyone....I REALLY like vBadvanced....glad I found y'all!!!
ON my old system...before I upgraded to VB3.0.3....I used vbportal...and it had an option for side boxes....you could choose HTML box, PHP box, etc.
WELL..in one of my PHP boxes....I had this coding to see people in my chat room:
{
#connect to MySQL
$conn=mysql_connect("edited", "edited", "edited")
or die("Err:Conn");
#select the specified database
$rs = @mysql_select_db("edited", $conn)
or die("Err:Db");
#create the query
$sql="select * from cb_onlineuser";
#execute the query
$rs=mysql_query($sql,$conn);
$num_rows = mysql_num_rows($rs);
return "<strong>Next Chat:</strong><br><em>Aug 30 - Open Chat</em><br><br><strong>There are currently ". $num_rows. " members in the Chat Room right now!</strong><br>Please come join us!!";
//return $num_rows;
}
OK...now I'm using vBadvanced...and frankly LOVING it!!!!!
So...how do I get the above code to work in a box????
PLEASE PREDEND I've been up for 3 days upgrading and have not slept a wink....predend I'm in the 3rd grade and I'm a CAJUN from LOUISIANA....when you try and explain it to me....THANKS!!!!!
Kirk (yes I'm from Louisiana) Voclain
ON my old system...before I upgraded to VB3.0.3....I used vbportal...and it had an option for side boxes....you could choose HTML box, PHP box, etc.
WELL..in one of my PHP boxes....I had this coding to see people in my chat room:
{
#connect to MySQL
$conn=mysql_connect("edited", "edited", "edited")
or die("Err:Conn");
#select the specified database
$rs = @mysql_select_db("edited", $conn)
or die("Err:Db");
#create the query
$sql="select * from cb_onlineuser";
#execute the query
$rs=mysql_query($sql,$conn);
$num_rows = mysql_num_rows($rs);
return "<strong>Next Chat:</strong><br><em>Aug 30 - Open Chat</em><br><br><strong>There are currently ". $num_rows. " members in the Chat Room right now!</strong><br>Please come join us!!";
//return $num_rows;
}
OK...now I'm using vBadvanced...and frankly LOVING it!!!!!
So...how do I get the above code to work in a box????
PLEASE PREDEND I've been up for 3 days upgrading and have not slept a wink....predend I'm in the 3rd grade and I'm a CAJUN from LOUISIANA....when you try and explain it to me....THANKS!!!!!
Kirk (yes I'm from Louisiana) Voclain