Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas stu...@3ft9.com wrote: On 26 Apr 2012, at 18:37, Jim Giner wrote: Im no expert, but why would you expose a query to the world thru the use of a GET?  Why not just collect the params and build the string in your code? That is how people hack into

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie nos...@mckenzies.net wrote: On 04/27/2012 10:56 AM, Chris Stinemetz wrote: I still haven't been able to find a solution. Is there anyone out there that knows how to keep the query string intact? Thank you, Chris urlencode($storerow

[PHP] url string being split

2012-04-26 Thread Chris Stinemetz
Hello list, I'm trying to pass a query string through $_GET but for some reason the array is being split on ''. How may I avoid this so it stays intacted? user selection portion: while($storerow = mysql_fetch_assoc($storesresult)) echo 'h4a href=store.php?id=' . $storerow['store_subject'] . ''

[PHP] MySQL table design

2012-03-22 Thread Chris Stinemetz
Hello List, Is it possible to create a MySQL table with characters such as . and [] in the column headers? If so would you explain how? Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL table design

2012-03-22 Thread Chris Stinemetz
On Thu, Mar 22, 2012 at 7:42 PM, Stuart Dallas stu...@3ft9.com wrote: On 23 Mar 2012, at 00:10, Chris Stinemetz wrote: Is it possible to create a MySQL table with characters such as . and [] in the column headers? If so would you explain how? Try putting the column names in backticks

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
By local, do you mean a local dedicated box, or an everyday use box? It is an everyday use box. The checklist varies quite a bit depending on the results. Also, is your site to be served by standard port 80 traffic? Does your Internet host allow inbound port 80? Yes it will be served by

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
On Wed, Sep 7, 2011 at 6:23 AM, James Yerge ja...@nixsecurity.org wrote: On 09/07/2011 12:24 AM, Chris Stinemetz wrote: Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment

[PHP] dev to production server

2011-09-06 Thread Chris Stinemetz
Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment? Basically I want to host my own web site on my local machine now that I have finished developing it. Thanks in advance! -- PHP

Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Chris Stinemetz
On Aug 24, 2011, at 3:46 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Mike Mackintosh mike.mackint...@angrystatic.com wrote: On Aug 24, 2011, at 11:52, John Black s...@network-technologies.org wrote: On 08/24/2011 03:04 AM, Jason Pruim wrote: Wondering what everyone

Re: [PHP] chained select with ajax

2011-08-14 Thread Chris Stinemetz
I was able to figure it out. Discovered the very useful tool firebug! Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form validation

2011-08-12 Thread Chris Stinemetz
I have a select menu created by a foreach loop. I am trying to validate that there was a selection made before it is submitted to the database. But I am not doing something correctly. select name=market class=ajax onchange=javascript:get(this.parentNode); option value=Choose.../option ?php

[PHP] form handling

2011-08-11 Thread Chris Stinemetz
I have two forms on the same php script. Is it possible to submit both forms to the same action=processform.php with a single submit button? If so would you give me examples on how to handle this? I will also continue searching google. Thank you, Chris -- PHP General Mailing List

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
If the two forms call the same script that's fine.  If not, that will work too.  Just realize that the inputs from one form will NOT be returned to the script when the submit is used from the other form. Jim, This is what I am trying to do. One submit button for both forms going to the same

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
Chris, By definition, a 'submit' button submits a form.  Not 2 forms.  Each form has to have it's own form. It is not feasible to submit two forms - since the conversation from your client pc is going to be garbled even if you could (JS?) do the second submit.  One transactiion is going to

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
I would bet it's the quotes screwing up the js. Can / are you escaping that variable when ajaxing it back? Bastien Koert 905-904-0334 I found a way to make the ajax work with one form. I removed the table and the ajax worked just fine. Aparently you can't embed div containers within a

[PHP] text insertion

2011-08-10 Thread Chris Stinemetz
How do I preserve text formatting when text is inserted into a database table? For example: I am using a textarea to allow users to leave comments into the database and I am using: ' . mysql_real_escape_string($_POST['store_comments']) . ', to prevent SQL injection; But when I call the data

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
Are you sure its not preserved? When you output text in a browser, by default its output as html, not plain text. Html ignores extraneous whitespace, and doesn't use a monospaced font, so formatting text into columns in a textarea won't work either. Look at the html source code to see what

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
   Use HTML 'pre' tags:        pre?php echo $your_content; ?/pre I just tried that and that puts all the text on a single line. echo 'tr class=topic-post td class=user-poststrong' . $posts_row['first_name'] . ' ' . $posts_row['last_name'] . ' ' . date('m-d-Y h:iA',

Re: [PHP] text insertion

2011-08-10 Thread Chris Stinemetz
No luck. Thanks. On Aug 10, 2011 4:17 PM, hdede...@videotron.ca wrote: how about echo nl2br($your_content); - Original Message - From: Chris Stinemetz chrisstinem...@gmail.com Date: Wednesday, August 10, 2011 5:09 pm Subject: Re: [PHP] text insertion To: Daniel P. Brown

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Chris Stinemetz
basically all I'm trying to do is generate the last 4 digits starting at and going up to . for testing purposes I'm just echoing back but will eventually insert the complete number back into the database as a 7 digit string. The error I'm getting is: Fatal error: Maximum

[PHP] concatenating

2011-08-10 Thread Chris Stinemetz
Is it possible to concatenate a string and an element from a mysql_fetch_assoc array? I haven't had much luck searching google. Such as concatenating results with ' . $posts_row['store_tptest'] . ' so that if there are no elements returned nothing will be displayed? Thank you, Chris -- PHP

Re: [PHP] pass text variables to next page

2011-08-09 Thread Chris Stinemetz
Thank you Tamara. Not sure if I am doing it right. It looks like the last single quote is being escaped. When I dump the query I get: SELECT store_id, store_subject FROM stores WHERE store_subject = 'Bella Roe 4980 Roe Blvd\' I am thinking maybe I have too many single quotes some where, but I

[PHP] form hidden value

2011-08-08 Thread Chris Stinemetz
I'm trying to pass a hidden value with my form submission. Not sure what I am doing woring, but the value is not being passed. Query is___ $query = SELECT id, store_name FROM store_list WHERE store_type = '$type' AND id_market = '$market' ; $result = mysql_query($query) or

[PHP] pass text variables to next page

2011-08-08 Thread Chris Stinemetz
I am trying to pass text strings from on page to a next to populate the queries on the passed to page. The only way I can get the query to work is if I am able to put single ticks around the string to make it literal, but I can't seem to figure out how to do it for the following line of code.

Re: [PHP] control structure

2011-08-04 Thread Chris Stinemetz
       // This part makes no sense they are not logged in and they have a level of 1 or 2 ? Yes. It might not be the best approach, but I am assigning the user a value: 1, 2, or 3 while they create an account. This will limit what they will be able to post. For example I only want users with

[PHP] PHP frameworks

2011-07-21 Thread Chris Stinemetz
Hello all, I am thinking about venturing into PHP frameworks, but I would like to get advice on what the correct selection would be for someone that is about intermediate in PHP knowledge. Thank you, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] default option

