I would like to compare strings. I'm using this for my navigation
PSEUDO-CODE
IF $title CONTAINS "abc: def"
print TITLE;
print SUB1;
print SUB2;
print SUB3;
ELSE
print TITLE;
Comparing the number of characters in one string with another does not do
th
thx Jason
I had overlooked a few functions. My bad. strpos() also works.
thx,
-- gil
> -Original Message-
> From: Jason Sheets [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 18, 2004 1:15 PM
> To: mayo
> Subject: Re: [PHP] compare lists
>
>
> may
thx Richard,
wouldn't you know it, you can look for something, can't find it, post a
question, and then find it?
go figure :-)
thx
-- gil
> -Original Message-
> From: Richard Davey [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 18, 2004 1:26 PM
> To: m
PROBLEM
I'm trying to insert information from a query string into sql.
I have a table with content. The column headers have up and down arrows
allowing the user to sort and order by that column.
PHP
I have default settings set for the variables.
If I change the default values the SQL results ch
I'm a cold fusion refugee and am having incredible problems with something
that I think is relatively easy -- so I must be missing something basic.
I would like to pull info from a query string and use it inside a database
call
I have a navigation bar that includes data pulled from a database.
Si
I'm making my first shopping cart in PHP. I'm concerned about the
security of my session variables, concerned about people altering data
(lowering the price). Is there anything I should pay attention to.
I've worked extensively with CF, this is my first foray into PHP.
Thanks
else show page 1 as
normal
Thanks
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14, 2005 1:54 AM
To: mayo
Cc: php
Subject: Re: [PHP] Shopping Cart, security concerns
On Fri, May 13, 2005 8:26 pm, mayo said:
> I'm making my first sho
info)
Page 5 (Hidden from consumer Security Check Page)
Qty * Price = Qty
Tax recalculated
Shipping recalculated
Relevant data sent to merchant and distributor company
Thanks
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14, 2005 10:52 PM
To:
I'm having a little problem adding to an array. Each time I add to an
array it wipes what was previously added. I'm using array_push().
$items=array();
$items=array_push($items, $_POST["whatever"]);
I'm missing something easy.
thx
I usually work with cold fusion and took on a little project to get my
feet wet in php and am spinning my wheels. What I thought might be
difficult was easy and what I thought would be a piece of cake has
caused me much grief over the last few days.
I'm making a little shopping basket, writing t
Jason,
Thx. Even though I have what I need for the client (I finally got things
to work as desired), I'll rework it and update the client version.
I knew I was doing things poorly and it degenerated into simply "get the
damn thing to work."
Thx, Mayo
-Original Message--
Yikes,
Who would have thought something so easy would be such a pain in the
butt.
I solved it with embedded if-else clauses.
Thx all
-Original Message-
From: mayo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 9:19 AM
To: 'php'
Subject: [PHP] array, trouble u
I'm putting ordered items into a db. The information is stored in
session variables.
Session_variable_with_itemID_has(1001,1002,1003,1004) however when
inserted into the db only 0,0,0,0 is recorded.
Assuming that this was the 40th recorded order the table should look
like this
TABLE: orderedI
le uploading CF-20050520.txt
thx
mayo
OMMIT"); // ends the transaction
I'm just not certain how it's used.
Thx, mayo
Has anybody else been getting spammed with penis and breast enlargeners to
their listserv email?
I use [EMAIL PROTECTED] solely for listservs and in the past week I've
started getting 5-10 spams a day.
Gil Midonnet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
.
Gil Midonnet
> -Original Message-
> From: Stuart [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 9:49 AM
> To: mayo
> Cc: php-general
> Subject: Re: [PHP] problems with spam
>
>
> mayo wrote:
> > Has anybody else been getting spammed wi
Original Message-
> From: Richard Davey [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 10:46 AM
> To: mayo
> Cc: php-general
> Subject: Re[2]: [PHP] problems with spam
>
>
> Hello mayo,
>
> Monday, February 16, 2004, 3:36:55 PM, you wrote:
>
"% 4d",$orderID[0]); does not work in
$thisContent="
"data" .
"moredate" .
"evenmoredata" .
";
In effect I need the output of printf() to be placed inside a variable
and I don't see how to do that. Str_pad(), of course, does not work.
Thx for any hints.
mayo
Thx,
It's amazing how sleep helps. Couldn't believe that when I read
sprintf() I didn't see how it did exactly what I was looking for.
Thx all
mayo
-Original Message-
From: mayo [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 11:35 PM
To: php-general@lists.php.ne
I'm writing customer orders into a file. I'm
1. getting data from session variables and a database,
2. putting it into a variable called $fileContent
3. then touch($filename);
4. then writing $fileContent to $filename - the code is at the bottom
The test versions of this have all gone well.
of
while($row = mysql_fetch_array( $result ))
{
}
into $fileContent?
Thx.
Mayo
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 01, 2005 1:13 AM
To: mayo
Cc: php-general@lists.php.net
Subject: Re: [PHP] FW: write to file, difficulty inputting
Price= sprintf("%7.2f",$theItemPrice);
$thisItemQty= sprintf("% 7d",$theItemQty);
$thisOrder .
$thisItemID .
$thisItemPrice .
$thisItemQty .
}
"; // end of $filecontent
but that doesn't work.
Mayo
My average post takes 2+ hours.
mayo
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 02, 2005 4:22 PM
To: Chris Boget; Jason Sweeney
Cc: php-general@lists.php.net
Subject: RE: [PHP] Delay?
Chris Boget <mailto:[EMAIL PROTECTED]>
on Th
query the database, then run the Javascript to
populate the list box? Or is there another way?
TIA,
Chuck Mayo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail
I need some help with a program, I need to get every
instance of text between GET TEXT HERE
and save the results in a variable. Does anyone
have some example code of how to do it along with how
to put the results into just one variable?
__
Do Yo
a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Chuck Mayo <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Friday, January 26, 2001 10:10 AM
Subject: [PHP] Invoke PHP script from onLoad handler?
> Sorry if this has come up before.
>
> I want to u
>
> -Jonathan Sharp
>
> Director of Technology - Imprev Inc.
> Renwick Development Group - Flyerware
> http://www.flyerware.com/
> Phone: (425)688-9200
> Cell: (425)766-1398
> EPage: [EMAIL PROTECTED]
>
> -Original Message-
> From: Chuck Mayo [mailto:[EMAI
;i need help with odbc!"
John Coonrod wrote:
> Right. That's what I saw here also: a virus attachment from Angel2 Gabriel
> Lena Valega in Peru
>
> = Original Message from Chuck Mayo <[EMAIL PROTECTED]> at 1/29/01 6:17 pm
> >Virus in this mail?
> >
&
This may have crossed the list a bazillion times, but I couldn't really find
anything appropriate in the archives... maybe I just didn't look hard enough.
In a MySQL app, I have the usual row of paging links at the bottom of the page
and need to pass to the next iteration more variables than I ca
Verma
> HCL Technologies
> A1CD, Sec -16
> Noida, UP
> India
>
> - Original Message -
> From: "Chuck Mayo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 12, 2001 10:53 AM
> Subject: [PHP] Preserve variables b
31 matches
Mail list logo