Jump to content

spiderwell

Members
  • Posts

    1,008
  • Joined

  • Last visited

Posts posted by spiderwell

  1. when i pageinate, that sounds odd for a start, anyway back on subject, i often use a select box to apply the filter, then grab it when form posts to itself (the pagenation page). but to keep the pagenation working you need to add an extra value to the string, so ?page=1&type=action.

     

    what you are describing is a filter not pageination, but you can combine the 2 . pageination shows several pages of the same dataset, changing category changes the results.

     

     

     

  2. your original post:

     

    hi everybody 

    ob_start()
    sessioon_start
    $_COOKIE['mailsent'] = $mailii;
    setcookie("mailsent",$mailii,time()+(60*30));
    
    

     

     

    your latest copy of the supposedly same code:

    setcookie("kayip",$mailii,time()+(60*30)) ;
    $_COOKIE['mail_sent'] = $row['mail_adres'];
    

     

    you have changed your setcookiee variable

     

    the error is stating it cant find the mailsent cookiee, and the reason is as incubi first stated. Although now it looks like you don't even set it at all.

     

    set a cookiee it cannot be called until after a page script ends.

     

    setcookie() defines a cookie to be sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). This requires that you place calls to this function prior to any output, including <html> and <head> tags as well as any whitespace.

     

    Once the cookies have been set, they can be accessed on the next page load ....

     

    read this for more info http://php.net/manual/en/function.setcookie.php

     

    also i don't think this line does anything: $_COOKIE['mail_sent'] = $row['mail_adres']; as = is assignment operator and im pretty sure it doesnt apply to setting cookiee values

     

  3. dude! upload the whole code, or give us a larger amount of it, its very had to tell what is going on.

     

    line 133 is basically saying the cookiee doesnt exist yet, so as the incubi above stated, you probably have set it, and then try and read it in the same execution of script

  4. depends on keyboard on my mac its right of the lefthand shift key, on my pc its to the left of 1

     

    ````````````

     

    theres some i given you for free, please copy and paste

  5. you basically need to build a cms to do it all, i know that sounds vague but its what the answer is.

     

    this will involve a lot of rather involved code that a beginner might struggle with.

     

    a good starting point would be to build a form that a user can enter a new players details with which then posts to a page that validates the input and save all of it to the database.

     

    you will also need a page that lists the users, with links from each player to edit/or delete, the edit option can link to the original form for adding a user, and be adapted to be prepopulated with that users info for editting.

     

    the database will need another table for scores, with a column that links to the users/players table so you can select scores filter by player, as well as some maths functions to show the last 6 rounds in averages.

     

    you will also need to add security to prevent sql injection, unwanted users on the site, and preventing players altering each others scores!

     

    its not a small undertaking for sure.

     

     

  6. i dont know much about it either but you probably have to specify transparancy, and in my limited knowledge of that in images, i expect you need to set background to black as that appears to be the transparency color for the original image, hence the white/black thing. i guess from that the png you create has a default background of white.

     

    so if im right you need to set background to black then set black as transparent. makes sense in my tiny mind anyways, sorry not much use of a post really

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.