On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie 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,
>
On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas wrote:
> On 26 Apr 2012, at 18:37, Jim Giner wrote:
>
>> I"m 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 your d
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 ''
. $storerow['store_subject'] . ' at ' . date('m-d-Y h:i:
On Thu, Mar 22, 2012 at 7:42 PM, Stuart Dallas 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?
>
&g
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
On Wed, Sep 7, 2011 at 6:23 AM, James Yerge 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?
>
>
>
> 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 ser
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 Gener
On Aug 24, 2011, at 3:46 PM, Ashley Sheridan wrote:
>
>
> Mike Mackintosh wrote:
>
>>
>>
>> On Aug 24, 2011, at 11:52, John Black
>> wrote:
>>
>>> On 08/24/2011 03:04 AM, Jason Pruim wrote:
Wondering what everyone does to prevent multiple form submissions?
My form is simply
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
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.
Choose...
$value)
{
$selected = '';
if($value == $market)
{
$selected =
>
> 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
> 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 t
>
> 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
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 (http://ww
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 G
>
> 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: Maxim
No luck. Thanks.
On Aug 10, 2011 4:17 PM, wrote:
>
> how about
>
> echo nl2br($your_content);
>
>
>
>
> - Original Message -----
> From: Chris Stinemetz
> Date: Wednesday, August 10, 2011 5:09 pm
> Subject: Re: [PHP] text insertion
> To: "D
>
> Use HTML 'pre' tags:
>
>
>
I just tried that and that puts all the text on a single line.
echo '
' . $posts_row['first_name'] . ' ' .
$posts_row['last_name'] . ' ' . date('m-d-Y h:iA',
strtotime($posts_row['store_date'])) . '
Broad Band test results: ' .
$posts_row['store_tptest
> 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 wh
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
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
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.
ech
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 die(rep
>
> // 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
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: http://www.php.net/uns
Thank you Stuart. That did the trick.
On Mon, Jul 18, 2011 at 10:38 PM, Stuart Dallas wrote:
> On Tue, Jul 19, 2011 at 4:28 AM, Chris Stinemetz
> wrote:
>>
>> Hello,
>>
>> I am building some select menu's dynamically from a mysql database and
>> am cour
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.
$value)
{
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 popula
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,
>
> 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 (http://www.php.n
On Sun, Jul 10, 2011 at 4:56 PM, Thomas Dineen 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 worked fine up t
On Mon, Jul 4, 2011 at 8:13 AM, Alejandro Michelin Salomon (Hotmail)
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 application/x-httpd-php
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" wrote:
> Shawn,
> I added my php folder to the path but no change.
>
> "Shawn McKenzie" wrote in message
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>
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
That worked perfectly!
Thank you,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> 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?
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',
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
40 matches
Mail list logo