For Brad.
Here is a PHP function that will grab all the rows from a mysql result identifier:
function mysql_fetch_allrows($res) {
while($data[] = mysql_fetch_assoc($res)) {
# nothing
}
return array_slice($data,0,-1);
}
Or, if you just want one field:
function mysql_fetch_field_allrows($res,$field) {
while($data = mysql_fetch_assoc($res)) {
$rtn[] = $data[$field];
}
return $rtn;
}
Read the rest of this entry »
Webmasterbase.com has an excellent article on Apache's mod_rewrite. If you are developing any kind of web application (blog tools, photo gallery, forum software, a guestbook script, ANYTHING), and either don't know how to use the "PATH_INFO" environment variable or just don't like messing with it, then mod_rewrite is for you. If you've ever migrated a [...]
Read the rest of this entry »
Keith Devens will soon be releasing version 3 of his XML-RPC Client/Server for PHP. His new version, due for release this week or next, promises to be the best available. It will allow (hopefully) client and server creation in one line of code. It uses native PHP variable types and will most likely support [...]
Read the rest of this entry »