Re: [PHP] date(), time() different to system time

2002-02-05 Thread DL Neil
Hey Anth, > Hey guys, =some of the better-looking amongst us are not guys (and then some of us are...) > I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1 > installed as a DSO. > > Everything is working fine, except that the output from any date() or > time() references is 16 h

Re: [PHP] How do I keep form inputs from being cleared - Please Help!

2002-02-05 Thread Miles Thompson
http://www.thickbook.com choose the tutorial for a form with custom error messages. Miles Thompson At 06:40 PM 2/5/2002 -0500, SpamSucks86 wrote: >I have a registration form and if a user enters bad information and the >php script generates an error, I want the user to be able to hit back >and

[PHP] safe mode/mkdir problem - HELP!

2002-02-05 Thread Roberto P.Martins Jr
Hello! I'm trying to create a directory, let's say: /some/dir. My script (create_dir.cgi) is located at the cgi-bin directory and begins with #!/usr/bin/php. So it's like any other script, isn't it? The problem is: running php in safe mode with the script permissions: rwxr-xr-x 8 ro

[PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Michael O'Neal
Hi. I'm working on an "edit" page where the pull down menu is populated from a database. I can't figure out how to print "selected" when that particular record is the one associated with the current ID. Can anyone help? Here's my current code: $title"; } $num = @mysql_num_rows($result);

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 16:23, Michael O'Neal wrote: > Hi. > > I'm working on an "edit" page where the pull down menu is populated from a > database. I can't figure out how to print "selected" when that particular > record is the one associated with the current ID. Can anyone help? > > Here's my

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Jeff Sheltren
Hi, looking at your sql statement, it seems like you are always setting my_job_id and job_id to the same value for each row in the table. "select job_id AS my_job_id" is just putting the value of job_id in a variable called my_job_id. Could you tell us the structure of your mysql table please

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread bvr
Lose the single quotes, quoting a single variable is nonsense. Quotes are used to define strings, it is a feature (called substitution) of PHP that allows you to use a variable within a string. The reason it doesn't work is that this subtitution is only performed on strings enclosed in "'s (dou

Re: [PHP] date(), time() different to system time

2002-02-05 Thread Anth Courtney
On Tue, 5 Feb 2002, DL Neil wrote: Hello DL, > =some of the better-looking amongst us are not guys (and then some of us are...) Sorry! :) > Check out the meaning of "EST". > Sixteen hours behind NSW, Australian time would make it New York time wouldn't it? *trumpet fanfare* Thanks for that.

[PHP] RePOST: Sessions and Classes

2002-02-05 Thread PHP-List
What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems("id" => array(), "qty"=> array()) this is what i do... //when the user enters

[PHP] << Previous n Articles

2002-02-05 Thread jtjohnston
I'm using this code to create a "Next n Articles >>" on my index.page from my mysql database. I worked most of it out myself. Then I got some help. It works. I thought I understood my own code enough to be able to construct a "<< Previous n Articles". I guess not. My coding skills need help. So ho

[PHP] Re: Dynamic Dropdown menu question.

2002-02-05 Thread jtjohnston
Michael, I think you're trying to kill yourself coding. here's what I do for myself: Select Someone EM."\">".$mydata->FirstName." ".$mydata->LastName."\n"; } mysql_close($myconnection); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] autoindex

2002-02-05 Thread jtjohnston
I want to reset the autoindex in a mysql table using php if I can. I found this. Can anyone help? http://www.mysql.com/doc/m/y/myisamchk_other_options.html J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] modDb Contribution

2002-02-05 Thread Vincent - D. Ertner
Hi PHPers, in late 2001 I had a customer that was interested in a kind of universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the development and - as fair as life is - the customer went straight into bankruptcy. Now I have a first beta of "modDb" - as we call it - and almost no ne

[PHP] Convert 24hr to 12hr

2002-02-05 Thread Gary
Hello All, Can someone please RTFM me so I can convert MySQL 24 hour time to 12 hour time. TIA gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] << Previous n Articles

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 09:59, jtjohnston wrote: > I'm using this code to create a "Next n Articles >>" on my index.page > from my mysql database. > I worked most of it out myself. Then I got some help. It works. I > thought I understood my own code enough to be able to construct a "<< > Pre

