Re: [PHP] PHP any Mysql connection- new b

2005-01-09 Thread Zareef Ahmed
On Sat, 8 Jan 2005 16:10:47 + (GMT), babu <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I am using php 3.0 and mysql and win xp.
> i want to add users to database through php page.
> 
> adduser.php
> 
> 
> Real Name: 
> Username: 
> Password: 
> 
>  
> 
> 
> 
> 
> when i enter the fileds and submit ,the action is not performed, instead 
> add.php file is >opened.
What do you mean by it? You have action as add.php then it must be
opened. Are you getting all page code in plain text? If so please
check your php installation.
BTW php3 is outdated and I never see it running on Apache 2 with win xp.

zareef ahmed 




> add.php
>  
> $ID = uniqid("userID");
> 
> $db = mysql_connect("localhost","root","halfdinner");
> 
> mysql_select_db (userpass);
> 
> $result = mysql_query ("INSERT INTO users (id, real_name, username, password )
> VALUES ('$ID', '$real_name', '$username', '$userpass') ");
> if(!$result)
> {
> echo "User not added: ", mysql_error();
> exit;
> }
> if($result)
> {
> mysql_close($db);
> print "User $username added sucessfully!";
> }
> else
> {
> print ("Wrong Password");
> }
> ?>
> 
> is the problem due to mysql and php connection.i am using windows xp with 
> apache2.
> 
> i followed the steps said by someone in the previous thread.that is adding 
> libmysql.dll to system32 and so on. I cannot find php_mysql.dll in php.ini.
> can some one help
> 
> Thanks
> babu
> 
> 
> -
>  ALL-NEW Yahoo! Messenger - all new features - even more fun!
> 


-- 
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP any Mysql connection- new b

2005-01-08 Thread babu
Hi all,

I am using php 3.0 and mysql and win xp.
i want to add users to database through php page.

adduser.php 
 
 
Real Name:  
Username:  
Password:  

  
 
 
 

when i enter the fileds and submit ,the action is not performed, instead 
add.php file is opened.

add.php
User not added: ", mysql_error(); 
exit; 
} 
if($result) 
{ 
mysql_close($db); 
print "User $username added sucessfully!"; 
} 
else 
{ 
print ("Wrong Password"); 
} 
?> 

is the problem due to mysql and php connection.i am using windows xp with 
apache2.

i followed the steps said by someone in the previous thread.that is adding 
libmysql.dll to system32 and so on. I cannot find php_mysql.dll in php.ini.
can some one help
 
Thanks
babu
   


-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!