Check your ini settings for allow_url_fopen and make sure it is turned on. Otherwise there is some problem with the way your script or server is set up outside of that. Because the code posted by you...
PHP and MySQL are processed server side to output stuff to the user.
HTML, CSS, and JavaScript are client side, they are processed by the browser to create pretty pages (or un-pretty if poorly made!)
I wrote a function to check for required fields in a form, however when the value is 0 it fails. I wrote this page to test it, and its working in the broken manner www.noas.com/test.php
Ok, we have an event coming up and I'm trying to create a management system to make it much easier for our administrative team to stay organized. We have tables of 8 in a restaurant for sale, but...
The difference here is, everything you write for jquery gets sent to the browser and interpreted client side. Everything in php is processed ahead of time, therefore you aren't worried about...
you are just assuming that all the post data is there because addme is present. One thing to do is check if its set before assigning to a variable. This is especially import with checkboxes, as they...
I don't know what editor your use, or how your variables are currently placed into the queries. But if they are inserted in a standard way thru all scripts and you use Komodo Edit you could create...
Personally I sanitize everything that can be found in a superglobal array, IE: $_GET, $_POST, $_COOKIE, and even $_SESSION tho the last may not be truly necessary. Anything hard coded, such as the...
using the proper escape_string function (in this case mysql_real_escape_string) along with building the query via sprintf is very acceptable way to sanitize input, just make sure you are typecasting...