Jump to content

fugix

Members
  • Posts

    1,483
  • Joined

  • Last visited

Posts posted by fugix

  1. to adress your question...you can add meta tags to certain pages so they will not cache...

    use

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">

    along with

    <META HTTP-EQUIV="Expires" CONTENT="-1">

  2. // do the user related ones

    $assoc = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['username']."'"));

    $username = $assoc'['username']';

    $ranknum = $assoc['rank'];

    the undefined constant....

    yep, i know where the constant is where the error is triggered..and ive provided an explanation...first step is to fix the query..which im guessing isnt working because $_SESSION['username'] is not set..

  3. Undefined constant warnings are caused by undefined constants.

    however a constant isn't called in his script therefore the parser must be confused by his syntax.. since hes trying to call out username from his query but his query is failing

  4. i would break it down into a few more lines than you are using. e.g

    $assoc = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['username']."'"));
    $username = $assoc'['username']';
    $ranknum = $assoc['rank'];

    change to

    $query = mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['username']."'");
    $assoc = mysql_fetch_assoc($query);
    $username = $assoc['username'];
    $ranknum = $assoc['rank'];

    also, the mysql_fetch_assoc() errors you are receiving is because your queries are not correct. The undefined constant error is most likely due to your query failing

  5. I'm sure most of you will have heard about the new EU privacy law, set to come into effect on the 25th May. The law will require users to give consent to websites for storing cookies on their computer. What will happen with tracking software? Surely not every other page you visit you'll have pop-ups requesting to create some cookies? It's going to be a usability nightmare, or the end of accurate cookie-based tracking.

     

    I also love it how in the UK we've got the "Department for Culture, Media and Sport" in-charge of producing the guidelines, who apparently are leading the way in Europe and are quoted saying: "The advertising market is good at circumventing technology-specific laws." So the EU has collectively created this law, only for each country to find ways around it?

     

    What's the point? Who thought this was a good idea?

    wow, i think thats a bad idea, will only create problems

×
×
  • 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.