Insert into more than 1 database:PHP

I have a table called vendor_keys.
It has 2 fields:
1. vendor_name
2. key_provided.

The Same table is inside 3 databases.And I want to insert the details into all 3 databases at once.
Following is the code to insert details into 3 databases.

<?php
header("Access-Control-Allow-Origin: *");
$vendor_name=$_POST['vendor_name'];
$key_provided=$_POST['key_provided'];
$password=$_POST['password'];

$servername = "localhost";
$username = "root"; //replace with your username
$password = ""; //replace with your password

$database1 = "db1"; //replace with your first database name
$database2 = "db2"; //replace with your second  database name
$database3 = "db3"; //replace with your third database name
$dbh1 = new mysqli($servername, $username, $password, $database1);

if($dbh1->connect_errno > 0){
die('Unable to connect to database' . $dbh1->connect_error);
}

$dbh2 = new mysqli($servername, $username, $password, $database2);
if($dbh2->connect_errno > 0){
die('Unable to connect to database' . $dbh2->connect_error);
}

$dbh3 = new mysqli($servername, $username, $password, $database3);
if($dbh3->connect_errno > 0){
die('Unable to connect to database' . $dbh3->connect_error);
}

$add_vendor="INSERT INTO `vendor_keys`(`vendor_name`, `key_provided`) VALUES ('$vendor_name','$key_provided')";

$sql1 = mysqli_query($dbh1,$add_vendor);
$sql2 = mysqli_query($dbh2,$add_vendor);
$sql3 = mysqli_query($dbh3,$add_vendor);

echo "<br>";
echo 'VENDOR ADDED SUCCESSFULLY.<br>';

?>

