Prestashop - Insert customer variables into another database when customer register

Concluído Postado há 5 anos Pago na entrega
Concluído Pago na entrega

"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);

?>

Comércio eletrônico HTML MySQL PHP Prestashop

ID do Projeto: #18424080

Sobre o projeto

7 propostas Projeto remoto Ativo em há 5 anos

Concedido a:

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 em 1 dia
(10 Comentários)
4.4

7 freelancers estão ofertando em média $28 nesse trabalho

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 Mais

$25 USD em 1 dia
(78 Comentários)
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 Mais

$35 USD em 1 dia
(11 Comentários)
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 Mais

$21 USD in 7 dias
(15 Comentários)
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 Mais

$29 USD in 4 dias
(0 Comentários)
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.

$15 USD em 1 dia
(0 Comentários)
0.0