Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help converting from MSSQL to MySQL

Status
Not open for further replies.

w1nn3r

ISP
Sep 12, 2001
179
0
0
US
I have a page that is written for MSSQL and need it to be for MySQL.

$uwebregrq = "exec adduser '$uwebreg_un',$uwebreg_pwd,'$uwebreg_squestion',$uwebreg_sanswer,
'$uwebreg_truename',$uwebreg_idnumber,'$uwebreg_email',
'$uwebreg_mobilenumber','$uwebreg_province','$uwebreg_city',
'$uwebreg_phonenumber','$uwebreg_address',$uwebreg_postal,$uwebreg_gender,
'$uwebreg_dob',1,$uwebreg_pwd";

adduser is the procedure I want to call.
 
Looks to me like you want to call a MSSQL only function.

If you want to add a user to MYSQL it would be something like:
CREATE USER user [IDENTIFIED BY [PASSWORD] 'password'];

And then you would issue another query to GRANT that USER different permissions.


Perhaps the MYSQL manual can be of help to you.




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I don't think that's what the MS SQL is after, vacunita. It looks like a stored function to me.

the OP would need to create the function/procedure in mysql, and name it 'adduser'. instead of exec he would, as feherke points out, use 'call'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top