Posted By

wza on 06/19/09


Tagged

mysql textmate function query connect


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Hollow
vali29


mysql query connect function


 / Published in: PHP
 

  1. function query($sql){
  2. $dbhost = "localhost";
  3. $dbuname = "root";
  4. $dbpass = "root";
  5. $dbname = "disco_conv";
  6. $conxion = mysql_connect($dbhost, $dbuname, $dbpass);
  7. $result=mysql_db_query($dbname,$sql,$conxion);
  8. return $result;
  9. }

Report this snippet  

You need to login to post a comment.