[PHP] Phasing HTML

2002-11-18 Thread Brian Lee
OK I am trying to take some content from another site (I have total consent) 
and convert all the prices on the site to 5% more. I can get all the content 
off the site and display it where I want. I can ereg_replace all the money 
to one price such as ($23.50) but I can’t change the price based on what it 
was before

I am using the following ereg_replace statements to change all the prices, I 
have tried several different ideas on how to change them bases on what they 
were before but have yet to succeed.

$code = ereg_replace('[^[:space:]][0-9][0-9][0-9][0-9][^0-9][0-9][0-9]', 
(string) $stupid, $code);
$code = ereg_replace('[^[:space:]][0-9][0-9][0-9][^0-9][0-9][0-9]', (string) 
$stupid, $code);
$code = ereg_replace('[^[:space:]][0-9][0-9][^0-9][0-9][0-9]', (string) 
$stupid, $code);
$code = ereg_replace('[^[:space:]][0-9][^0-9][0-9][0-9]',  (string) $stupid, 
$code);

I know that the ereg_replace statements aren’t right for what I want to do 
but I need to make them to figure out what regular expressions to use.

Here is what I am trying to make happen:

Select $20.25 from site a
Convert it to $21.26
So basically let P = current price on site A
And P * .05 = price I want to display on my site.



Thanks for any help

-Brian






_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] upload script problems.

2002-03-11 Thread Brian Lee


Hello,

I am trying to fix a upload script that doesn't seem to be working anymore. 
I had it up an running for a few months but it broke last week. I don't 
think that there was anything changed on the server. I am using php 
4.0.4pl1. Any help you could give me would be great.


I get this error when the script is run:
Warning: Unable to open '' for reading: No such file or directory in
/dir/on/webserver/upload.php on line 14

Here is line 14:
copy($temp, "/dir/to/copy/to".$file);


Here is the script:


Sorry, files of type $type are not
permitted

";
}} else {
$bod = "

Sorry, your file exceeds the size limit of $size_limit
bytes


";
}}

echo "


Submit




$bod

Please fill out the form below and attach your CV. Also 
please don't use an apostrophe in your resume name. Thank you for your 
interest in WWMG.


 


Name:



Address:



Phone:



Email:



Upload a file:




 






";
?>

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Brian Lee

I have a script that searches a MySQL DB and produces an Excel file from 
each table in the search.

EX. You search 4 different tables for the “Seattle” you would come up with 4 
different Excel files.

Now I was wondering if it was possible to take the 4 different Excel files I 
just created and combine into one excel file with 4 different sheets?

If anyone has a code for this or could possible help me it would be great.

I am using:
PHP: 4.04
Linux:  7.0
MySQL: 3.22.32

Thanks

-Brian


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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: [EMAIL PROTECTED]




[PHP] PHP & MySQL

2001-10-02 Thread Brian Lee

OK,

I am working on my first shopping cart using PHP and MySQL and I am having a 
few problems.

The first problems is I need to bring out of a database a group of Jam 
flavors. I can do that but when certain items come up there needs to be the 
same flavors but repeated mutiple times and I am not sure how to get that to 
work. I also am having a problem adding mutiple flavors to my cookies for 
check out later

Here is the code to bring the flavor selection up once. What I need is to 
figure out a way to bring it up 3,4,5 times depending on which item is 
clicked.








">




that will bring up the set of flavors once i need to be able to bring it up 
more than once but keep it in the same format and set it to a cookie.

Any help would be great. The project is already overdue so I am sort of a 
hurry.

-Brian

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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: [EMAIL PROTECTED]




[PHP] NEED HELP: select box repeat

2001-09-17 Thread Brian Lee

OK I am trying to write a script that will bring data out of a database into 
a select box. But what I need it to do is repeat 5 times or more depending 
on what it brings out. I can only get it to display one select box. Here is 
what I got so far:




Flavors Select









">








Please HELP

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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: [EMAIL PROTECTED]