07-02-2008, 07:15 PM
|
#1 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Near you.
Posts: 408
Thanks: 220
|
whats wrong in this code ? [i am learning]!
PHP Code:
<?php
class db_connect {
private $dbn; private $user; private $pass;
public function specs($dbn, $user, $pass) {
$dbtestcon = mysql_connect('$dbn', '$user', '$pass');
if (!$dbtestcon) { die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
}
}
?>
__________________
inquisitive
1. Eager to acquire knowledge.
2. Too curious; overly interested; nosy.
|
|
|
|