View Single Post
Old 07-02-2008, 07:15 PM   #1 (permalink)
codefreek
The Frequenter
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 408
Thanks: 220
codefreek is on a distinguished road
Application Error 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.
codefreek is offline  
Reply With Quote