Prestashop - Insert customer variables into another database when customer register

已完成 已发布的 5 年前 货到付款
已完成 货到付款

"This is the first of many mini-jobs needed for a Prestashop installation.

I will pay from $10 to $30 per each mini-job upon agreement with the freelancer and depending on the difficulty and time spent,

For this one, Bids over 10$ will be automatically declined"

1- I need to insert the following data into another mySQL database (in the same server) when a customer register in Prestashop:

INSERT INTO `users` (`id`, `name`, `email`, `pass`, `votes`, `isadmin`, `banned`)

VALUES (customer_ID, '$customer_name', '$customer_name', '$customer_name', 20, 0, 0);

I have been able to do it so far in classes/[login to view URL] but without using customer variables:

<?php

$servername1 = "localhost";

$username1 = "testuser";

$password1 = "testpswd";

$dbname1 = "testdb";

// Create connection

$conn1 = mysqli_connect($servername1, $username1, $password1, $dbname1);

// Check connection

if (!$conn1) {

die("Connection failed: " . mysqli_connect_error());

}

$sql1 = "INSERT INTO `users` (`id`, `name`, `email`, `pass`, `votes`, `isadmin`, `banned`)

VALUES (1001, 'Test Name', 'test@[login to view URL]', 'testpsw', 20, 0, 0);";

$result1 = mysqli_query($conn1, $sql1);

?>

电子商务 HTML MySQL PHP Prestashop

项目ID: #18424080

关于项目

7个方案 远程项目 活跃的5 年前

授予:

rahulonwrk

Hey am an expert in pretashop and php.I've read your requirement regarding database value not [login to view URL] can be done within few [login to view URL] let me know.

$10 USD 在1天内
(10条评论)
4.4

有7名威客正在参与此工作的竞标,均价$28/小时

an1566706

I read your project description ……Prestashop - Insert customer variables into another database when customer register …..and we are very exited to work on it We are an group and we have an expert & qualified to ac 更多

$25USD 在1天里
(78条评论)
6.7
developermustak7

Hello, Hope you're doing great !! I have 5+ years of excellent experience in website development and designing.I have excellent experience in Prestashop development.I can insert you value you data in different da 更多

$35USD 在1天里
(11条评论)
3.7
aleem18

Respected Sir/Madam; We have reviewed your job description and we feel this job is set on our criteria that’s proven by our skills and portfolio. We would like to help you to proceed this project in well manner. What 更多

$21 USD 在7天内
(15条评论)
3.8
Monalisa47

hello dear, I'm interested to work on this project. I'm Monalisa, with 6+ years experience .. please give me an opportunity to work with you. could you please add me to your chat box? waiting for you 更多

$29 USD 在4天内
(0条评论)
0.0
bachtaos

Your problems is very simple. I will do it for you as simple as possible. You don't need to modify your code to insert records to an another DB.

$15USD 在1天里
(0条评论)
0.0