Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthoretchps
    • CommentTimeMar 3rd 2008
     # 1
    I'm writing my first extension for the Vanilla community that I have inherited. I have created an additional database table that is indexed against the UserID. I am having problems with a mysql_query call to that table. After identifying the current system UserID (using $this->Context->Session->UserID) I run a simple mysql_query with returns the error RESOURCE ID #64 (or #63 or #65) depending on where the call was made.

    Any help?
    •  
      CommentAuthorFyorl
    • CommentTimeMar 3rd 2008
     # 2
    It shouldn't return an error that contains 'RESOURCE ID ...'. I thought that only happened if you tried to print out the result of an SQL query. If you want to get the error you need to print the return value of mysql_error, not the return value of mysql_query.

    Also, if you use $Context -> Database -> Execute() instead of a straight mysql_query then it will break on an error and print the value of mysql_error.
Add your comments
    Username Password
  • Format comments as