Jump to content

Dual Registration


Greaser9780

Recommended Posts

I'm helping a guy out with a site that has a seperate login for the site and one for the vbulletin forum. I plan on revising his main site script so it will automatically register at both places. In the tables I found a couple of places where I will need to change the varchar count so that both fields accept the same number of characters. I am also going to need to insert a mysql_insert_id since the site table doesn't have an id field.Although I think it should.All I plan on doing is sending the appropriate required info into the vb_users table right after it gets sent to the site users table. Is there any special syntax I will need to use to put in one query right after another???  Also if anybody else has any ideas to help feel free to share.

Link to comment
https://forums.phpfreaks.com/topic/39040-dual-registration/
Share on other sites

You can run two queries in one call by seperating them with ";", but that's usually a bad idea.  Just do the queries seperately.  There's no advantage to doing them together (if that's what you were thinking of doing).  The disadvantage is that you won't get information about the success or failure of each query seperately, which is really what you need.

 

I would make sure that the same character set restrictions apply to usernames both systems (eg only alphanumeric, underscore, no spaces, etc etc).  Otherwise things may work fine now, then suddenly break when someone gets creative with usernames.

Link to comment
https://forums.phpfreaks.com/topic/39040-dual-registration/#findComment-188425
Share on other sites

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.