[PHP] Re: Got a problem I cant figure out

2002-01-28 Thread Dan Koken
Could be that you have a open curly bracket somewhere. Here is a quick program I use to beautify and clean up my PHP code and point out any open brackets; HTH .. Dan ? /* - *\ ** Beauty: cleans up source PHP code and ** nest everything \*

[PHP] Re: Got a problem I cant figure out

2002-01-28 Thread Dan Koken
Could be that you have a open curly bracket somewhere. Here is a quick program I use to beautify and clean up my PHP code and to point out any open brackets; HTH .. Dan ? /* - *\ ** Beauty: cleans up source PHP code and ** nest everything \*

[PHP] Re: Using checkboxes

2002-06-06 Thread Dan Koken
This always works for me.. == /* *\ ** chk[] is the list of check boxes sent to browser. ** If chk[$i] equals $i as as you loop ** through the array.. then it was checked. ** But first

[PHP] Re: Code Structure/Errors

2002-06-16 Thread Dan Koken
Can simply set $i before the while. I assume the $last_name is coming from the DB. Not exactly sure what you want, but hope this helps. good luck... Dan. -- $i = 0; while ($row = mysql_fetch_array($result)) { extract($row); if (($i % 5) == 0) print tr\n;

[PHP] Re: sorting and searching an Array

2002-07-17 Thread Dan Koken
Unless I'm missing something, why put it in an array. Why not just just select the data from the data base that matches your search_name and list it. Something like: SELECT e_mail, name FROM e_mail_file WHERE name = '$search_name' ORDER by name HTH. Dan. [EMAIL PROTECTED] wrote: After I

[PHP] Re: To print in PHP

2002-07-21 Thread Dan Koken
Correct PDF does work and is well supported on Macs and Linux, and just about everywhere I looked. But, for out system, it don't work 'JUST FINE'. After a lot of test we decided it was just too slow for our use. Every system is different, and if you can live with PDF and it works for you,

[PHP] newbe printing routine??

2002-04-15 Thread Dan Koken
Being completely new to PHP I went to this site for help on how to print reports. Thanks for all the ideas. I guess being a newbe, I was wondering if this is kind of the standard way most of you do all your reporting. Based on all the help I got, I did the following: 1. Wrote a report writer

[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
Try something like this and see if it works??? ? $another = 'a'; if (isset($guess)) $another = 'another'; echo form action='number.php' method='post' BR The computer has picked $another number between 1 and 10.BR Guess the number and you

[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
OOPS! You are right on.. I noticed my error after I sent it. The name='guess' was on the input.?? Daaa! it's Monday .. OK!! This should work: === ? $another = 'a'; if (isset($guess)) $another = 'another'; echo form action='number.php' method='post'

[PHP] Re: Using PHP for NULLs

2002-05-18 Thread Dan Koken
I do believe it is a MySql question!! What's wrong with the old standard way as: $result = mysql_query( SELECT *, if (last_name is NULL,'zzz end',last_name) as last_name_sort FROM new_miatapix ORDER BY last_name_sort LIMIT $page, 20); Good Luck.. HTH.. Dan..

[PHP] Re: Search Engine

2002-08-15 Thread Dan Koken
Sascha, From just looking at it, the code looks fine. It could be that someone entered a special character in the array like a '%' or something else illegal. Check the code I wrote. I entered a debug statement to see what was generated. This should give you some clue what is wrong with it.

[PHP] Printing Reports

2001-11-27 Thread Dan Koken
As a Newbe to PHP, I need to print reports. I'd like to stay away from PDF but will use it if necessary. In general, what seems to be the best way to print reports?? It would be nice when they ask for a report it would brint in the report window that allows them to select the printer,

[PHP] Re: Printing Reports

2001-11-27 Thread Dan Koken
There are so many reports. The system I have is a manufacturing system, and currently contains some 400 programs. Some examples of reports are: Bill of Lading with bar codes Production reports Management and analysis Labels for lab analysis with bar codes Planning reports Quality

Re: [PHP] Printing Reports

2001-11-27 Thread Dan Koken
Thanks Dean; I like your idea a lot. They happen to be internet. If you have example code on your solution it would save me some time. Thanks again... I'm gonna try it. Dan... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Re: Printing Reports

2001-11-27 Thread Dan Koken
Well I guess it's like most applications. Every print job has it's own special requirements. For example the lab analysis report. When the manufacturing process starts on a liquid process, they request certain samples. Samples consist of lab analysis they should take and how often they

Re: [PHP] Printing Reports

2001-11-28 Thread Dan Koken
-Original Message- From: Dan Koken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 5:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Printing Reports As a Newbe to PHP, I need to print reports. I'd like to stay away from PDF but will use it if necessary

Re: [PHP] counting number of records in a MySQL table; how do I get

2002-10-02 Thread Dan Koken
Or another way if you don't want a result when it's zero. $rslt = mysql_query(SELECT count(*) as cnt FROM tbl having cnt 0); HTH.. Have a great day.. Dan Rasmus Lerdorf wrote: $ret = mysql_query(SELECT count(*) as foo FROM AuthNum); $result = mysql_fetch_array($ret); echo $result['foo'];