Posted By

Darksider3 on 07/26/11


Tagged

MysqliPHP


Versions (?)

Mysqli Connections/Querys


 / Published in: PHP
 

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

  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. ?>

Report this snippet  

You need to login to post a comment.