Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Keep getting a T Variable error in this script.

    Hey, Im new here and I am making my second script for vbulletin. However I dont own a vbulletin license so I cant get help on this, I use a friends site to test this on.

    Anyway, i keep getting an error:
    Code:
    Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxxxxx/public_html/userbar.php on line 33
    This is my script. Basically I want to read data from the database depending on the UID taken from $_GET.

    Code:
    Fixed :) code removed
    I cant seem to get the SQL right
    Last edited by tommykent1210; 10-29-2009 at 11:51 AM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Thant code doesn't give any such error for me. Are you sure that it's the public_html/userbar.php file?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    really?

    Are you using vbulletin? Yes im sure thats the right file

  • #4
    Super Moderator
    Join Date
    Feb 2009
    Location
    England
    Posts
    539
    Thanks
    8
    Thanked 63 Times in 54 Posts
    I copied your text into notepad, saved it and did:

    C:\Users\ComputerX\Desktop>php -l test.php
    No syntax errors detected in test.php

    So there's something else going on here. Your code doesn't have syntax errors.
    lamped.co.uk :: Design, Development & Hosting
    marcgray.co.uk :: Technical blog

  • #5
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think it is vbulletin not the code itself. It seems to not allow other scripts to use its functions

  • #6
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I fixed it, with a lot of patience and changing variables it fixed, dont know what i did but it worked


  •  

    Posting Permissions

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