php-windows Digest 10 Mar 2002 14:18:07 -0000 Issue 1039

Topics (messages 12555 through 12558):

Re: MySQL auto_increment ??
        12555 by: Jakob Kruse

Re: GD 2.0 for windows?
        12556 by: Jakob Kruse

Re: strings with $ sign
        12557 by: Sviss Cobazor

PHP4_Win98se_Apache. text in window instead of html response?
        12558 by: Bob Parks

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 ---

"Sviss Cobazor" <[EMAIL PROTECTED]> wrote:
> Hi NG.
>
> Now I've read page up and page down in the MySQL online manual about how
to
> use the auto_increment. But I didn't find anywhere how to reuse a deleted
id
> created by auto_increment.
>
> Say I have a table [users] with 4 columns:
>
> | ID | name | username | password |
>
> ID is an auto_increment value.
> If I insert 3 users they will get ID = 1, 2 and 3 assignet.
> Now I want to delete user with ID = 2.
> Now I create a new user, he will get ID = 4.
>
> How can i reuse the ID 2 for creation of new users?

Just assign the value 2 to the ID field when creating or saving a user. When
the value is NULL, the auto_increment feature will be used, and it will only
reassign values if you reset the auto_increment counter (not recemmended).

> Another thing:
> If ID is INT(3), what will happen when I insert user no. 1000?

It will work as expected. An INT(3) is not limited to 3 digits, it just
displays values with 3 digits minimum. An unsigned INT can be as large as
4294967295.


--- End Message ---
--- Begin Message ---
The GD 2.0 dll comes along with the latest binary releases of PHP for
Windows. I don't know much about using it though...

Regards,
Jakob Kruse


"Steve Griff" <[EMAIL PROTECTED]> wrote:
Hi there,

I want to use some of the features that are available in version 2.0 of the
GD graphics editing library.

What is the best way of getting a .dll for php with these functions? A nice
little FAQ about it + a link to the dll would be most appreciated.

Thanxs

Steve Griff







--- End Message ---
--- Begin Message ---
The thing is that the result html code is to be parsed by HTMLDOC (pdf
generator) to create pdf from the webpage. By inserting <-- "some string"
!--> into the html, HTMLDOC can catch these strings and act from them.

example:

$result_html = " ... html code....<-- " FOOTER CENTER $LOGOIMAGE footer.jpg
" !--> ... more html code";

result_html is the page contens for HTMLDOC to parse and through that catch
the footer code and insert footer.jpg as the footer on the pdf pages.

the problem is that php converts $LOGOIMAGE to a php variable. \$LOGOIMAGE
doesn't seem to work.

"Robert Janeczek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I just wanted to know how to use strings with $ sign.
> >
> > If a word starts with a dollar sign php will think it's a variable, how
> can
> > I make
> > " $bla bla  and bla $bla " to stay that way?
> > Will this work? " \$bla bla  and bla \$bla "
>
> don`t use "" - use ''. php doesn`t parse variables in such kind of
strings.
> ' $bla bla  and bla $bla '
>
> " \$bla bla  and bla \$bla " - this should work too, but i haven`t
checked.
>
> rash
>
>


--- End Message ---
--- Begin Message ---
Refresh my memory. Just reformatted my c:\ and rebuilding from scratch.

In my IE6 browser window I'm getting php text instead of html "order
results" page after submitting a form.

See below.

******
I need the proper install instructions for PHP4 with Apache server on Win98.
It worked before formatting my c:\.. I'm starting from scratch again. Tried
the phpTriad. I know it's in my apache http.conf or php.ini..
Please list .dlls needed in windows\system too.
Thanks.

**** my results in IE 6.0 after "submit form". Text not html page.

------------------------------------
Order Results     // Should be html with results not the following plain
text
"; echo $oilqty." bottles of oil
"; echo $sparkqty." spark plugs
"; $totalqty = 0; $totalamount = 0.00; define("TYREPRICE", 100);
define("OILPRICE", 10); define("SPARKPRICE", 4); $totalqty = $tyreqty +
$oilqty + $sparkqty; $totalamount = $tyreqty * TYREPRICE + $oilqty *
OILPRICE + $sparkqty * SPARKPRICE; $totalamount =
number_format($totalamount, 2); echo "
\n"; echo "Items ordered: ".$totalqty."
\n"; echo "Subtotal: $".$totalamount."
\n"; $taxrate = 0.10; // local sales tax is 10% $totalamount = $totalamount
* (1 + $taxrate); $totalamount = number_format($totalamount, 2); echo "Total
including tax: $".$totalamount."
\n"; ?>



--- End Message ---

Reply via email to