Here's my db_update function then your code with some mods:
?php
function update_db($location) {
require_once('/usr/home/doc/mysqlconnect.php');
$query = SELECT dl_count FROM downloads WHERE filelocation = '$location';
$result = mysql_query($query);
$dl_count = mysql_result($result, 0, dl_count);
when the stream gets written to the output
buffer? Maybe with Apache?
Jarell
John Holmes wrote:
I don't really understand why you're using a custom stream here or
what you're hoping to accomplish. you're incrementing the download
count, but not really checking it for any limit. It wouldn't really
Jarell
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo