Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!



mattbraymattbray Member Posts: 2

I'm trying to develop an online strategy tick-based game using php and mySQL. I'm using cookies to keep track of users logged in, one for the password and one for the username. The trouble is, when you load up a page, the values out of mySQL are not displayed, you have to refresh first. When the page refreshes, everything is fine. Why is this happening? Is there a way around it?

Thanks very much for any help

Matt Bray


  • SouldrinkerSouldrinker Member Posts: 143
    [b][red]This message was edited by Souldrinker at 2002-10-22 8:29:48[/red][/b][hr]
    I guess the matter is that the cookie is not set when the user visits the page first time.

    Do you use the same cookie on every page? Be sure that the several pages are in the same folder, otherwise the cookies will be saved as different ones.

    Cookie-Handling is described very fine in the documentation:

    If this not helps, try to give out some help-variables while your script proceeds the data, to check where the error lies, either in your sql-syntax or the cookie handling you use.

    best regards,

    sebastian mohrenstecher
    executive secretary

  • mattbraymattbray Member Posts: 2
  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ________ || || free ebooks and video tutorials about { Python MATLAB C++ PL/SQL Scratch PHP Assembly Visual Basic .NET Objective-C Perl JavaScript C Visual Basic Ruby C# Java Swift Go Delphi R Bash Scheme VBScript D Logo ML Scala Apex SAS Erlang COBOL Rust ABAP Lua Ada Lisp Alice Fortran Crystal Hack LabVIEW Dart F# FoxPro Transact-SQL Julia Awk Clojure Prolog Kotlin } ____

Sign In or Register to comment.