2009-01-21, 11:08 PM
I have a portal that requires users to login to access information. I'm working to incorporate MyBB into that portal as well.
Using MySQL insert statements, I'm creating a user account for the portal's user table. Then I return the UserID assigned in the portal, and I've created a MySQL insert statement to add the correct information into the mybb_users table using the portal UserID as the mybb_users uid (I've taken out the autoincrement flag on the uid field in the mybb_users table)
Anyhow, my web page won't run the insert statement for the mybb_users table, but runs fine on any other MySQL query I load.
I can echo the statement to the screen, copy and paste it into my query editor and it works fine.
Both the portal tables and mybb tables are in the same database, so i don't think it's a permissions issue.
On another note, I am able to update the mybb_users table when i change information, just not insert a new record.
Any suggestions please.
Using MySQL insert statements, I'm creating a user account for the portal's user table. Then I return the UserID assigned in the portal, and I've created a MySQL insert statement to add the correct information into the mybb_users table using the portal UserID as the mybb_users uid (I've taken out the autoincrement flag on the uid field in the mybb_users table)
Anyhow, my web page won't run the insert statement for the mybb_users table, but runs fine on any other MySQL query I load.
I can echo the statement to the screen, copy and paste it into my query editor and it works fine.
Both the portal tables and mybb tables are in the same database, so i don't think it's a permissions issue.
On another note, I am able to update the mybb_users table when i change information, just not insert a new record.
Any suggestions please.