Posted By

collin on 09/26/06


Tagged

mysql php


Versions (?)


Advertising

Submit Site


mysql_select_one


Published in: PHP 






Expand | Embed | Plain Text
  1. function mysql_select_one($sql)
  2. {
  3. $r = mysql_query($sql) or mysql_fail();
  4. $a = mysql_fetch_array($r, MYSQL_NUM);
  5. return $a[0];
  6. }

Report this snippet 

You need to login to post a comment.

Download royalty free graphics