Raised This Month: $ Target: $400
 0% 

Mysql Set Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-17-2010 , 11:59   Mysql Set Model
Reply With Quote #1

im getting the modelname out of a databas ( mysql )

What is wrong in this Part ?

PHP Code:
new tmp SQL_ReadResult(Query3)

    new 
tmp2 tmp
    
    cs_set_user_model
(idtmp2 
And what is false here
/ How i use Variables in cs_set_user_model?

Thanks
__________________

Some People brings Happynes by Coming
Some by Going

Last edited by Stylaa; 10-17-2010 at 13:23.
Stylaa is offline
Send a message via ICQ to Stylaa
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-17-2010 , 14:13   Re: Mysql Set Model
Reply With Quote #2

Modelname is a string, you need to use array to store it.
PHP Code:
new tmp[32]
SQL_ReadResult(Query3tmp31)

new 
tmp2[32]
copy(tmp231tmp)   //I don't know why do you copy it to another variable, but this is how you do it with arrays
cs_set_user_model(idtmp2 
__________________
Impossible is Nothing
Sylwester is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode