Re: [PHP] parent::construct not reliable working on php5.1 b2/b3

2005-08-03 Thread Meno Abels
Thanks, the problem with cut an paste i have not only one of these messages i get huge amounts of these. So i stripped down to one, sorry my fault. a) usally 4-6 b) no c) yes, as I mentioned i tried both (old/new) d) never tested i jump over 5.0 the problem with the code is currently the

Re: [PHP] parent::construct not reliable working on php5.1 b2/b3

2005-08-03 Thread Jochem Maas
Meno Abels wrote: Thanks, the problem with cut an paste i have not only one of these messages i get huge amounts of these. So i stripped down to one, sorry my fault. a) usally 4-6 any given class will never have a variable number of parents ;-) IMHO 6 levels deep is pushing the boat out a

Re: [PHP] parent::construct not reliable working on php5.1 b2/b3

2005-08-03 Thread Meno Abels
Am 03.08.2005 um 09:22 schrieb Jochem Maas: Meno Abels wrote: Thanks, the problem with cut an paste i have not only one of these messages i get huge amounts of these. So i stripped down to one, sorry my fault. a) usally 4-6 any given class will never have a variable number of parents

Re: [PHP] parent::construct not reliable working on php5.1 b2/b3

2005-08-03 Thread Jochem Maas
Meno Abels wrote: Am 03.08.2005 um 09:22 schrieb Jochem Maas: Meno Abels wrote: Thanks, the problem with cut an paste i have not only one of these messages i get huge amounts of these. So i stripped down to one, sorry my fault. a) usally 4-6 any given class will never have a variable

Re: [PHP] parent::construct not reliable working on php5.1 b2/b3

2005-08-03 Thread Meno Abels
Am 03.08.2005 um 11:03 schrieb Jochem Maas: Meno Abels wrote: Am 03.08.2005 um 09:22 schrieb Jochem Maas: Meno Abels wrote: Thanks, the problem with cut an paste i have not only one of these messages i get huge amounts of these. So i stripped down to one, sorry my fault. a) usally

[PHP] Everything works...Unless they hit the back button...

2005-08-03 Thread Jack Jackson
Hi all. This has been an interesting week. Now the form works, and I am able to error check, if no errors look into user answer table and delete from that all q_ids matching the ones just picked, insert this page of question/answer info (q_id/a_id) into the user answer db, and if successful

[PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Mark Rees
Jack Jackson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. This has been an interesting week. Now the form works, and I am able to error check, if no errors look into user answer table and delete from that all q_ids matching the ones just picked, insert this page of

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Jack Jackson
Hi, mark, snip Mark Rees wrote: Do you want to allow people to go back and change things ? If so, write a suitable UPDATE statement /snip Thanks, but I think the update function should be built in -- the sql checks whether the userAnswer table contains the q_id the user has just entered;

RE: [PHP] AJAX PHP

2005-08-03 Thread Miguel Guirao
Hey!!! What resources do you used to learn AJAX? I saw a presentation about AJAX hosted by PHP Architect and I like it, but I want to go deep in the subject, so far I have not found resources. Thanks in advance!! -Original Message- From: Graham Anderson [mailto:[EMAIL PROTECTED] Sent:

[PHP] Access and PHP

2005-08-03 Thread David Wills
I am looking for some resources to use my Access Databases with PHP, anyone have a good link? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Access and PHP

2005-08-03 Thread Rory Browne
I haven't used access with php(mainly due to the fact that I use php on linux), but any access use I've seen so far was through OBDC(and that was in phpBB). I suggest you consider both this, and dogging your way through MS's COM docs. On 8/3/05, David Wills [EMAIL PROTECTED] wrote: I am looking

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Kristen G. Thorson
The code below isn't much help to debug. Do some checking to figure out how far into your IF statement you're getting. Is the query running? Is it the query you expect? (Step #1 when inserting or creating dynamic queries that aren't working: print them out to make sure they are what you

[PHP] Calculation error - PHP not following math hierarchi ???

2005-08-03 Thread Rene Brehmer
I've run into a situation where PHP is way off when doing a relatively simple calculation of distance between two points in 2-dimensional space, where coordinates go from 1 to 300 in both X and Y directions. When passing 300, it goes back to 1, and vise-versa (it's for a game and is supposed to

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Jack Jackson
Hi Kristen, there's a misunderstanding: Kristen G. Thorson wrote: The code below isn't much help to debug. Do some checking to figure out how far into your IF statement you're getting. Is the query running? Yes it runs successfully Is it the query you expect? Yes it is perfect, and

Re: [PHP] Access and PHP

2005-08-03 Thread tg-php
Just looked into this recently and here's a brief rundown of what I've found: 1. If you run PHP on a non-Windows system, your only option seems to be making a connection to a remote ODBC data source (hosted on a Windows machine presumably). There was something..err.. ODBTP (?) that would work

Re: [PHP] Regex help

2005-08-03 Thread Marcus Bointon
On 2 Aug 2005, at 15:12, Robin Vickery wrote: I don't suppose this is the place for a rant about the futility of checking email addresses with a regexp? Though I will agree with you to some extent, I've had quite a lot of success with this, which is pretty thorough:

[PHP] Regular expressions book

2005-08-03 Thread Stefan Lemmen
Hi, I've want to dig a bit deeper into regular expressions for php. I wonder if anyone can help me choosing between 2 books I'm considering buying: 1. Open Source Regular Expression Recipes - Nathan A Good 2. Mastering Regular Expressions - Jeffrey Freidl If your using/reading one of these

[Fwd: [PHP] varibles defination]

2005-08-03 Thread edwardspl
Dear you, So, if I need to define a set of varibles ( two dimension array, eg : $func[0,0] ) and via the varibles of form tag ( format, eg : $_GET[varname] or $_POST[varname] ), how about the example sources ? Thank for your help ! Edward. ---BeginMessage--- If I want to define and display a

[PHP] Job for SQL or PHP?

2005-08-03 Thread -k.
Just for the sake of example let's say i keep track of all of a customers previous orders in a table like this: Last_Order -- Cust_ID Item_No No_ordered When a customer places an order i put the order details in an a table like this: Orders --- Order_ID Cust_ID Item_No No_ordered

Re: [PHP] Calculation error - PHP not following math hierarchi ???

2005-08-03 Thread Robin Vickery
On 8/3/05, Rene Brehmer [EMAIL PROTECTED] wrote: I've run into a situation where PHP is way off when doing a relatively simple calculation of distance between two points in 2-dimensional space, where coordinates go from 1 to 300 in both X and Y directions. When passing 300, it goes back to 1,

[PHP] skip a row in foreach loop

2005-08-03 Thread [EMAIL PROTECTED]
I have a code foreach($results as $key = $value) { echo $key.': '. $value .'br'; } But, $value could be zero too. How to skip printing on screen when $vlaue == 0? I know I can do foreach($results as $key = $value) { if(!empty($value)) { echo $key.': '. $value .'br'; } } but

Re: [PHP] skip a row in foreach loop

2005-08-03 Thread John Nichel
[EMAIL PROTECTED] wrote: I have a code foreach($results as $key = $value) { echo $key.': '. $value .'br'; } But, $value could be zero too. How to skip printing on screen when $vlaue == 0? I know I can do foreach($results as $key = $value) { if(!empty($value)) { echo $key.': '.

Re: [PHP] skip a row in foreach loop

2005-08-03 Thread Chris Boget
but there is a tons of code lines inside the loop and was thingking is there any part in foreach function that can do that? something like: foraech($results as $key = $value, skip(empty($value))) { // } 'continue' is your friend. http://us3.php.net/manual/en/control-structures.continue.php

Re: [PHP] skip a row in foreach loop

2005-08-03 Thread Stut
[EMAIL PROTECTED] wrote: I have a code foreach($results as $key = $value) { echo $key.': '. $value .'br'; } But, $value could be zero too. How to skip printing on screen when $vlaue == 0? foreach($results as $key = $value) { if ($value == 0) continue; echo $key.': '. $value .'br'; }

Re: [PHP] Calculation error - PHP not following math hierarchi ???

2005-08-03 Thread Kristen G. Thorson
See http://us3.php.net/manual/en/language.operators.php http://us3.php.net/manual/en/language.operators.bitwise.php You want this: function calc_distance($curX,$curY,$newX,$newY) { // calculate distance to new location $distX = abs($curX - $newX); $distY = abs($curY - $newY); if ($distX

Re: [PHP] skip a row in foreach loop

2005-08-03 Thread [EMAIL PROTECTED]
Yes, it comes fro DB, but, quesry is alerady to complex (for me :)) with union, joint, ... and expanding with something else ill take additional few hours to figure it out. And, Stut's and Chris' continue solution sound perfect for me :) Thanks guys on such a fast respond! -afan John

Re: [PHP] Job for SQL or PHP?

2005-08-03 Thread Kristen G. Thorson
Try INSERT INTO Orders (SELECT '678',Cust_ID,Item_No,No_ordered FROM Last_Order WHERE Cust_ID = '678') kgt -k. wrote: Just for the sake of example let's say i keep track of all of a customers previous orders in a table like this: Last_Order -- Cust_ID Item_No No_ordered When a

Re: [PHP] AJAX PHP

2005-08-03 Thread Graham Anderson
not a whole lot of info on the subject for working with graph classes :( at least at this point g On Aug 3, 2005, at 7:05 AM, Miguel Guirao wrote: Hey!!! What resources do you used to learn AJAX? I saw a presentation about AJAX hosted by PHP Architect and I like it, but I want to go

Re: [PHP] Job for SQL or PHP?

2005-08-03 Thread -k.
--- Kristen G. Thorson [EMAIL PROTECTED] wrote: Try INSERT INTO Orders (SELECT '678',Cust_ID,Item_No,No_ordered FROM Last_Order WHERE Cust_ID = '678') Thanks that nailed it. You rock. -k. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

Re: [PHP] AJAX PHP

2005-08-03 Thread Mikey
Graham Anderson wrote: not a whole lot of info on the subject for working with graph classes :( at least at this point g Surely it would be much simpler to just use have javascript to set a placed image to a new (or the same) location - this image is then generated by JPGraph et al with no

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
Yeah, I thought about that. But to be honest, I don't know how to recompile with builds from the CD/rpms. This is the first time I've ever done it this way. So if I get the latest RPM and install it it should activate session right? And then I just need to restart apache2 and I should be good?

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
Again, this won't affect anything since I installed from the CD's and I've always noticed that things installed via CD/rpm have different install paths then source. I'm worried it will look in the wrong spot for Apache...but that could be a un-needed worry. Rory Browne wrote: On 7/29/05,

Re: [PHP] Regular expressions book

2005-08-03 Thread Edward Vermillion
Stefan Lemmen wrote: Hi, I've want to dig a bit deeper into regular expressions for php. I wonder if anyone can help me choosing between 2 books I'm considering buying: 1. Open Source Regular Expression Recipes - Nathan A Good 2. Mastering Regular Expressions - Jeffrey Freidl If your

[PHP] ftp_put(), move_uploaded_file() problem

2005-08-03 Thread tripwater
Hello, I have a site that allows developers to upload current modules to the webserver. It has been requested that when this is done, I also ftp a backup copy to a remote server. Something is wrong here. The file upload code works. The back ftp code works,only if I comment out the

[PHP] ftp problems

2005-08-03 Thread tripwater
Hello, I have a site that allows developers to upload current modules to the webserver. It has been requested that when this is done, I also ftp a backup copy to a remote server. Something is wrong here. The file upload code works. The back ftp code works,only if I comment out the

[PHP] Write from form to DB

2005-08-03 Thread George B
Ok, I got this far. include(config.php); $username = $_GET['name']; $password = $_GET['pword']; echo Username = . $username . br; echo Password = . $password . br; $query = INSERT INTO user (name,password) VALUES ($username,$password) $result = mysql_query($query) config is just all the info

Re: [PHP] AJAX PHP

2005-08-03 Thread Graham Anderson
is there an example of this somewhere ? Google does not come up with much. I have seen simple AJAX examples...but none related to graphing classes. I am a bit new at combining php with javascript with regards to image creation. basically, I want the user to enter variables and have a graph

RE: [PHP] ftp problems

2005-08-03 Thread Jay Blanchard
[snip] Hello, I have a site that allows developers to upload current modules to the webserver. It has been requested that when this is done, I also ftp a backup copy to a remote server. Something is wrong here. The file upload code works. The back ftp code works,only if I comment out the

RE: [PHP] Write from form to DB

2005-08-03 Thread Jim Moseby
Ok, I got this far. include(config.php); $username = $_GET['name']; $password = $_GET['pword']; echo Username = . $username . br; echo Password = . $password . br; $query = INSERT INTO user (name,password) VALUES ($username,$password) $result = mysql_query($query) config is just

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] $query = INSERT INTO user (name,password) VALUES ($username,$password) would do the job but, it dosent. It gives a Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\Apache Group\Apache2\htdocs\php\login\registration_action.php on line 15 [/snip] $query = INSERT INTO

RE: [PHP] Access and PHP

2005-08-03 Thread Nathan Tobik
Have you checked out FreeTDS? We use FreeTDS to connect PHP on Linux to SQL Server 2000. Best of luck. Nate Tobik (412)661-5700 x206 VigilantMinds -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 10:47 AM To:

Re: [PHP] Write from form to DB

2005-08-03 Thread George B
Jay Blanchard wrote: [snip] $query = INSERT INTO user (name,password) VALUES ($username,$password) would do the job but, it dosent. It gives a Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\Apache Group\Apache2\htdocs\php\login\registration_action.php on line 15

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] [snip] $query = INSERT INTO user (name,password) VALUES ($username,$password) would do the job but, it dosent. It gives a Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\Apache Group\Apache2\htdocs\php\login\registration_action.php on line 15 [/snip] $query =

[PHP] Event Registration Software?

2005-08-03 Thread aaronjw
Hey guys, Sorry for the OT but I'm having difficulty with this. Client wants us to develop an event registration system for their company (multiple events) with the ability to accept credit card payments. Just wondering if there is a PHP solution already available - paid or opensource - that

Re: [PHP] Write from form to DB

2005-08-03 Thread Richard Davey
Hello George, Wednesday, August 3, 2005, 6:50:07 PM, you wrote: GB $query = INSERT INTO user (name,password) VALUES ($username,$password) $query = INSERT INTO user (name, password) VALUES ('$username', '$password'); And don't forget to validate your user input before slamming it directly into

[PHP] preg_replace single quote

2005-08-03 Thread Paul Nowosielski
Hi All, I'm trying to strip single quotes using preg_replace() with no luck. Can someone give me some advice on achieving this? TIA! -- Paul Nowosielski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Write from form to DB

2005-08-03 Thread John Nichel
George B wrote: Ok, I got this far. include(config.php); $username = $_GET['name']; $password = $_GET['pword']; echo Username = . $username . br; echo Password = . $password . br; $query = INSERT INTO user (name,password) VALUES ($username,$password) $result = mysql_query($query) config is

Re: [PHP] Write from form to DB

2005-08-03 Thread John Nichel
Jay Blanchard wrote: [snip] $query = INSERT INTO user (name,password) VALUES ($username,$password) would do the job but, it dosent. It gives a Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\Apache Group\Apache2\htdocs\php\login\registration_action.php on line 15

RE: [PHP] ftp problems

2005-08-03 Thread Jay Blanchard
[snip] What is top-post? and also, how can I show you my code is I can not send it in the email? DO I need to attach it? [/snip] Top posting is posting your reply above the message. It makes the subject read out of order. Because it is backwards. Why? Top posting is bad. Cut and paste your

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] $query = INSERT INTO user (name,password) VALUES ('.$username.','.$password.') ; Try that... should work. your query syntax is mangled. Backwards on your quotes Jay. Go home and get some sleep. ;) [/snip] Damn these corporate mergers! Corrected query $query = INSERT INTO user

RE: [PHP] Write from form to DB

2005-08-03 Thread Jim Moseby
[snip] $query = INSERT INTO user (name,password) VALUES ('.$username.','.$password.') ; Try that... should work. your query syntax is mangled. Backwards on your quotes Jay. Go home and get some sleep. ;) [/snip] Damn these corporate mergers! Corrected query $query =

RE: [PHP] Write from form to DB

2005-08-03 Thread Jim Moseby
[snip] $query = INSERT INTO user (name,password) VALUES ('.$username.','.$password.') ; Try that... should work. your query syntax is mangled. Backwards on your quotes Jay. Go home and get some sleep. ;) [/snip] Damn these corporate mergers! Corrected query

