Jump to content
MakeWebGames

unknown column


keez123

Recommended Posts

delete or add pass_salt?

The delete option, probably isn't a good way to go, as the code requires it. You'll be in for a bit of modification to the code if you were to go for that one.

To add it, research SQL and ways to add new fields to tables.

On a side note; is this with the standard MCCodes v1, if so they should really fix that.

Edit: Meh, SRB has you sorted, I'll go do something else. >_<

Link to comment
Share on other sites

The delete option, probably isn't a good way to go, as the code requires it. You'll be in for a bit of modification to the code if you were to go for the one.

To add it, research SQL and ways to add new fields to tables.

On a side note; is this with the standard MCCodes v1, if so they should really fix that.

Edit: Meh, SRB has you sorted, I'll go do something else. >_<

i dont know what table to add it to, otherwise i know

Link to comment
Share on other sites

i dont know what table to add it to, otherwise i know

I'd take a wild stab in the dark and say `users`.

Find the code that's showing the error, look for the query containing `pass_salt` and then it'll tell you.

//Something along the lines of; if my memory of v1 serves me correctly.
mysql_query("UPDATE `users` SET `pass_salt` = '' ...); 

Edit: I've done it again, I'll leave this time I swear.

Edit: @SRB; No make your own cuppah.

Link to comment
Share on other sites

i think i found my problem, there isnt a users.php file or anything

LOL there is no need for it, the sqls go into your database not in a php file.

Your missing the whole concept maybe you should go back to mysql and learn before tempting to go further. Just saying

Login to your cpanel and click the "phpmyadmin" Icon and then select your database then select the sql tab and copy and paste the sqls... How hard?!

Or upload dbdata.sql to your ftp and start a new installation of mccodes, apparently the dbdata.sql you have does not have the pass_salt field...

Edited by lucky3809
Link to comment
Share on other sites

LOL there is no need for it, the sqls go into your database not in a php file.

Your missing the whole concept maybe you should go back to mysql and learn before tempting to go further. Just saying

Login to your cpanel and click the "phpmyadmin" Icon and then select your database then select the sql tab and copy and paste the sqls... How hard?!

Or upload dbdata.sql to your ftp and start a new installation of mccodes, apparently the dbdata.sql you have does not have the pass_salt field...

i realized all of that just after i posted

Link to comment
Share on other sites

  • 2 weeks later...

goto the file that is causing the error so for example lets say the error was only showing up when you go to gym.php

look for the query

mysql_query("UPDATE pass_salt ADD blah blah");

just a example if your using v2 should look like this kinda

$db->query("UPDATE pass_salt ADD blah blah");

just remove it and make sure the error is not showing once you are done.

or you could go to phpmyadmin and add the table in but would be better to just remove the query if its doing nothing.

hope this helps a little.

Edited by Newbie
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...