Results 1 to 3 of 3

Thread: Error on scirpt

  1. #1
    Join Date
    Jan 2007
    Location
    Colorado
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Error on scirpt

    i am using a php script for this but the registeration page for my game is comin up with an error...
    Line: 70
    Char: 20
    Error: Undertermined String Constant
    and that is... the L in @mysql
    At: $theiremail = @mysql_fetch_array(mysql_query("SELECT * FROM `players` WHERE `email`='$email'"));




    }
    $theirname = @mysql_fetch_array(mysql_query("SELECT * FROM `players` WHERE `username`='$name' AND `deleted`!='yes'"));
    if ($theirname[id]) {
    echo "The provided username is already in use.";
    exit;
    }
    $theiremail = @mysql_fetch_array(mysql_query("SELECT * FROM `players` WHERE `email`='$email'"));
    if ($theiremail[id]) {
    echo "You already have an account!";
    exit;
    Last edited by LilDemon; 01-12-2007 at 08:03 PM. Reason: needed to add lines

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That looks like a javascript error. If it were a PHP error, the page would stop displaying at that point. If you have any external javascript linked to the page, there is a good chance that this is not what the error is really pointing to. Why not give us a link to your problem page so that we can check to see what is really causing it. I doubt that it could be the l in mysql.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If it were a PHP error, the page would stop displaying at that point.
    only a fatal error. Such as the case with include() and require(), where include tries and if it fails "generates a level of e_warning" and require just ends execution if it fails, due to it's purpose. A good portion of the time, it will stop exectuing, though.

    I can't find any PHP errors. The l can't be the issue.... just doesn't make sense.

    One test... comment out the line (slashes.. //comment... so... //linehere) and it will be ignored. If that stops the error, it's that line. If not, then it's something entirely different.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •