Posted By


collin on 09/26/06

Tagged


Statistics


Viewed 552 times
Favorited by 0 user(s)

mysql_select_one


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.