[PHP] Get page height?

2001-05-16 Thread DRN
Hi, I was wondering if it would be possible to get the page height using php? The reason I would like to do this is so that I can include a link to the top of the page if the page is long enough, but not to display it for very short pages (where it would not be needed:) Cheers for your help, Don

[PHP] check if a variable is in a number of states.

2001-05-12 Thread DRN
Hi, I would like to check whether a variable, $type, is equal to a number of different possible states. I know I could use if ( $type == "abc" || $type == "bcd") { $a = b } but this would get a bit clumsy if I had to check whether it is say one of 20 different things. What I was wondering is, is

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread DRN
Brian Clark <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Hi DRN, | Try this and see if it functions correctly: | | | That works great, thanks Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] converting DATETIME to a readable date.

2001-04-14 Thread DRN
Hi, I have a MySQL table recording errors, 1 of the fields is a DATETIME, to give me the time of the error. I have made a file which will then display a table of errors. I would like to display the date and time in a more readable format, even just with spaces between the years & months etc. Hav

Re: [PHP] putting a list of data into 3 columns?

2001-04-09 Thread DRN
Lindsay Adams <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... okay. your solution is not going to scale well, is it. if you have more than nine items, you have to rewrite your code. I (sort of) understand your solution, but I don't see how my solution is not goi

Re: [PHP] Parse error after end of file

2001-04-09 Thread DRN
Kurth Bemis <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | At 03:59 PM 4/9/2001, DRN wrote: | you need to make sure that ALL your curly brackets are closed and that all | lines that require semi-colons have them | | ~kurth D'oh, I don&

Re: [PHP] putting a list of data into 3 columns?

2001-04-09 Thread DRN
Lindsay Adams <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | This is exactly what I sent you. | You have to realize that you can't print down one column, and then start a | new one. | You have to print across, left to right before you go down. | You have to mo

[PHP] Parse error after end of file

2001-04-09 Thread DRN
Hi, I am trying to include a header to my document, I my problem is I keep getting a parse error on the line after the header ends. I cannot see what is causing this, can someone see what I have done wrong, the code is below. Cheers for your help, Donald Accessible Computers ";

Re: [PHP] putting a list of data into 3 columns?

2001-04-07 Thread DRN
Lindsay Adams <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Assuming your items are in an array | $items =array() //assume a bunch of items in this array | For($i = 0; $i< (count($items)/3); $i +=1){ | printf("%s\t%s\t%s",$items[$i],$items[$i+3],$items[$i

[PHP] putting a list of data into 3 columns?

2001-04-07 Thread DRN
Hi, I would like to display a list of products from a MySQL database in 3 columns. as shown below: Product A Product D Product G Product B Product E Product H Product C Product F The problem I have is I don't know how many products there will be, so I can't just print ou

[PHP] putting a list of data into 3 columns?

2001-04-07 Thread DRN
Hi, I would like to display a list of products from a MySQL database in 3 columns. as shown below: Product A Product D Product G Product B Product E Product H Product C Product F The problem I have is I don't know how many products there will be, so I can't just print ou

[PHP] CodeCharge? is it any good?

2001-03-28 Thread DRN
Hi, I am a newbie in the field oh php and databasing, but I would like to learn a bit to create a database driven site. I want to have a database with products, and the html pages for the products and categories are 'built' automatically from templates. First of all, am I right in thinking that P