Jump to content

[SOLVED] wont insert anything into my mysql database


laron

Recommended Posts

Check out this site, shows you how to turn on error reporting via htaccess

 

http://support.easystreet.com/hosting/unix/dynamic-config.htm

 

seach the page for "Show PHP Errors" to get to the right spot

 

Once you get error reporting going it should hopefully become clear where the problem lies....

use this as your query:

 

<?$sql = "INSERT INTO users (username,password,email,firstname etc.......

?>

 

You only have to use the backtics if you are using a reserved sql function as a row/cell like date that is other than the sql native funtion.

Maybe I guess, but I would think on a commercial server all accounts would have access

 

Do you have phpMyAdmin (or something similar) access?

 

Try going in there and inserting the query using the SQL window.  I would think that error reporting in phpMyAdmin would be on by default?

Well, I guess its probably not permissions then.  Its going to be hard to diagnose the problem without error reporting switched on.  Heard anything from your webhost yet?

 

I just had a thought.  Are you using addslashes() on your values before you insert them into the database?  Perhaps there is an apostrophe or something in the data that is tripping things up?

well, i solved the problem. not by using the current database that ive been posting about, but since i have wordpress running on the same site i just created a new table in that database vs. creating a whole new database.  it seems to work flawlessly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.