Re: [PHP] Calculation error - PHP not following math hierarchi ???

2005-08-03 Thread Rene Brehmer
Documented research indicate that on Wed, 3 Aug 2005 16:38:08 +0100, Robin Vickery wrote: On 8/3/05, Rene Brehmer [EMAIL PROTECTED] wrote: Using this function: function calc_distance($curX,$curY,$newX,$newY) { // calculate distance to new location $distX = abs($curX - $newX); $distY

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] Why not: $query = INSERT INTO user (name,password) VALUES ('$username','$password'); [/snip] You could do that. The reason that I don't is because of the mixing of quote types. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace single quote

2005-08-03 Thread Psystorm
Paul Nowosielski wrote: Hi All, I'm trying to strip single quotes using preg_replace() with no luck. Can someone give me some advice on achieving this? TIA! $string = preg_replace('/\'/', '', $string); should work fine Kind regards, Thomas Obermüller -- PHP General Mailing List

Re: [PHP] Write from form to DB

2005-08-03 Thread George B
Jim Moseby wrote: [snip] $query = INSERT INTO user (name,password) VALUES ('.$username.','.$password.') ; Try that... should work. your query syntax is mangled. Backwards on your quotes Jay. Go home and get some sleep. ;) [/snip] Damn these corporate mergers! Corrected query $query =

[PHP] syntax highlighting your php code on a web page

2005-08-03 Thread Steve Turnbull
Hi Is there a class or some code out there which enables you to print your PHP code to a web page and make it appear with syntax highlighting? As an example of what I am after, have a look here; http://www.phpfreaks.com/phpmanual/page/function.ldap-add.html Please note this is just an example

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] It does not seem to be putting anything into the DB. Gives no errors, but I check PHP My Admin, and there is nothing in the users and passwords field. I think something isnt working hmmm [/snip] There is a brilliant statement if there ever was one! ROFLMMFAO! Does the mysql user you

RE: [PHP] syntax highlighting your php code on a web page

2005-08-03 Thread Jay Blanchard
[snip] Is there a class or some code out there which enables you to print your PHP code to a web page and make it appear with syntax highlighting? As an example of what I am after, have a look here; http://www.phpfreaks.com/phpmanual/page/function.ldap-add.html Please note this is just an

RE: [PHP] Write from form to DB

2005-08-03 Thread Jim Moseby
[snip] Why not: $query = INSERT INTO user (name,password) VALUES ('$username','$password'); [/snip] You could do that. The reason that I don't is because of the mixing of quote types. So, is that a Really Bad Thing(tm), or is it just bad form? If the former, why? JM -- PHP

