For your next posts (here or on any other developers forum), please keep in mind the following etiquette:
1. When you post a problem and manage to solve it yourself: always post the answer in the...
I don't mind to help out when you're stuck at a particular point, but i don't feel much like generating all the code for you. There's only three simple steps you need to take:
1. write a sql...
simply retrieve the contents of the database first and put it in a variable. echo it to the screen to make sure the variable contains the right data (temporarily as a check) and then assign that...
You're in the wrong forum, this is a javascript question.
And as such, only the generated output is relevant. This: <?php getTierOne(); ?> doesn't say anthing about your problem.
Either use the logical OR operator to merge your two ternary statements or use, for example, something like http://php.net/manual/en/function.in-array.php
whenever i had problems displaying PDF files in IE it was always because IE downloaded the file to the cache dir, then deleted it immediately because it felt it should not cache it and then (after it...
If you can make a database connection is would be much wiser to store this information there instead of a text-file.
also be careful with your concept of words. if someone downloads example.zip and...
1. try to debug this, for example, by outputting the value of $field_name. make sure preg_match is actually evaluating what you expect it to be evaluating.
2. globals are bad practice. try to...
i don't own a cristal ball, so you really have to be more specific. what is it you're expecting, and what is the actual result, what are the error messages you're getting (if...
If you have a specific problem: what is that problem?
If you're looking for a standard solution to the problem, something like this is something you could've easily found with google
There are several ways to do it. One of them is to use explode and then construct the string using the array explode gives you.
Of course, you'll also validate first that the string has the proper...
Regardless of the what you're working on, one of your goals should always be to create reusable code. Why? Simply because it will save you time (and bugs) later.
@OctoberWind
the !isset() is not necesarry: you're looping over the values of an array, so they key will always exist.
A much better approach would be to define a custom array of keys of required...