It is currently Fri Mar 29, 2024 6:27 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: php script problem again...
PostPosted: Sat Nov 05, 2005 8:20 pm 
Noobie
Noobie

Joined: Sat Nov 05, 2005 5:30 pm
Posts: 4
ok another problem

i have a script to diplay all the data currently in my database:

<?
$user="robsmi3_user";
$password="*****";
$database="robsmi3_user";
$host="freesuperhost.com";

mysql_connect($host,$user,$password);
@mysql_select_db($database) or die("unable to connect to the database");

$query="SELECT * FROM user_info";
$result=mysql_query($query)

mysql_close();

?>



it says theres an error on line 26, line 26 is:

mysql_close();

that looks right to me, what could go wrong with that?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 9:55 pm 
<?
$user="robsmi3_user";
$password="*****";
$database="robsmi3_user";
$host="freesuperhost.com";

mysql_connect($host,$user,$password);
@mysql_select_db($database) or die("unable to connect to the database");

$query="SELECT * FROM user_info";
$result=mysql_query($query);

mysql_close();

?>

You forgot the ";" after the $result variable :)


Top
  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 8:41 am 
Noobie
Noobie

Joined: Sat Nov 05, 2005 5:30 pm
Posts: 4
lol, thanks for the help


rob


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 6:00 pm 
No Problem :)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
100WebSpace © 2011