06-29-2012, 03:12 AM
|
#3 (permalink)
|
|
The Visitor
Join Date: Jun 2012
Posts: 2
Thanks: 0
|
plz help me
Dear tony, now im understand,the code for $add_member = $db_object->query($result); where by this code before this connect directly from my dbconnect.php(form connect to database),however,my linux server not working WHEN IM USED THAT CODE,that why i change the code to other code like the example:
//form dbconnect.php (connect to database)
<?php
// database info
$dbhost = "localhost";
$dbname = "epameran";
$dbuser = "root";
$dbpass = "Passw0rd";
// connect to the database
mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error());
mysql_select_db($dbname) or die(mysql_error());
?>
implemented
So,that why $db_object variable,undefined. So what script should i change for $add_member = $db_object->query($result); which query should i use,im confused about this..plz help me
|
|
|
|