PDA

View Full Version : php coding????


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

Brian
09-28-2004, 01:36 PM
Have you had a look at the User's Manual available in the Member's Area here? It explains there how to create new modules and such.

Our Sponsors
 

Kirk Voclain
09-28-2004, 03:20 PM
Brian:

Thanks for the post.

YES...I've read that and frankly....I'm lost??? I do not really understand PHP....I was hoping someone could take what I put above and write exactly what I would need in a MODUEL and IN A TEMPLATE for me.....

All this stuff is so confusing???

Kirk