mysql_connect in R40 , I don't understand the credentials
#1

Hi guys,
When I compiled with
PHP Code:
mysql mysql_connect(HOST,USER,DATABSE,PASS); 
It said tag mismatch , I didn't get what maddinat0r meant , I am pretty new to MySQL
Reply
#2

Reply anyone!?
Reply
#3

https://sampwiki.blast.hk/wiki/MySQL/R40#mysql_connect

PS: Don't bump after 7 minutes, there are rules; please follow them.
Reply
#4

Show me where you define HOST, USER, DATABSE, PASS and "mysql" variable.
Reply
#5

Nevermind, here is a fix:
Quote:

mysql = mysql_connect(HOST, USER, PASS, DATABSE)

First Pass - then Database
Reply
#6

but I don't know what to do with them..
MySQLOpt:AUTO_RECONNECT = MySQLOpt:0 makes it worse..
Reply
#7

Quote:
Originally Posted by Gotham
View Post
but I don't know what to do with them..
MySQLOpt:AUTO_RECONNECT = MySQLOpt:0 makes it worse..
My code doesn't work ?
Reply
#8

No NeXoR It still gives me warnings..
Reply
#9

Code:
new MySQL:mysql;
Reply
#10

what about
PHP Code:
cache_get_data(rows,fields,mysql?); 
?
Reply
#11

Quote:
Originally Posted by Gotham
View Post
what about
PHP Code:
cache_get_data(rows,fields,mysql?); 
?
According to the wikipedia, this function doesn't exist.
Try using this:
PHP Code:
cache_get_row_count(rows); 
Reply
#12

What about mysql?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)