Mysqli Connections/Querys


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. //Porzendual
  3. mysqli_connect("host", "username", "pw","db");
  4. //Proz. query
  5. mysqli_query("SELECT * FROM `table`");
  6. //Object orientiert :)
  7. $mysqli = new mysqli('host','username', 'pw','db');
  8. //Object query
  9. $mysqli->query("SELECT * FROM `table`");
  10. ?>

URL: http://darksider3.pf-control.de

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.