Re[2]: [PHP] percentage problems

2001-09-22 Thread slavko dervisevic
Hello matt, even better is ceil() or floor() Saturday, September 22, 2001, 11:53:44 PM, you wrote: Better than substr is to cast the variable to be an int -- Best regards, slavkomailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re[4]: [PHP] percentage problems

2001-09-22 Thread slavko dervisevic
Hello Tyler, try $percent = ceil(100*$num_games/$total_games); -- Best regards, slavkomailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] some hyper links

2001-09-19 Thread slavko dervisevic
Hello Adrian, no short and simple solution select * from policies while(policies){ select count(*) from topics if(records) echo link else echo nolink } Wednesday, September 19, 2001, 12:11:05 PM, you wrote: ADC Hi, ADC I have two table: ADC policies: id == auto increment, primary

Re: [PHP] problems with session_register()...

2001-04-05 Thread slavko dervisevic
Hello Christian, you must register first, then set the value! session_register("script_total_time"); $script_total_time=(float)$total_time; $step_times_array[$step]=$total_time; session_register("step_times"); $step_times=serialize($step_times_array); Tuesday, April 03, 2001, 2:35:10 AM, you