www.webdeveloper.com

Search:

Type: Posts; User: prouton

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,780

    Use an array variable. If you're dealing with...

    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...
  2. Replies
    15
    Views
    2,356

    Try changing to It may be legal to use...

    Try changing to It may be legal to use double-quotes in an array referral, but I can't recall having seen it done that way.
  3. Replies
    4
    Views
    1,068

    If I understand what you're trying to do (and...

    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...
  4. Thread: Error help!

    by prouton
    Replies
    22
    Views
    2,199

    No, what Tirna asked for is for you to show where...

    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...
  5. Yes, I know. No, it isn't. The problem is...

    Yes, I know.

    No, it isn't.

    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...
  6. Thread: Error help!

    by prouton
    Replies
    22
    Views
    2,199

    After making the code changes suggested so far,...

    After making the code changes suggested so far, please repost the error message you're getting and the source file.
  7. Thread: Error help!

    by prouton
    Replies
    22
    Views
    2,199

    Unlike many error messages, this one is clear as...

    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.

    Based on the functions you call...
  8. Replies
    5
    Views
    979

    I don't know why you believe "the database begins...

    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...
  9. Replies
    5
    Views
    979

    Then your problem is that $noOfEvent is always...

    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...
  10. Replies
    5
    Views
    979

    Where is $year getting set?

    Where is $year getting set?
  11. Let me see if I understand your situation: 1 -...

    Let me see if I understand your situation:

    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...
  12. Replies
    17
    Views
    2,079

    Change the first line to: $rowcount = intval(...

    Change the first line to:

    $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...
  13. You never $_GET your "s" variable from the URL on...

    You never $_GET your "s" variable from the URL on subsequent executions of the page.
  14. Replies
    2
    Views
    630

    It's not clear what your problem is, but the...

    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.

    Is the problem that the...
  15. The first piece of code appears to be part of...

    The first piece of code appears to be part of building an HTML form.

    The second piece of code creates an email using "newsletter.htm" as the body of the email.

    If the first piece of code is in...
  16. Replies
    17
    Views
    2,079

    I just want to point out that the test of "$count...

    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...
  17. Replies
    17
    Views
    2,079

    Okay, but it's still going to put nine images in...

    Okay, but it's still going to put nine images in each DIV. The inner most loop should be testing for "$i<4", not "$i<9".
  18. Replies
    17
    Views
    2,079

    Doesn't that code give you nine images in each...

    Doesn't that code give you nine images in each DIV? Oh wait, it doesn't give you ANY divs...
  19. Replies
    17
    Views
    2,079

    Before the while loop, set a counter variable to...

    Before the while loop, set a counter variable to zero.

    Inside the loop,
    -- test the counter for == zero, and if it is output an opening div
    -- test the counter for > 3, and if it is output a...
  20. Replies
    3
    Views
    730

    Here's a good explanation of using a "nonce"...

    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.
  21. Since I had a little time on my hands due to a...

    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...
  22. Well, I'm confused. You said "I want the title...

    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...
  23. Replies
    8
    Views
    1,196

    Why not take something like WordPress and dumb it...

    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...
  24. Replace the current assignment with: if (...

    Replace the current assignment with:


    if ( empty( $title )) $title = $row['title'];
  25. Thread: Test

    by prouton
    Replies
    4
    Views
    983

    Well now, you can't say that conclusively as you...

    Well now, you can't say that conclusively as you don't know what the expected results were...
Results 1 to 25 of 61
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles