Guest User

Untitled

a guest
Mar 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. $servername = "localhost";
  2. $username = "algolhos_unisitc";
  3. $password = "Un1s1t_commerce";
  4. $dbname = "algolhos_unisitc";
  5.  
  6. // Create connection
  7. $conn = new mysqli($servername, $username, $password, $dbname);
  8. // Check connection
  9. if ($conn->connect_error) {
  10. die("Connection failed: " . $conn->connect_error);
  11. }
  12.  
  13. $sql = "SELECT codice_target FROM customer";
  14. $readyForExport['codice_target'] = $conn->query($sql);
  15.  
  16. print_r('The id_order is: ' . $readyForExport['codice_target']); // see if this is empty $readyForExport['codice_target']
Add Comment
Please, Sign In to add comment