Jump to content
MakeWebGames

Profile signature trouble WEIRD 0_o


Renkia

Recommended Posts

Having abit of trouble with the profile signature. Dont see the problem.

GOT FROM [mccode] Profile Signatures PAGE 3

Fatal error: Call to a member function query() on a non-object in /home/chaotic/public_html/preferences.php on line 155

LINE 155:

$db->query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c);

 

SQL

[mysql]ALTER users ADD `signature` text NOT NULL;[/mysql]

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'users ADD `signature` text NOT NULL' at line 1

MySQL Version: 5.1.40

Any idea how to help? Also mind telling me the problem and try explaining why it isnt working. Could help me on my progress. Cheers :thumbsup:

Link to comment
Share on other sites

Error say's it all :)
Quoted

 

Fatal error: Call to a member function query() on a non-object in /home/chaotic/public_html/preferences.php on line 155

You need to define $db, global $db;
Ok sorry but i havnt came across the word Define before but im suggesting...

$db, global $db->query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c); I Hope its right 8o

?(

Cheers immortal. :thumbup:

Link to comment
Share on other sites

CHAR( ) A fixed section from 0 to 255 characters long.

VARCHAR( ) A variable section from 0 to 255 characters long.

TINYTEXT A string with a maximum length of 255 characters.

TEXT A string with a maximum length of 65535 characters.

BLOB A string with a maximum length of 65535 characters.

MEDIUMTEXT A string with a maximum length of 16777215 characters.

MEDIUMBLOB A string with a maximum length of 16777215 characters.

LONGTEXT A string with a maximum length of 4294967295 characters.

LONGBLOB A string with a maximum length of 4294967295 characters.

Quote from htmlite

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...