vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   sync a data base (https://vborg.vbsupport.ru/showthread.php?t=188245)

ForgotenDynasty 08-15-2008 06:36 PM

sync a data base
 
ok i have 1 bulletin forum that already has members in the data base

now i am soon to comeout with a new forum

if i Inject all the members from the first site in to the second (keeping the Member numbers)

Can i Rig it so that when a member registers on 1 site the SQL quarry is sent to Both sites?

creating members on both sites

Dismounted 08-16-2008 11:44 AM

You can create a hook to hook into the registration process - in there, you can run any PHP code you want.

ForgotenDynasty 08-16-2008 10:24 PM

im kind of new to php and am no where near coding something that advanced lol.

Since both SQL are on the same hosting (so it will be local host)i was kind of hoping someone would say connect to both databases by putting this in your Config.php
then add this to register.php to send the quarry to both MySQLs

Dismounted 08-19-2008 09:01 AM

I'm afraid keeping two tables in sync is not that easy. You have to account for changes, deletions, etc. as well.


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01012 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete