The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Can't connect to database right (PHP/MySQL)
Code:
<?php $username = "cms"; $password = "***INSERT PASS HERE****"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); print "Connected to MySQL<br>"; // make CMS the current db mysql_select_db('CMS'); or die ("Unable to connect to CMS"); print "Connected to CMS"; { $comments = mysql_real_escape_string($_GET['comments']); $body = mysql_real_escape_string($_GET['body']); $title = mysql_real_escape_string($_GET['title']); mysql_query('INSERT INTO articles (articlename , body , comments) values ($title, $body, $comments)'); } mysql_close('CMS'); ?> < |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|