Re: [PHP] Write from form to DB

2005-08-03 Thread George B
Jay Blanchard wrote: [snip] It does not seem to be putting anything into the DB. Gives no errors, but I check PHP My Admin, and there is nothing in the users and passwords field. I think something isnt working hmmm [/snip] There is a brilliant statement if there ever was one! ROFLMMFAO!

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] Jay Blanchard wrote: [snip] It does not seem to be putting anything into the DB. Gives no errors, but I check PHP My Admin, and there is nothing in the users and passwords field. I think something isnt working hmmm [/snip] There is a brilliant statement if there ever was one!

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] So, is that a Really Bad Thing(tm), or is it just bad form? If the former, why? [/snip] I personally think it is just bad form. I also know that it can make trouble-shooting a bear sometimes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] Yeah I am using root which has all permissions [/snip] Are you sure? Did you specifically GRANT ALL to root? When you did, did you flush the permissions? BTW, using root is a Bad Idead[tm]. [/snip] Also, check the mysql error log -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Write from form to DB

2005-08-03 Thread George B
Jay Blanchard wrote: [snip] Yeah I am using root which has all permissions [/snip] Are you sure? Did you specifically GRANT ALL to root? When you did, did you flush the permissions? BTW, using root is a Bad Idead[tm]. [/snip] Also, check the mysql error log Never mind guys! I got it working!

