View Full Version : Keep getting a T Variable error in this script.

10-27-2009, 02:21 PM
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:

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.

Fixed :) code removed

I cant seem to get the SQL right :(

10-27-2009, 02:26 PM
Thant code doesn't give any such error for me. Are you sure that it's the public_html/userbar.php file?

10-27-2009, 03:06 PM
Are you using vbulletin? Yes im sure thats the right file :)

10-27-2009, 04:13 PM
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.

10-27-2009, 07:51 PM
I think it is vbulletin not the code itself. It seems to not allow other scripts to use its functions

10-29-2009, 12:52 PM
I fixed it, with a lot of patience and changing variables it fixed, dont know what i did but it worked :D