close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Concatenate UserName with RecordID using mysql_insert_id() during Insert

Thread began 6/24/2009 5:15 pm by Kevin373660 | Last modified 6/30/2009 11:56 am by Kevin373660 | 11180 views | 12 replies

Kevin373660

Concatenate UserName with RecordID using mysql_insert_id() during Insert

I really need some help with this, please. I am new to php and have been trying on my own for six weeks and just can’t seem to get this working. It is very important for me to get this feature working.

In my member_Registration.php page I need to insert in to the MySQL tbl_members a concat value of kidSID.mysql_insert_id() into the kidNickname field. The kidSID is the unique incremented record field.

Someone suggested putting an update command right after the insert. I have rem’d the test code out in attached. It did not work. And from another post in the forum, I read that it would be important to perform the update before the redirect. That makes since as the user session with the table would still be connected. I have tried setting up both an insert and an update with DataAssist for the same page but have not found that successful.

The closest I have come is to edit line 75 which inserts into the kidNickname field:
GetSQLValueString($_POST['kidFirstName'].mysql_insert_id(), "text"),
The result in the table for example is: Tom0. The value for the record kidSID is not being identified and is simply appended as a zero. This also disabled the Server Behaviors “Check New Username.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...