Re: [PHP] Passing a query result

2001-01-09 Thread Toby Butzon
Working with what sort of database? Toby Butzon [ criticism spurs improvement ] - Original Message - From: "Todd Cary" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 10:47 PM Subject: [PHP] Passing a query result : I need to pass a query result to a

Re: [PHP] Passing a query result

2001-01-09 Thread Todd Cary
Toby - This is an Interbase DB... Todd Toby Butzon wrote: Working with what sort of database? Toby Butzon [ criticism spurs improvement ] - Original Message - From: "Todd Cary" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 10:47 PM Subject:

Re: [PHP] Passing a query result

2001-01-09 Thread Todd Cary
Toby - The query is done in another function $row = db_get_questions($dbh, $course); Then I want to move to a record by row number, so I have the function for doing that. I will need to move to acsending rows since my client needs to obtain random records. I have already created my array

[PHP-CVS] cvs: php4 /ext/standard datetime.c

2001-01-09 Thread David Croft
david Tue Jan 9 20:01:02 2001 EDT Modified files: /php4/ext/standard datetime.c Log: Allocate buffer in date() for the actual length of the timezone (bug#8292) Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.60

Re: [PHP] week of example code

2001-01-09 Thread Tiger Quimpo
On Tue, 09 Jan 2001, jeremy brand wrote: why not this? $year = date('Y'); $month = date('m'); $day = (int)date('d'); if ($day = 1 $day 8) $week = 1; else if ($day = 8 $day 15) $week = 2; else if ($day = 15 $day 22) $week = 3; else if ($day = 22 $day 29) $week = 4;

Re: [PHP] MySQL Newbie ? -Help!

2001-01-09 Thread Jason Brooke
one simple way would be to make a duplicate, empty table and then do: insert into newtable select distinct * from oldtable then try adding a uniqueness constraint if you don't want duplicates in the future jason Hi, Is there a way to go through a table and remove all duplicate entries so

[PHP] mysql and php possibly causing problem

2001-01-09 Thread James Mclean
list, ok her is the problem. i have a page taht works fine in one dir, but in a sub dir, it doesnt even show up. here is my dir structure. public_html/| |website/| ||index.php ||admin/| || |admin.php |

[PHP] declaring variables in class definitions

2001-01-09 Thread sam1600
Hello, class a { var $somevar; function b(){ if (!isset($this-somevar)) echo "Not setbr"; if (empty($this-somevar)) echo "emptybr"; } } $d = new a; $d-b(); The above returns: Not set empty What in the world is reason for declaring the following in

[PHP] Im having Trouble with File uploading,

2001-01-09 Thread MacBane
File uploading is not working for me on my server, it is a windows 2000 box running php 4.02 this is my code ?php include("db_con.php"); include("logincheck.php"); if(isset($page_id)); $page_id =("$page_id"); print(" FORM ENCTYPE='multipart/form-data' ACTION='uploadfile.php' METHOD=POST INPUT

[PHP] Browser cache and form with $PHP_SELF

2001-01-09 Thread Egan
Using $PHP_SELF, I have a form that calls itself until the user gets all the input right. Each time the user corrects some field and resubmits, the browser builds a cache of pages, as you can see with the browser back button. Is there a way to make the browser clear the cache on every