904 thoughts on “Insert into more than 1 database:PHP

  1. Pingback: Google
  2. Pingback: apunts 2961
  3. Pingback: hunting equipment
  4. Pingback: male bondage gear
  5. Pingback: Food coupons
  6. Pingback: Sad Shayari
  7. Pingback: kegel weight balls
  8. Pingback: FIFA 19 Coins
  9. Pingback: Chicago SEO
  10. Pingback: Detroit SEO
  11. Pingback: Google
  12. Pingback: multqa.ae
  13. Pingback: best wand massager
  14. Pingback: body massager wand
  15. Pingback: best penis ring
  16. Pingback: Big Dick
  17. Pingback: chwilówki
  18. Pingback: girth enlargement
  19. Pingback: giant dildo
  20. Pingback: pink jelly dildo
  21. Pingback: anal vibrator
  22. Pingback: mail order bride
  23. Pingback: #workfromhomejobs
  24. Pingback: brazzers porn
  25. Pingback: Ravishing Rabbit
  26. Pingback: top anal sex toys
  27. Pingback: Store
  28. Pingback: fun88
  29. Pingback: 188bet
  30. Pingback: free app for pc
  31. Pingback: milf dating
  32. Pingback: live sex
  33. Pingback: full apps download
  34. Pingback: rencontres adulte
  35. Pingback: sexo ao vivo
  36. Pingback: deluxe thruster
  37. Pingback: douching
  38. Pingback: pocket pussy
  39. Pingback: Speelgoed bol
  40. Pingback: testicle ring
  41. Pingback: Gurgaon
  42. Pingback: cock ring
  43. Pingback: daniels sex toy
  44. Pingback: silver bullet toy
  45. Pingback: webcambabes
  46. Pingback: sexe webcam
  47. Pingback: double ended dildo
  48. Pingback: wall mounted dildo
  49. Pingback: sex toys
  50. Pingback: pocket stroker
  51. Pingback: 10 inch dildo
  52. Pingback: strapless strapon
  53. Pingback: increase penis
  54. Pingback: vibrator for her
  55. Pingback: vibrator sex toy
  56. Pingback: real dildo
  57. Pingback: Porn
  58. Pingback: jelly anal plug
  59. Pingback: Snovitra Strong
  60. Pingback: easy online loans
  61. Pingback: froggyads.com
  62. Pingback: app test
  63. Pingback: l2740dw driver
  64. Pingback: вибицес
  65. Pingback: penis enlarger
  66. Pingback: dp cock ring
  67. Pingback: dildo reviews
  68. Pingback: vibrating panty
  69. Pingback: 15% minoxidil buy
  70. Pingback: buysteriods
  71. Pingback: satta king
  72. Pingback: double sided video
  73. Pingback: giant dildo
  74. Pingback: anal plug kit
  75. Pingback: porn
  76. Pingback: pornland
  77. Pingback: dp fantasy ring
  78. Pingback: oral sex
  79. Pingback: hiking
  80. Pingback: male stroker
  81. Pingback: Verordnung
  82. Pingback: ssru.ac.th
  83. Pingback: big black dildo
  84. Pingback: bullet vibrator
  85. Pingback: porn
  86. Pingback: big dildo
  87. Pingback: body stocking
  88. Pingback: Viagra
  89. Pingback: Invest Togel
  90. Pingback: bdjobs bangla
  91. Pingback: Pakistani Suits
  92. Pingback: Fashion Station
  93. Pingback: sexboer
  94. Pingback: porno files
  95. Pingback: gratis films
  96. Pingback: pornofilmpjes
  97. Pingback: iptv definition
  98. Pingback: liteblue
  99. Pingback: wanachi massager
  100. Pingback: slim dildo
  101. Pingback: virtual visa card
  102. Pingback: unboxing vibrator
  103. Pingback: travel
  104. Pingback: vacuum pump
  105. Pingback: hundeseng xxl
  106. Pingback: nipple sex
  107. Pingback: plus size dildo
  108. Pingback: walmartone login
  109. Pingback: gay porn
  110. Pingback: type 1 diabetes
  111. Pingback: hotmail connexion
  112. Pingback: pink vibrator
  113. Pingback: bondage equipment
  114. Pingback: bondage equipment
  115. Pingback: bjs holiday hours
  116. Pingback: wand massager
  117. Pingback: my first willy
  118. Pingback: gay lube
  119. Pingback: podcast
  120. Pingback: blowjob tips
  121. Pingback: Free Funding
  122. Pingback: sbobet online
  123. Pingback: power rod vibrator
  124. Pingback: mojopc
  125. Pingback: Att.net Mail
  126. Pingback: Walmartone login
  127. Pingback: hasta karyolası
  128. Pingback: seo consulting
  129. Pingback: mesh jockstraps
  130. Pingback: pussy masturbator
  131. Pingback: boho jewelry
  132. Pingback: couples toys
  133. Pingback: penis vibrator
  134. Pingback: doc johnson
  135. Pingback: mide 675
  136. Pingback: YtMp3
  137. Pingback: Baccarat Strategy
  138. Pingback: onewalmartwire.com
  139. Pingback: security
  140. Pingback: msn hotmail
  141. Pingback: blk 418
  142. Pingback: glass toys
  143. Pingback: mom sucks dick
  144. Pingback: Likes
  145. Pingback: New Music In Ghana
  146. Pingback: big dildos
  147. Pingback: top sex toys
  148. Pingback: best wand massager
  149. Pingback: sex video download
  150. Pingback: money exchanger
  151. Pingback: cawd 003
  152. Pingback: how to guitar solo
  153. Pingback: agen judi online
  154. Pingback: laptop app
  155. Pingback: app for laptop
  156. Pingback: عکس سکسی
  157. Pingback: Buy exotic carts
  158. Pingback: Boston Car Service
  159. Pingback: Eweka
  160. Pingback: stump removal
  161. Pingback: student grants
  162. Pingback: walmart schedule
  163. Pingback: bullet vibrator
  164. Pingback: العاب
  165. Pingback: exotic cartridges
  166. Pingback: dank carts
  167. Pingback: Dank Vapes
  168. Pingback: cakes
  169. Pingback: Teen Swallow Live
  170. Pingback: Tramadol for Dog
  171. Pingback: Tramadol Online
  172. Pingback: ABP 897
  173. Pingback: runelite
  174. Pingback: mygiftcardsite
  175. Pingback: one walmart login
  176. Pingback: JAV
  177. Pingback: Women clothing
  178. Pingback: 618media.com
  179. Pingback: basketball
  180. Pingback: adam and eve toys
  181. Pingback: Revit Crack
  182. Pingback: Iot news
  183. Pingback: valium for sale
  184. Pingback: MyCard ADP Login
  185. Pingback: jockstraps for gay
  186. Pingback: gay toy bondage
  187. Pingback: anal lube
  188. Pingback: IPX 363
  189. Pingback: gold investment
  190. Pingback: anal cleaner
  191. Pingback: SEO Vancouver
  192. Pingback: Dadar Escorts
  193. Pingback: GVG 941
  194. Pingback: bullet egg
  195. Pingback: full apps download
  196. Pingback: anal sex trainer
  197. Pingback: milfgilf
  198. Pingback: OYC-278
  199. Pingback: sewa led screen
  200. Pingback: air Jordan
  201. Pingback: افلام سكس
  202. Pingback: video game key
  203. Pingback: thrusting dildo
  204. Pingback: Vape cartridge
  205. Pingback: ek cat crap
  206. Pingback: vibrator
  207. Pingback: strapon pegging
  208. Pingback: we-b-tv.com
  209. Pingback: Tagius events
  210. Pingback: hs;br
  211. Pingback: tureckie_serialy
  212. Pingback: 00-tv.com
  213. Pingback: +1+
  214. Pingback: watch
  215. Pingback: ++++++
  216. Pingback: HD-720
  217. Pingback: 2020
  218. Pingback: Video
  219. Pingback: wwin-tv.com
  220. Pingback: Domain Name
  221. Pingback: MRSS 076
  222. Pingback: MIAA 159
  223. Pingback: Vape near me
  224. Pingback: txxx
  225. Pingback: vape juice
  226. Pingback: THC vape juice
  227. Pingback: Vape shop
  228. Pingback: Tracie Brinkley
  229. Pingback: flexi spy
  230. Pingback: DOCP-173
  231. Pingback: BBAN 248
  232. Pingback: liteblue
  233. Pingback: best dildos
  234. Pingback: love egg
  235. Pingback: Buy valium online
  236. Pingback: wire transfer
  237. Pingback: BBC iPlayer
  238. Pingback: watch repair
  239. Pingback: oxycontin online
  240. Pingback: dbol for sale
  241. Pingback: Smm panel paypal
  242. Pingback: sex toys
  243. Pingback: anal sex toys
  244. Pingback: Dankwoods
  245. Pingback: Buy marijuana
  246. Pingback: TEFL jobs
  247. Pingback: Prestige Waterford
  248. Pingback: big dildo
  249. Pingback: buy viagra
  250. Pingback: viagra
  251. Pingback: 1950gSR
  252. Pingback: propidren
  253. Pingback: bulkcrop
  254. Pingback: adam and eve dildo
  255. Pingback: hitachi magic wand
  256. Pingback: remote vibrator
  257. Pingback: viagra
  258. Pingback: buy cbd oil
  259. Pingback: cbd for sale
  260. Pingback: scam
  261. Pingback: cialis
  262. Pingback: stopoverdoseil.org
  263. Pingback: vibrator
  264. Pingback: SUHAGRA (1X4)
  265. Pingback: top smm panel
  266. Pingback: bondage swing
  267. Pingback: bondage set
  268. Pingback: quiet vibrator
  269. Pingback: cyberskin sex toys
  270. Pingback: silicone massagers
  271. Pingback: willy molding kit
  272. Pingback: سکس سیاه
  273. Pingback: Rajabhat
  274. Pingback: Amyra Dastur Album
  275. Pingback: viagra
  276. Pingback: viagra
  277. Pingback: viagra
  278. Pingback: viagra
  279. Pingback: viagra
  280. Pingback: viagra
  281. Pingback: viagra
  282. Pingback: viagra
  283. Pingback: viagra
  284. Pingback: viagra
  285. Pingback: app for laptop
  286. Pingback: VIAGRA
  287. Pingback: nasonex
  288. Pingback: liposuction price
  289. Pingback: acoustic guitar
  290. Pingback: VIAGRA
  291. Pingback: VIAGRA
  292. Pingback: bum plugs
  293. Pingback: chicks
  294. Pingback: khoá học makeup
  295. Pingback: anal toys
  296. Pingback: S Online Free? [DV
  297. Pingback: dildo
  298. Pingback: malaysia escorts
  299. Pingback: anal sex toy
  300. Pingback: vibrating panty
  301. Pingback: free robux
  302. Pingback: free vbuck
  303. Pingback: viagra
  304. Pingback: Top Media Markt
  305. Pingback: biaxin
  306. Pingback: regulations
  307. Pingback: x-rated
  308. Pingback: bunny vibe
  309. Pingback: restaurant menu
  310. Pingback: filmzenstream
  311. Pingback: regulations
  312. Pingback: best dildo
  313. Pingback: best anal toys
  314. Pingback: how to use dildos
  315. Pingback: 먹튀 검증
  316. Pingback: 먹튀검증
  317. Pingback: 메이저놀이터
  318. Pingback: movies
  319. Pingback: 먹튀폴리스
  320. Pingback: pizza hut coupons
  321. Pingback: VIAGRA
  322. Pingback: escort directory
  323. Pingback: movies online
  324. Pingback: karan johar
  325. Pingback: Top Movies
  326. Pingback: Movies1
  327. Pingback: 11 10 2019
  328. Pingback: sex
  329. Pingback: skelaxin
  330. Pingback: viagra for men
  331. Pingback: 우리카지노
  332. Pingback: best cbd pills
  333. Pingback: cbd oil
  334. Pingback: butt sex
  335. Pingback: using anal dildo
  336. Pingback: Lease End Cleaners
  337. Pingback: legal
  338. Pingback: legal
  339. Pingback: VIAGRA
  340. Pingback: stiiizy
  341. Pingback: Infrared Cabin
  342. Pingback: Film Streaming
  343. Pingback: Threema Messenger
  344. Pingback: Innovation
  345. Pingback: TIKB-060
  346. Pingback: SSNI-620
  347. Pingback: vibrating massager
  348. Pingback: huge butt plug
  349. Pingback: Serial smotret
  350. Pingback: kinokrad
  351. Pingback: kinokrad 2020
  352. Pingback: dv lottery
  353. Pingback: peliculas online
  354. Pingback: porn download
  355. Pingback: pc app
  356. Pingback: enlargement pumps
  357. Pingback: bullet vibrator
  358. Pingback: best extension toy
  359. Pingback: Watch TV Shows
  360. Pingback: casino
  361. Pingback: filmy-kinokrad
  362. Pingback: kinokrad-2019
  363. Pingback: serial
  364. Pingback: the kpi institute
  365. Pingback: HND 754
  366. Pingback: magic massager
  367. Pingback: best pocket pussy
  368. Pingback: clit toys
  369. Pingback: load central
  370. Pingback: rabbit massager
  371. Pingback: sex toys
  372. Pingback: vibrating panties
  373. Pingback: ăn trưa ngon q10
  374. Pingback: Famous hunters
  375. Pingback: GENM-023
  376. Pingback: Rice mill
  377. Pingback: csu interact 2
  378. Pingback: realistic dildo
  379. Pingback: best restaurants
  380. Pingback: airdropguru
  381. Pingback: free crm uk
  382. Pingback: cerialest.ru
  383. Pingback: Mesothelioma
  384. Pingback: YOUPORN
  385. Pingback: AFFLIATE programs
  386. Pingback: MyMathLab answers
  387. Pingback: roblox
  388. Pingback: new sex toy
  389. Pingback: prostate milk
  390. Pingback: #black
  391. Pingback: descargasmix
  392. Pingback: huge dildo
  393. Pingback: big dildos
  394. Pingback: asmr blowjob
  395. Pingback: dildos
  396. Pingback: vibration asmr
  397. Pingback: asmr booty
  398. Pingback: Asset Tracking
  399. Pingback: aria sky
  400. Pingback: blackhat seo links
  401. Pingback: Anti-Inflammatory
  402. Pingback: 메이저놀이터
  403. Pingback: heirloom seeds
  404. Pingback: Donovan
  405. Pingback: vibrator
  406. Pingback: katmovies
  407. Pingback: Buy pbn links
  408. Pingback: rabbit sex toy
  409. Pingback: 더킹카지노
  410. Pingback: 퍼스트카지노
  411. Pingback: 우리카지노
  412. Pingback: recipes
  413. Pingback: 코인카지노
  414. Pingback: 예스카지노
  415. Pingback: flight radar
  416. Pingback: stroker for men
  417. Pingback: VIAGRA
  418. Pingback: FAKE NEWS
  419. Pingback: web designing
  420. Pingback: Solana Rowe
  421. Pingback: viagra
  422. Pingback: Pizza near me
  423. Pingback: pocket fleshlight
  424. Pingback: bank / bankowa
  425. Pingback: vibration egg
  426. Pingback: TSUE
  427. Pingback: bullet vibe
  428. Pingback: sex
  429. Pingback: Dog Bandanas
  430. Pingback: ROBUX
  431. Pingback: rotita coupon code
  432. Pingback: phen375 review
  433. Pingback: rotating vibrator
  434. Pingback: adam and eve dildo
  435. Pingback: male masturbator
  436. Pingback: Houses for sale
  437. Pingback: robux
  438. Pingback: VIAGRA
  439. Pingback: bofilm
  440. Pingback: 1 seriya
  441. Pingback: dildo vibrator
  442. Pingback: realistic dong
  443. Pingback: strapon harness
  444. Pingback: BEST PORN VIDEOS
  445. Pingback: robux hack
  446. Pingback: cntze
  447. Pingback: biaxin
  448. Pingback: XXX VIDEOS
  449. Pingback: cbd for anxiety
  450. Pingback: website analitics
  451. Pingback: áo hoodie
  452. Pingback: BUY VIAGRA
  453. Pingback: topedstoreusa.com
  454. Pingback: apps for pc
  455. Pingback: SEX HUB
  456. Pingback: Vava
  457. Pingback: onejricheskij
  458. Pingback: golosovoj slovar
  459. Pingback: large dildo
  460. Pingback: vibrator review
  461. Pingback: all in stroker
  462. Pingback: how to use a dildo
  463. Pingback: YOLO PORN
  464. Pingback: biography wiki
  465. Pingback: first anal
  466. Pingback: bondage sex swing
  467. Pingback: anal toys
  468. Pingback: prostate massage
  469. Pingback: pocket stroker
  470. Pingback: best butt plugs
  471. Pingback: best panty vibe
  472. Pingback: rabbit vibrator
  473. Pingback: rabbit vibe
  474. Pingback: TEEN SEX
  475. Pingback: software reviews
  476. Pingback: ROBUX GENERATOR
  477. Pingback: hqcialismht.com
  478. Pingback: anal plug
  479. Pingback: diabetes surgery
  480. Pingback: dog trainer
  481. Pingback: SSNI-672
  482. Pingback: ABP-936
  483. Pingback: kbbi-online
  484. Pingback: FREE SEX
  485. Pingback: page

Leave a Reply