Re: [PHP] counting downloaded files

2004-02-10 Thread Adriaan Nel
The variables I submit, are retrieved from a database...so users can't enter anything, I do have a warning inserted at the beginning of the file, how do I remove this warning? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Adriaan Nel wr

[PHP] counting downloaded files

2004-02-10 Thread Adriaan Nel
uot;Content-Length: ".$size); $fp = readfile($full_filename, "r"); mysql_query ("INSERT INTO files_downloaded VALUES('$id','$ip',NOW())",$db_connection) or die (mysql_error()); return $fp; } } I need to use some kind of form element to initiate the do

[PHP] new window

2003-06-06 Thread Adriaan Nel
Hi all, How do I open a new window from php? Thanks Adriaan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setprecision ?? pls help

2003-03-24 Thread Adriaan Nel
Hi all, I'v got the following: round ($val1,4); echo "$val1"; It works fine, but when $val which is a float, contains for instance 1.1 I want it to output 1.1000 instead of just 1.1 I know in C++ this can be done with setprecision(), but I can't seem to find anything similar in phpplease h

Re: [PHP] removing appended chars - solved!!! Thanks

2003-03-13 Thread Adriaan Nel
Thanks, I solved it "Adriaan Nel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, I tried the trim function and it solves most of my problems, but I > still get duplicatesit's so weird, could any1 please just quickly > check throug

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Adriaan Nel
*/ Thanks again Adriaan "- Edwin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > "Adriaan Nel" <[EMAIL PROTECTED]> wrote: > > > Do any1 know how I can check for spac

[PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Adriaan Nel
Hi every1, I need to update records in a mysql dbase, from a .csv file, everything works fine, but the index column, $npr_nr from below sometimes has a space at the end, this causes the dbase index not to match this one, therefore this record isn't updated. Do any1 know how I can check for spaces

[PHP] Maths on variables - please help

2003-03-10 Thread Adriaan Nel
Hi every1, I would like some help on multiplication/division of variables on 1 anotherI have looked at the bcmath() function, but it doesn't seem to work. Could any1 pls assist. Adriaan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bcmath problem

2003-03-04 Thread Adriaan Nel
Hi ppl, I am updating a database with the following: $lines = file ('../includes/new1.csv'); foreach ($lines as $line_num => $line) { list($npr_nr,$npr_exvat,$npr_desc) = explode(",",$line); $query = "SELECT product_id,product_nr, product_cost_exvat, product_description, product_price, updated

[PHP] Re: Page per page

2003-02-24 Thread Adriaan Nel
try www.phpfreaks.com they've got a nice tutorial on this... Regards Adriaan :) "Miguel BrĂ¡S" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > Anyone has a good example to build a system that show X records per page and > give links to next and previous pages? > > Thx >

[PHP] table width problems

2003-02-23 Thread Adriaan Nel
Hi, I've got a table that gets it's contents from a database, the problem is that even though I specify the width of the table, it is still wider than it's supposed to be, cause some of the info from the table doesn't wrap.my question is if there is a way to force td wrapping when it exceeds t