Announcement

Collapse
No announcement yet.

What is this error caused by!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is this error caused by!

    Well i'm making a contest script and I'm geting the fowling errors after summiting:
    Fatal error: Call to a member function on a non-object in /home/rdsx667/public_html/contest.php on line 200
    line 222 is:
    PHP Code:
             $vbulletin->db->query_write("INSERT INTO `contest_babies` (`userid`, `active`, `name`, `age`) VALUES ('".$vbulletin->db->escape_string($vbulletin->userinfo['username'])."', '0', '$name', '$age'"); 
    thank you in advanece.

  • #2
    Did you include the global.php file?
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      Originally posted by Colin F
      Did you include the global.php file?
      yes

      Comment


      • #4
        Is that within a function? If it is, be sure you've globalized $vbulletin.

        Comment


        • #5
          Originally posted by Silverwolf
          Is that within a function? If it is, be sure you've globalized $vbulletin.
          thanks it is this will help!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X