2011-07-18 Thread Chris Stinemetz
Hello, I am building some select menu's dynamically from a mysql database and am courous how to give the menu a default option Choose. Below is what I have so far for one of my menu's. Thank you in advace. select name=market id=market

Re: [PHP] default option

2011-07-18 Thread Chris Stinemetz
Thank you Stuart. That did the trick. On Mon, Jul 18, 2011 at 10:38 PM, Stuart Dallas stu...@3ft9.com wrote: On Tue, Jul 19, 2011 at 4:28 AM, Chris Stinemetz chrisstinem...@gmail.com wrote: Hello, I am building some select menu's dynamically from a mysql database and am courous how to give

[PHP] chained select with ajax

2011-07-17 Thread Chris Stinemetz
This is a [Cross-post] I didn't receive any feedback from phpdb list. Hope fully there is someone out there that may offer some advice why my code isn't working correctly. Thanks all. I am trying to create a cascading seletct with 3 menu choices. For some reason my third select menu is not

Re: [PHP] A Question On Web Graphics

2011-07-12 Thread Chris Stinemetz
  Also I have successfully experimented with Apache and PHP but have not yet identified graphics applications for this venue either! Ideas? You may want to look into PHP:GD link to manual: http://php.net/manual/en/book.image.php HTH, Chris -- PHP General Mailing List

[PHP] PHP control structure

2011-07-12 Thread Chris Stinemetz
Hey all, I would like to add an if statement to the following function so that the value 1 is assigned corporate and the value is 2 assign standard to it. Would you show me an example on adding it to the below function? If there is a better way to reassign the value please share. Thank you,

Re: [PHP] Linking A C Program Example to PHP

2011-07-11 Thread Chris Stinemetz
On Sun, Jul 10, 2011 at 4:56 PM, Thomas Dineen tdin...@ix.netcom.com wrote: Gentle People:   Please Help!   I am attempting to link a C Program example to PHP using the tutorial shown at the link below: http://voloreport.com/making-a-c-extension-for-php-in-11-easy-steps   Everything

Re: RES: [PHP] Installing PHP

2011-07-04 Thread Chris Stinemetz
Jim, What is your server root set up too? I would put the apache configuration back to the way it was and then place php script with phpinfo() function in it. Try to run it and see if that works. HTH, Chris On Jul 4, 2011 8:14 AM, Alejandro Michelin Salomon (Hotmail) amichel...@hotmail.com

Re: [PHP] Re: Installing PHP

2011-07-04 Thread Chris Stinemetz
What is your document root set to in your httpd.conf file? By default it should be htdocs subdirectory in apache program files. Sent from my iPod On Jul 4, 2011, at 12:10 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Shawn, I added my php folder to the path but no change. Shawn

Re: [PHP] Installing PHP

2011-07-04 Thread Chris Stinemetz
On Mon, Jul 4, 2011 at 8:13 AM, Alejandro Michelin Salomon (Hotmail) amichel...@hotmail.com wrote: Jim: In my Windows the install adds the lines : #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir C:\PHP\ LoadModule php5_module C:\PHP\php5apache2_2.dll AddHandler

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
That worked perfectly! Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
radio select validation What I am doing wrong? I want to make sure a radio button is selected, but my current code allows insertion even when radio button isn't selected. My code is: //Generating radio buttons for store type with array

Re: [PHP] php hide menu

2011-06-07 Thread Chris Stinemetz
If you do require the value from the first menu to be passed to the select statements for the other menus let me know I will explain how that is done, it is a little more complex. I would like to pass the value from the prior menu to the next. Would you please show me how to handle this?

[PHP] php hide menu

2011-06-06 Thread Chris Stinemetz
I have three drop down menus in my form. How do I make it so the second and third menus are only visible once the prior menu was selected? Below is the first two drop down menus. Thanks in advance. // Generating first menu using array. $markets = array('MCI' = 'Kansas City',

[PHP] PHP delete confirmation

2011-04-28 Thread Chris Stinemetz
I have been trying to figure out how to add delete confirmation for the bellow snippet of code. I would prefer not to use javascript. Can anyone offer any advise on how to right the delete confirmation in PHP? Thank you in advance. P.S. I apologize for the indention. For some reason gmail messes