[PHP] Reference problem... (got bounced from php.bugs #33984)

2005-08-03 Thread Andrey Nikolaev
I'm not php noobie, but still can't understand this behaviour of references. Anybody can show me where the hell is it documented ? Or show any logical conclusions why is it act like this... Just anything. Thanks. Description: See reproduce code. Reproduce code: ---

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] Jay Blanchard wrote: [snip] Yeah I am using root which has all permissions [/snip] Are you sure? Did you specifically GRANT ALL to root? When you did, did you flush the permissions? BTW, using root is a Bad Idead[tm]. [/snip] Also, check the mysql error log Never mind guys! I got

Re[2]: [PHP] Write from form to DB

2005-08-03 Thread Richard Davey
Hello Jim, Wednesday, August 3, 2005, 7:43:15 PM, you wrote: You could do that. The reason that I don't is because of the mixing of quote types. JM So, is that a Really Bad Thing(tm), or is it just bad form? If the JM former, why? It's in no way a Really Bad Thing, probably just a personal

Re: [PHP] Write from form to DB

2005-08-03 Thread John Nichel
George B wrote: snip It does not seem to be putting anything into the DB. Gives no errors, but I check PHP My Admin, and there is nothing in the users and passwords field. I think something isnt working hmmm Without seeing more of your code, we won't be able to tell for sure, but if I

Re: [PHP] AJAX PHP

2005-08-03 Thread Mikey
Graham Anderson wrote: is there an example of this somewhere ? Google does not come up with much. I have seen simple AJAX examples...but none related to graphing classes. I am a bit new at combining php with javascript with regards to image creation. basically, I want the user to enter

Re: [PHP] skip a row in foreach loop

2005-08-03 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Yes, it comes fro DB, but, quesry is alerady to complex (for me :)) with union, joint, ... and expanding with something else ill take ^ \__ I think to many of these are the problem ;-) additional few hours to figure it out. ... --

RE: [PHP] Write from form to DB

2005-08-03 Thread Jay Blanchard
[snip] Also, check the mysql error log Never mind guys! I got it working! [/snip] C an you tell us how you got it working in the event someone else needs to duplicate your efforts? [/snip] Can you tell us what the problem was so that it is available for the archive? -- PHP General Mailing List

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Jack Jackson
I've tried playing with the $_SERVER['HTTP_REFERER'] and that's no good because it's all coming from the same page - index.php!! What am I missing. . . ? Jack Jackson wrote: Hi Kristen, there's a misunderstanding: Kristen G. Thorson wrote: The code below isn't much help to debug. Do some

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Kristen G. Thorson
You said If the user makes changes, those changes get error checked but do not become part of the sql query. Where in your code is it failing to become part of the query? Put a check at each level and see where *exactly* it fails to get deep enough to become one with the query. Also, I'm

Re: [PHP] Regular expressions book

2005-08-03 Thread Steve Turnbull
On Wed, 03 Aug 2005 12:10:40 -0500, Edward Vermillion wrote: Stefan Lemmen wrote: Hi, I've want to dig a bit deeper into regular expressions for php. I wonder if anyone can help me choosing between 2 books I'm considering buying: 1. Open Source Regular Expression Recipes - Nathan A

Re: [PHP] Regular expressions book

2005-08-03 Thread -k.
Has anyone here tried to learn Regular expressions with RegexBuddy? http://www.regular-expressions.info/regexbuddy.html It looks pretty cool, and even has some PHP specific stuff, but you have to pay to play. -k. __ Do You Yahoo!? Tired of

Re: [PHP] very simple, yet can't think how.

