-
Posts
1,731 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Spudinski
-
Re: Gang OC not working * Topic Moved * Is there any errors that is appearing near that section? It could help to also give debugging information such as what the query array contains.
-
Re: Count Backwards :D 4909
-
Re: Counting (nr game) 1936
-
Re: How to.... There is different ways for doing the same thing, PHP is just this way. You have to find your preference in what you want to use for overcoming your task, and not look at other's preferences. In this case, extracting two rows from a database should be simple enough, but I don't see why you would want to use mysql_fetch_object to fetch it as an object? it would work, though, maybe just for syntax purposes? All the methods below would in general, do exactly the same thing - fetch an entry from the database. Edit, after pog-one posted: Wouldn't you want to initialize those variables used in the class first to avoid warnings, it would make sense to do so. Edit, after Klikoka posted: It wouldn't be selecting the ID, I doubt it would be selecting anything at all. Edit, after pgo-one posted, again: If it works, you would have to use it like this: $varName => User(id) User(id) => $worked $worked => array(userid => 1, username => name, [...])
-
Re: FIRST THOUGH! mystic
-
Re: Simple Funtions * Topic Moved * This thread doesn't supply an explanation of usage of any sort, and it is linked to DBS code - not useful for everyone, try writing about something that doesn't require any third-party framework/application/script/engine.
-
Re: Simple Question print() and echo() aren't exactly the same, replacing them, in some cases(although rare) might result to an error. One is that print() can be used within variable context, echo() can't. $variable = print 'hello world'; $variable; versus $variable = echo 'hello world'; $variable;
-
Re: Counting (nr game) 1925
-
Re: *V1* * Topic Moved * Please post in the correct section next time.
-
Re: Counting (nr game) 1915
-
Re: I need HELP and Willing to Pay It will output the exact same error, unless something is acting really irrationally on Poldar's - hosting provider's - web server. The file obviously doesn't exists, and thus the error occurs. Edit: If it successfully included and executed the first script "globals.php", it wouldn't be the problem you have in mind topmorpg. Upload that part of the engine again, the directory called "class" and all the files it contains. It is located within the archive you received upon purchasing the engine, it should fix the problem.
-
[mccode v1] BB Gun / Shoot Someone in Back!
Spudinski replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] BB Gun / Shoot Someone in Back! ALTER TABLE `users` ADD `bbgun` INT( 11 ) NOT NULL DEFAULT '0'; ADD `bbdamage` INT( 11 ) NOT NULL DEFAULT '0', ADD `bbfired` INT( 11 ) NOT NULL DEFAULT '0'; Becomes; ALTER TABLE `users` ADD `bbgun` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `bbdamage` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `bbfired` INT( 11 ) NOT NULL DEFAULT '0'; Reference: http://dev.mysql.com/doc/refman/5.0/en/alter-table.html -
Re: Magic Quotes Help You are using SSH, it's good enough to change the configuration of PHP. It seems to me like you don't have the right file at hand, try locating all the PHP configuration files with the following command. find /etc/ -name php.ini It will list the PHP configuration files, and then use your text editor of choice to edit the file and change the value. If you don't find the correct file after that, maybe take a look at your PHP configuration, and look for the path of the configuration file. To do this, create a file with the following contents, within the document root that apache uses(web dir). <?php phpinfo(); ?> Navigate to the page within your browser(to the file name you saved the script as), and look for the value "Loaded Configuration File", it displays the path of your php configuration file. Then using SSH, open the file in a text editor of your choice, and look fir the following line: ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off And change it to; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = On Restart apache, and it should work now. If all else fails, read this: http://www.gsdesign.ro/blog/how-to-chan ... d-servers/
-
Re: Hi | TheMafia Greetings... I hope you enjoy it here. :)
-
Re: ispy ( not a rip-off of apple ) Tasks?
-
Re: Counting (nr game) 607.9718826
-
Re: Firefox 3 Opera Dragonfly is a new release of Opera, for web developers. It contains allot of vital debugging tools, I wouldn't be surprised if better than firebug. http://operawatch.com/news/2008/02/what ... ment-73057 Anyways, every application has it's perks, as well as their own fans.
-
Re: How To Install Pirjc * Topic Moved *
-
Re: Support Needed The event_add() function uses a query to insert a record into the database, and you are using the same variable for all the queries. They all *will* output the same error, for the reason I have supplied earlier. I have given you advice on how to solve this problem, now it's time you help yourself.
-
Re: Captcha verify Making it appear on random pages, and at random times would be most effective.
-
Re: Support Needed For some reason the variable $user is empty, thus the query error. MySQL, in this case, cannot update the column with the null value, so the error occurs. $user=$_POST['userid']; I'm hoping this is not direct input from a user, that is then used in a query desensitized. My guess here is that your meaning for this was to just use the current "userid", if so then use the below. $user = $ir['userid']; If it isn't you intention, first sanitize the input variable, and also check if the POST array contains any value at the key "userid". This can be done by using an debugging function, you can place it near where the input variable is used. var_dump($_POST);
-
Re: [FAQ] Quotes, and heredoc Very useful FAQ Floydian, a great reference for beginners tempted to learn about PHP.
-
Re: Security! The most probable scenario would be to prevent XSS attacks. Reference: http://php.net/strip_tags