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['fo
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.
Yo
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, use
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 r
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 "\n";
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
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..
===
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:
===
The computer has picked $another number between 1 and 10.
Guess the number and you win!
Enter your gu
Try something like this and see if it works???
The computer has picked $another number between 1 and 10.
Guess the number and you win!
Enter your guess:
";
if (isset($guess))
{
srand((double)microtime()*100);
$number =
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 w
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
";// lemme see it in the browser
$i++;
// bump count for input array
}
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
";// lemme see it in the browser
$i++;
// bump count for input array
}
Yep! I agree it's probably an open bracket.
Here is a little program I use to beautyify my programs and find open
brackets.
HTH dan..
--- beauty.php ---
/* - *\
** Beauty: cleans up source PHP code and
** indent nest
ge breaks (in IE5 anyway).
>
> Have fun,
>
>
> Dean
>
>
>
>
>
> -Original Message-
> From: Dan Koken [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 5:00 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Printing Reports
>
>
&
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 should
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
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 assu
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, numb
18 matches
Mail list logo