2005-08-03 Thread Esteamedpw
Thanks Mark and Sonu... as much as I've learned over the last few months I think I'm still a little confused about some of this stuff. I appreciate the Help you've given me :-) Would any of you know about any tutorials on something like this? books with tutorials, etc? If I knew what it

Re: [PHP] Write from form to DB

2005-08-03 Thread George B
Jay Blanchard wrote: [snip] Yeah I am using root which has all permissions [/snip] Are you sure? Did you specifically GRANT ALL to root? When you did, did you flush the permissions? BTW, using root is a Bad Idead[tm]. [/snip] Also, check the mysql error log Thanks for all the help guys. It

[PHP] Message check then post

2005-08-03 Thread George B
I am coding a message board. I am about done. I have all the forms needed for the message. So it all works out. The user types in his name, message title, and the message itself. Then clicks submit. The Submit button takes him to the message check. The message check shows all the stuff the

[PHP] Re: [PHP-WIN] can I use Apache v 2 with PHP?

2005-08-03 Thread Leo G. Divinagracia III
Taksam wrote: Now, my question is: can I use Apache version 2 with PHP? And, even if I can use it in my development environment... is it safe to use Apache 2+PHP in a production environment? running apache 2 with php 4, not 5... -- Leo G. Divinagracia III [EMAIL PROTECTED] -- PHP

Re: [PHP] Message check then post

2005-08-03 Thread disguised.jedi
On 8/3/05, George B [EMAIL PROTECTED] wrote: I am coding a message board. I am about done. I have all the forms needed for the message. So it all works out. The user types in his name, message title, and the message itself. Then clicks submit. The Submit button takes him to the message

[PHP] shell_exec(zip.. ?

2005-08-03 Thread Sam Smith
shell_exec(zip -r ddd ddd); // don't work safe_mode off, works from command line php. What could it be? Details: drwxr-xr-x 2 zamzmith zamzmith 512 Aug 3 18:34 execTest/ -rw-r--r-- 1 zamzmith zamzmith 107 Aug 3 18:33 mkdir.php mkdir.php: ?php shell_exec(mkdir ddd; touch ddd/fff;); ?

[PHP] a problem about calling nusoap with the same key

2005-08-03 Thread Shiqi Yang
Hi all: Now I am playing nusoap to call some apis. In the api doc, the example gives like this: ArrayList input name=a value=a input name=b value=b input name=c value=c /ArrayList My code like: Array('ArrayList' = array( 'input' = array('name' = 'a', 'value'= 'b')) ); But

[PHP] Setting up a new box from scratch?

2005-08-03 Thread Brian Dunning
Hey all - I have an unused Pentium box here, recent, well loaded with RAM and HD. I want to turn it into a LAMP box. Never done that before; is there a preferred one-stop-shop installer CD or anything (easy - knock on wood)? It would be nice to end up with some kind of decent web GUI for

Re: [PHP] Message check then post

2005-08-03 Thread George Babichev
[EMAIL PROTECTED] wrote: On 8/3/05, George B [EMAIL PROTECTED] wrote: I am coding a message board. I am about done. I have all the forms needed for the message. So it all works out. The user types in his name, message title, and the message itself. Then clicks submit. The Submit button

Re: [PHP] Message check then post

2005-08-03 Thread Tom Ray [Lists]
George- Without seeing your code it's hard to say what the problem is. There could be a typo, a missing quote or semi colon. The code snippet of the review page would be helpful. Now when you say it's entering blanks into the database, I'm assuming you have a messageID field in the db that

[PHP] can't find the parser error

2005-08-03 Thread zedleon
I am having trouble finding the parser error in this small test script. Any help would be appreciated I am pulling in an array from this html form. form action=/testarray.php method=post pEvent Name: input type=text name=name size=30 //p pWeek Days/p input type=checkbox name=weekdays[]

RE: [PHP] can't find the parser error

2005-08-03 Thread Dean Maunder
You missed a semi-colon... ?php print pYou want to add an event called b{$_POST['name']}/b which takes place on: br /; if (is_array ($_POST['weekdays'])) { foreach ($_POST['weekdays'] as $day) { print $day; // ---here } } else { print 'Please select at least one