Menu

parse error, expecting `T_VARIABLE'

al katraz
2003-01-31
2003-01-31
  • al katraz

    al katraz - 2003-01-31

    Great script by the way!

    I've got the first 2 scripts working (inserting) and am working on the listing script, but I keep getting this error:

    Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/alkatraz/www/nwnstore/clubcard/restricted/lister.php on line 149

     
    • al katraz

      al katraz - 2003-01-31

      line 149 =             <? $1year=mysql_result($resultall,$x,"1year"); ?>

      hmm i'm just thinking.. could it be that this field is empty in the Database and its causing this error?

      Is there code that takes a null value and put's NA or something?

       
      • al katraz

        al katraz - 2003-01-31

        nevermind, that has a value in the database

        that can't be it

         
    • Nilesh Dosooye

      Nilesh Dosooye - 2003-01-31

      u're getting this error.. because

      $1year is an invalid variable name.. try removing the 1 and calling ur variable $year and that should work...

       
    • al katraz

      al katraz - 2003-01-31

      awesome that worked!

      Thx!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.