No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
From first glance it looks like you've placed echo above the header location script. Headers must be parsed before any HTML, and for some reason (Unknown by me, but I'm sure others can answer why) certain hosts don't like it when you place any HTML above header tags. I would …
Hi there I've got an Acer Notebook (The exact model escapes me, but when I get home I will post it) running Windows XP. Anyway, it runs great. The one thing I noticed is it has trouble with images. Particulary gradient images. A smooth gradient on my old screen is …
Gaia uses a PHP based system. Basically they have thousands of images of items, and when you click the "items" it will add the particular image to your avatar, and when you save it outputs it as a PNG image. I'd first suggest reading up and learning about PHP + …
For those who got a error with the num rows, I suggest you add the error dispaly for the sql error message. if(!$result){die(mysql_error();} Stick that below the query, it will give a specific message about what is wrong with the query. There isn't a problem with the num_rows function usually, …
Hi there, I was wondering if it was possible to set up some sort of condition so there are seperate error documents for normal files and images. Basically I'd like it so if a png image was called and it doesn't exist, I can return another image. But if a …
You can look up AJAX, which is php functions executed on the fly by javascript. That's probably what would work for you.
To get a specific thing out of the array, you can use [code=php]$array = mysql_fetch_array($result); $whatever = $array[columnname][/code] where $result is the executed query, and $columnname is the name of the column you want. Or if its just one use: [code=php]$whatever = mysql_result($result,0);[/code] where 0 is the position of the …
I'm not exactly sure. However, there is a way to get the query to say if there is an error with that. [PHP]if(!$result){die(mysql_query());} // This will halt the script and display the sql error if the query failed to run[/PHP] You should be able to then see if you have …
I would suggest using Javascript to validate the form, and then once the form has been sent validate it again using php. Javascript validation is easy, just google for "Javascript Form Validation" and pleanty of examples appear. The reason you must validate again using Php is because user's can disable …
Are you using similar IDs in each style sheet? Each element should have an id which sepearates it from everything else. This is all I could think of at the moment.
Another idea is to also include a javascript validation. There are plenty of tutorials found through google. Just look up "Javascript Form Validation". That way when the button is clicked, the form is instantly checked and a message displayed at that moment without a page having to be reloaded. However, …
The End.