php-windows Digest 25 Sep 2003 08:46:11 -0000 Issue 1927
Topics (messages 21546 through 21549):
PHP Printing problems
21546 by: Madeleine D.
MySQL Help
21547 by: Dean Hayes
21548 by: Bobo Wieland
Refresh php section
21549 by: ascll
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
We are running a new app in PHP/Gtk, PHP 4.2.3 on a variety of Windows - 98
and up.
We made the decision early on to use the PHP printing functions and avoid
the whole .pdf route or having to open a browser window when we don't need
it otherwise.
Right now, we can generate reports just fine, but we're losing data on a
random basis. Ex: Line 4 and 5 print fine, line 6 is missing column 6.
Rearrange the sort order and the data for line 6 appears, something else
drops off.
We thought it was a memory issue, but we switched it to our main LJ with
256 RAM with the same results. Also tried switching from a PCL 6 driver to
a PS one; no luck.
Any thoughts?
thanks
Madeleine d.
--- End Message ---
--- Begin Message ---
Hey,
I am working on a new script that allow's the use to insert upto 10 extra
image per item in the catalog. What i need to do is print 5 images per line.
I need to know how i can print 5 image per <td> field the code i currently
have is this
$num_items = amount user wants;
$num = $num_items / 2;
if ($num_items == "10") {
for ($i=0;$i<$num;$i++) {
echo "<img src="$img_name" size="100" width="100"><br>Click Image To See
Preview";
}
for ($i=5;$i<$num_items;$i++) {
echo "<img src="$img_name" size="100" width="100"><br>Click Image To See
Preview";
}
}
as you see this is really only good if there is 10 images but some products
have 3 some have 7 is there a way i can do this so it always put's the same
amount of images per line when the number is over 5
thanks
Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com
<-- I design and i redesign but still i never designed true beauty like you
-->
_________________________________________________________________
Hot chart ringtones and polyphonics. Go to
http://ninemsn.com.au/mobilemania/default.asp
--- End Message ---
--- Begin Message ---
$num_items = amount user wants;
$td2 = floor($num_items/2);
$td1 = $num_items-$td2;
print("<td>");
for($i = 0; $i < $td1; $i++) {
print(....);
}
print("</td>");
print("<td>");
for($i = $td1; $i < $td2; $i++) {
print(....);
}
print("</td>");
.bobo
----- Original Message -----
From: "Dean Hayes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 5:58 AM
Subject: [PHP-WIN] MySQL Help
>
> Hey,
>
> I am working on a new script that allow's the use to insert upto 10 extra
> image per item in the catalog. What i need to do is print 5 images per
line.
> I need to know how i can print 5 image per <td> field the code i
currently
> have is this
>
> $num_items = amount user wants;
> $num = $num_items / 2;
>
> if ($num_items == "10") {
> for ($i=0;$i<$num;$i++) {
>
> echo "<img src="$img_name" size="100" width="100"><br>Click Image To See
> Preview";
>
> }
>
> for ($i=5;$i<$num_items;$i++) {
>
> echo "<img src="$img_name" size="100" width="100"><br>Click Image To See
> Preview";
>
> }
>
> }
>
> as you see this is really only good if there is 10 images but some
products
> have 3 some have 7 is there a way i can do this so it always put's the
same
> amount of images per line when the number is over 5
>
> thanks
>
> Dean "The Insane Guy" Hayes
> Mystical Web Designs
> http://www.mystical-sector.com
>
> <-- I design and i redesign but still i never designed true beauty like
you
> -->
>
> _________________________________________________________________
> Hot chart ringtones and polyphonics. Go to
> http://ninemsn.com.au/mobilemania/default.asp
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
===== start Test.php =====
// Section-A
<?php
...
?>
// Section-B
<?php
...
?>
// Section-C
<?php
...
?>
// Section-D
<?php
...
?>
===== end Test.php =====
Greetings,
It that a way for me to reload Section-A's php codes every 1-second and
Section-D's php codes every 5-second, that belongs to the SAME php file, say
"test.php"?
Thanks in advance.
--- End Message ---