Search found 8 matches

by flux
Tue Nov 26, 2013 7:12 pm
Forum: Webhosting
Topic: Fatal error: Call to undefined method PDOStatement::fetch_as
Replies: 2
Views: 1157

Re: Fatal error: Call to undefined method PDOStatement::fetc

Spray 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);
Worked, thanks a lot man :)
by flux
Tue Nov 26, 2013 6:36 pm
Forum: Webhosting
Topic: Fatal error: Call to undefined method PDOStatement::fetch_as
Replies: 2
Views: 1157

Fatal error: Call to undefined method PDOStatement::fetch_as

The Error
http://puu.sh/5uqLX.png

The code

Code: Select all

 $found_rows = $count_rows->fetch_assoc();
by flux
Sun Nov 24, 2013 9:41 pm
Forum: Garrysmod
Topic: Mysqloo
Replies: 11
Views: 3284

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)
by flux
Sun Nov 24, 2013 9:28 pm
Forum: Garrysmod
Topic: Mysqloo
Replies: 11
Views: 3284

Re: Mysqloo

kraze 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.
oh so the addons would be the one connecting to the mysql and it needs mysqloo to connect to it
by flux
Sun Nov 24, 2013 9:26 pm
Forum: Garrysmod
Topic: Mysqloo
Replies: 11
Views: 3284

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...
by flux
Sun Nov 24, 2013 9:23 pm
Forum: Garrysmod
Topic: Mysqloo
Replies: 11
Views: 3284

Re: Mysqloo

kraze wrote:I would try the link in the thread for Windows. Specifically; http://drakehawke-gmod.googlecode.com/s ... _win32.dll
How would I edit it so it connect my mysql
by flux
Sun Nov 24, 2013 9:19 pm
Forum: Garrysmod
Topic: Mysqloo
Replies: 11
Views: 3284

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...
by flux
Sun Nov 24, 2013 3:30 am
Forum: Garrysmod
Topic: Mysqloo
Replies: 11
Views: 3284

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