Jump to content

[SOLVED] wont insert anything into my mysql database


laron

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

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.