Use an array variable. If you're dealing with radio buttons in a form, name each button "array_name[1], array_name[2], etc." and when the form data comes back it will already be loaded into an array...
If I understand what you're trying to do (and that's iffy since ".tmpl" files are not PHP, their meaning is application dependent), your problem is that you believe placing a variable named $includes...
No, what Tirna asked for is for you to show where the function "query" is defined and what logic it contains, not where it is used. Every function is either defined in your code, defined in a...
The problem is that you never retrieve the "s" variable the second time you enter the page (after the user clicks on the "next" link). Since $s never gets set, it...
Unlike many error messages, this one is clear as a bell. You're calling a function named "query", but it's never been defined. It doesn't exist in your PHP world.
I don't know why you believe "the database begins at 0". SQL databases are are just records that have at least one key field, but the key can be anything so long as each record has a unique primary...
Then your problem is that $noOfEvent is always going to be "set", so your test is meaningless. Once set to a value of anything other than PHP null, isset() will be true. If you're looking for...
1 - The 'news' page content is generated from WP posts.
2 - Other pages use statically defined content.
3 - The sidebar data is generated based on the...
$rowcount = intval( mysql_num_rows($rs) / 4 );
I can't think a of a quick way to fix the eighth "img". That's probably why I didn't code it that way (with a hard four...
It's not clear what your problem is, but the first thing I would do is change you math to simply multiply the price by .9 -- multiplying and then dividing is unnecessary.
I just want to point out that the test of "$count < 5" after the loop is unnecessary, as $count will never get out of the while loop set any higher than 4. It's tested immediately after being...
Here's a good explanation of using a "nonce" to validate that the action originated from your server. I'm not recommending the software -- I just found the page via Google -- I've never used it.
Since I had a little time on my hands due to a server being down, I dived into your code and came to a realization: while you are using a submit button in your page, you're not actually creating a...
Well, I'm confused. You said "I want the title to be taken from the first or 2nd rows". And while you didn't say how you'd decide if it were the first or second row, you did seem to indicate that...
Why not take something like WordPress and dumb it down? You can set the "one person" up as nothing more than an author, or editor, to limit what they can do. Pick a simple template (or use the...