Worked, thanks a lot manSpray wrote:The error is correct, fetch_assoc is not a method of the PDOStatement class.
Assuming that $count_rows is a valid result set, try this following:
Code: Select all
$found_rows = $count_rows->fetch(PDO::FETCH_ASSOC);
Search found 8 matches
- Tue Nov 26, 2013 7:12 pm
- Forum: Webhosting
- Topic: Fatal error: Call to undefined method PDOStatement::fetch_as
- Replies: 2
- Views: 1220
Re: Fatal error: Call to undefined method PDOStatement::fetc
- Tue Nov 26, 2013 6:36 pm
- Forum: Webhosting
- Topic: Fatal error: Call to undefined method PDOStatement::fetch_as
- Replies: 2
- Views: 1220
Fatal error: Call to undefined method PDOStatement::fetch_as
The Error
http://puu.sh/5uqLX.png
The code
http://puu.sh/5uqLX.png
The code
Code: Select all
$found_rows = $count_rows->fetch_assoc();Re: Mysqloo
when I type rcon lua_run require([[mysqloo]])
I get
Socket connection failed (WSAEADDRNOTAVAIL)
Unable to connect to remote server (0.0.0.0:0)
I get
Socket connection failed (WSAEADDRNOTAVAIL)
Unable to connect to remote server (0.0.0.0:0)
Re: Mysqloo
oh so the addons would be the one connecting to the mysql and it needs mysqloo to connect to itkraze wrote:That is what I mentioned above. Your addon/plugin would be the one making the connection. If it requires Mysql it would detail that and provide instructions on how to have it connect.
Re: Mysqloo
I would try the link in the thread for Windows. Specifically; http://drakehawke-gmod.googlecode.com/svn/trunk/AndyVincentGMod/RELEASE/gmsv_mysqloo_win32.dll How would I edit it so it connect my mysql If I remember correctly that doesn't handle connections, it just allows the functionality. Your add...
Re: Mysqloo
How would I edit it so it connect my mysqlkraze wrote:I would try the link in the thread for Windows. Specifically; http://drakehawke-gmod.googlecode.com/s ... _win32.dll
Re: Mysqloo
That just needs to be placed into your servers FTP, in this directory "/garrysmod/lua/bin". We have a guide on how to connect to your servers FTP here, if you don't know how. http://www.nfoservers.com/forums/viewtopic.php?f=24&t=8044 I know how to long into ftp I am talking about whic...
Mysqloo
I look at the facepunch thread and it doesnt make much sense so I was wondering how to install it and were to put all the files