Re: [PHP] << Previous n Articles

2002-02-05 Thread jtjohnston
Jason, I'm not ssure I follow. $offset is the number i read in in my $limit is the number displayed. $num_rows is the number of rows in my database. What are you doing with $previous? $previous would be my string, not the previous offset? Could you show me again? > > if(!$offset) > > { > > $of

Re: [PHP] << Previous n Articles

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 12:02, jtjohnston wrote: > Jason, > > I'm not ssure I follow. > $offset is the number i read in in my > $limit is the number displayed. > $num_rows is the number of rows in my database. Correct. > What are you doing with $previous? $previous would be my string, no

Re: [PHP] Convert 24hr to 12hr

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 18:44, Gary wrote: > Hello All, > Can someone please RTFM me so I can convert MySQL 24 hour time to 12 > hour time. > TIA > gary Use MySQL's date_format() function with the %r specifier in your query: shanna% mysql Reading table information for completion of table a

[PHP] Checkboxe problem

2002-02-05 Thread Gaylen Fraley
I have a form with 1 checkbox and have coded it like this: When the form is submitted, $HTTP_POST_VARS[private] only exists IF checkbox is checked. It doesn't exist otherwise, which is causing a problem because there are several other elements before and after. What happens is the value AFTER

Re: [PHP] breaking out of two loops

2002-02-05 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 20:19, Daniel Grace wrote: > "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message > > > > From the manual: > > > >break accepts an optional numeric argument which tells it how > >many nested enclosing structures are to be broken out of > > > > You can find this

RE: [PHP] Checkboxe problem

2002-02-05 Thread Niklas Lampén
There is no way. How would you then know if the checkbox was checked or not? I use 'em like this and then check if $private is "myValue" or not. If you really have to get some data thru, use hidden inputs. Niklas -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent

[PHP] Using strings in switches

2002-02-05 Thread phantom
The manual shows that you can use switches with numeric values but is it also possible to use strings? Is this possible? If not, what can I do? Just a bunch of if statements? "; break; case Fred Flinstone: echo "Yabba Dabba Do"; break; default: echo "Do not

[PHP] Re: Using strings in switches

2002-02-05 Thread Justin Garrett
Try it. But to answer your question, yes. Don't forget to put quotes around your strings in the case statements. switch($name){ case "beesly": break; } "Phantom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The manual shows that you can use s

[PHP] Fw: why !^ in email?

2002-02-05 Thread nina
- Original Message - From: "YY" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, February 06, 2002 1:29 PM Subject: why !^ in email? > why appear !^ in email when I send HTML email with mail() function? It works > w/ those HTML codes, but I've no idea why there are some "!"

Re: [PHP] Checkboxe problem

2002-02-05 Thread Mike Maltese
just use iseet(); if(isset($private)){ //do stuff } - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 8:41 PM Subject: [PHP] Checkboxe problem > I have a form with 1 checkbox and have coded it like this: > > > >

[PHP] Mysql

2002-02-05 Thread Roman Duriancik
Pleae help me ! I need delete record from table user.mysql in mysql database, i log on in mysql like root and I log on on linux server like root. But when I write command : delete from user where user=''; mysql send me error message : ERROR 1036 Table 'user; is read only ! Thans for y

[PHP] Sessions and Classes

2002-02-05 Thread PHP-List
What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems("id" => array(), "qty"=> array()) this is what i do... //when the user enters

Re: [PHP] mysql fails

2002-02-05 Thread val petruchek
> Suppress the error message: > $result = @mysql_query("sql statement",$db); DL Neil, thank you: INSERT IGNORE is exactly what i need. You helped me greatly! Matt, thaks you for help too, but my non-perfect english doesn't allow me to express my thoughts correctly. Thanks! Valentin Petruchek (

[PHP] show something

2002-02-05 Thread val petruchek
Hello, list! I've php script that works for seveeral minutes (3-5) - it indexes my site and when page is indexed it echoes a one-row table (page bla.bla.bla indexed). But browser shows it only when it gets all the page. I want it to show line by line... I know it can be done in perl (www.tracert

<    1   2