> Now, I've created a funtion which controls how many fields (cols) may
be
> seen by user. Some like this:
> 
> 
> function select_query ($fields, $table) {
> $result = ("SELECT $fileds FROM $table");
> }
> 
> Well, I hould like to control how many fields my query will use.
> 
> For example: if I call select_query('id,username,email', 'users');

$num_fields = count(explode(',',$passed_fields_string));

or

$num_fields = mysql_num_fields($result_set);

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to