We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

collin on 09/26/06


Tagged

mysql php


Versions (?)


mysql_select_one


Published in: PHP 


  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.