[PHP-DB] mysql ORDER BY problems

2006-06-18 Thread Rob W.
Ok, here's what i got in my mysql db. I got a table listed with numbers as follows 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 25 These numbers I can display fine. I'm using .. $query="SELECT * FROM db ORDER BY numbers ASC"; Right now it displays it as 1 10 11 12 . 2 22 23 25 ...

[PHP-DB] Finding a process in *nix

2006-03-20 Thread Rob W.
Heres what i'm trying to do. $proc=exec('ps aux | grep proc'); if ($proc != "") { echo "True"; } if ($proc == "") { echo "False"; } but some time's it show's the ps aux so I dont get a true reading. Anybody have a way that I might be able to extract this out of there to get a true reading

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Ah yes, that's true. I didnt realize that. Thanks for pointing that out. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, March 14, 2006 9:02 PM Subject: Re: [PHP-DB] Text file (rw) questi

[PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
It's all fixed and works. If anybody is wondering how this turned out, here's the begining of the results. index.php "; if ($variable == "MaxUser") { echo "Max Users: "; } if ($variable == "Password") { echo "Password: "; } // echo "$variable $data"; } fclose($f);

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
So how do I make it so it just set's the variable's that are sent in the $_POST because i wanna write it so that if the value isnt changed, it wont send the $_POST and wont update the config file.. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To:

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Yeah, but will that just replace the data that is present already there? I dont wanna have duplicate entries in there or i'm affraid it wont read it. The origional code you gave worked but it just ran in a big loop. - Original Message - From: "Chris" <[EMAIL PROTE

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
halt after it updates that line of code. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, March 14, 2006 6:23 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: That works,

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
That works, but it just throws it in to a big loop and fills up the file, any suggestions? - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, March 14, 2006 5:54 PM Subject: Re: [PHP-DB] Tex

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
t;Dwight Altman" <[EMAIL PROTECTED]> To: "'Rob W.'" <[EMAIL PROTECTED]>; Sent: Tuesday, March 14, 2006 9:13 AM Subject: RE: [PHP-DB] Text file (rw) question... How about posting your solution as well? Maybe someone will find it useful. -Original Mess

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Nevermind. I figured it out. - Original Message - From: "Rob W." <[EMAIL PROTECTED]> To: Sent: Tuesday, March 14, 2006 1:45 AM Subject: [PHP-DB] Text file (rw) question... I'm trying to figure out how to read specific data from a text file that is already writ

[PHP-DB] Text file (rw) question...

2006-03-13 Thread Rob W.
I'm trying to figure out how to read specific data from a text file that is already written. Example MaxUser=3D32 PortBase=3D8000 I want to be able to have php read them specific pieces of info so I can put them in to forms and update them via php. Any help would be appreciated.