[PHP] Query mysql highest id number

2003-06-22 Thread Chris Schoeman
I want to make a query in a mysql database with as result the row with the highest id number. How can I do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql query

2002-09-10 Thread Chris Schoeman
I use the script below to get one value out of a database: $result = mysql_query("select euro from brandstofprijzen where id=2") or die (mysql_error()); while ($row = mysql_fetch_array($result)) { $euro = $row["euro"]; } mysql_free_result($result); This is working fine, but is there an easier (l

[PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Chris Schoeman
This is one way to do it \n"; echo "\n"; echo "\n"; ?> Chris On Mon, 19 Aug 2002 12:54:57 GMT, [EMAIL PROTECTED] (Michael) wrote: >Hello everyone, > >This may seem a newbie question... > >I have a PHP variable containing the text of the alert I w

[PHP] Secure connection with MySQL database

2002-08-18 Thread Chris Schoeman
How can I protect my username and password for my connection with a mysql server. I can't place a file outside the root by the provider I use. Thankx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Authorization

2002-07-07 Thread Chris Schoeman
I am using the folowing script for authorization: $username = "test"; $password = "123"; function authenticate() { Header( "WWW-authenticate: basic realm=\"Protected\""); Header( "HTTP/1.0 401 Unauthorized"); echo "Gebruikersnaam en/of wachtwoord is niet goed ingevuld!\n"; exit; } f

[PHP] Newbie question about links

2002-02-12 Thread Chris Schoeman
I want to make links on my website which doesn't show the original url of that page. How Can I do that? Thankx Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php