[PHP] PHP e-commerce questions

2004-04-10 Thread Matt Hedges
Hello. I have built a site where people can register their weddings. I use MySQL/PHP to handle the database. I wish to add a step where people must pay to enter their information into the database. How do I do this? What services do ya'll recommend? I won't need a complicated shopping cart,

[PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Hello, I'm trying to password protect an online PDF file. I know how to use PHP to pw protect a webpage, but what would be the best way to protect access to a nonwebpage file? thanks a lot Matt -- ___ | Matt Hedges | President, Vino del Sol | [EMAIL PROTECTED

Re: [PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Thanks, that worked great. I found this for anyone else like me new to htaccess: http://www.htmlbasix.com/passwordprotect.shtml works great. matt Roger B.A. Klorese [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to password protect an online PDF file. I know how to

[PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Matt Hedges
Hello, I am working on using PHP to build a web store. http://www.squirrelcart.com/ looks to be pretty good for a shopping cart- does anyone have any experience with this or others? Also, what suggestions do ya'll have for a payment gateway? thanks matt -- PHP General Mailing List

[PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Matt Hedges
Hello, I'm working on a webpage at http://hedges.org/busolemiss/template/index.html I need for a table cell to fill in the remaining space between some rows above and a row below, no matter what the window size. I thought this was possible with a height=*, but it doesn't work. If you look at

[PHP] Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter in firstname or lastname in a text box, hit submit, and have the results returned. How do I write this in PHP? I've

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
this? thank you very much, Hedges Now, How do I get Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Thanks, ya'll! Got it working. Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter

[PHP] formated text after Submit in MySQL/PHP

2004-01-31 Thread Matt Hedges
Hello, I have a page where users can enter in information about themselves... I want it to maintain its format instead of all running together, that is, when they enter a space the space is maintained via MySQL and displayed in their webpage (instead of having to ask them to type P) is this

Re: [PHP] formated text after Submit in MySQL/PHP

2004-01-31 Thread Matt Hedges
Can someone help me with the following? Preferably someone other than the wise ass below? thanks matt Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Hedges wrote: Hello, I have a page where users can enter in information about themselves... I want

[PHP] simple ?- load page after submit

2004-01-23 Thread Matt Hedges
Hello, I've built a page where someone can enter in their information... currently, when they hit submit, a screen comes back and says thanks for entering your info. (echo Thank you! Information entered.\n;) I want when they hit submit for it to take them to their page

[PHP] Re: simple ?- load page after submit

2004-01-23 Thread Matt Hedges
page.php?id= (id = nothing). any suggestions? thanks matt Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I've built a page where someone can enter in their information... currently, when they hit submit, a screen comes back and says thanks for entering your info

Re: [PHP] a clean way to upload

2004-01-16 Thread Matt Hedges
Thanks Jason. How would I do that? I mean, what would I put instead of if ($_FILES['imagefile']['type'] != image/pjpeg) thanks Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Friday 16 January 2004 10:32, Matt Hedges wrote: if ($_FILES['imagefile']['type

[PHP] getimagesize() to find type?

2004-01-16 Thread Matt Hedges
On Friday 16 January 2004 10:32, Matt Hedges wrote: if ($_FILES['imagefile']['type'] != image/pjpeg) The 'type' in $_FILES is provided by the browser. IIRC only IE uses image/pjpeg whilst other browsers use image/jpeg. But regardless of what the browser sets, it is more reliable to get

Re: [PHP] a clean way to upload

2004-01-16 Thread Matt Hedges
? Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Friday 16 January 2004 23:55, Matt Hedges wrote: How would I do that? I mean, what would I put instead of if ($_FILES['imagefile']['type'] != image/pjpeg) the browser sets, it is more reliable to get

[PHP] Re: filtering filename.ext on file-upload.

2004-01-15 Thread Matt Hedges
try this, it works for me: if ($_FILES['imagefile']['type'] != image/pjpeg) { print(File must be a .jpg. File will not be accepted; please choose a .jpg picture or convert the picture to .jpg format.); unlink($filename); // This will remove the temporary file so we don't have to deal with

[PHP] a clean way to upload

2004-01-15 Thread Matt Hedges
Hello all, After playing around with the options, I've found that the following method for uploading something with constraints is the easiest... The sample below first checks for 3 constraints (jpg, size, and width) and if it is cool it uploads it but renames it first...

[PHP] upload picture: limit size problems

2004-01-14 Thread Matt Hedges
Hello, with ya'lls help I've gotten a php that uploads only a jpg... now I'm trying to add a constraint that limits the width and size... I've been reading the manual (don't understand the error_messages)... and can't figure it out... this is what I have so far: ? $base_img_dir = images/;

[PHP] Upload and PullPicture???

2004-01-13 Thread Matt Hedges
Hello... I'm trying to upload a picture along with other information. I have several fields to input, such as name, address, etc. (and I get those to go to the MySQL database with no problem). But on the same page I want the user to be able to pick a picture of themself from their harddrive and

[PHP] Re: Upload and PullPicture???

2004-01-13 Thread Matt Hedges
']['name'].); } } and then whatever else you want it to do (be sure to include connecter to MySQL database). thanks to everyone who helped, especially http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/ Matt Hedges [EMAIL PROTECTED] wrote in message

[PHP] how to display a font with two words???

2004-01-13 Thread Matt Hedges
Howdy, I'm trying to specify font face=Monotype Corsiva in my php document... but can't b/c it's two words... if it was html I could just put , but since I can't do that in php, does anyone know what to do? prob. a stupid question, thanks a lot, Matt -- PHP General Mailing List

[PHP] Re: how to display a font with two words???

2004-01-13 Thread Matt Hedges
you can use single quotes ' ' (I didn't think it would work, but it does) around the font. matt Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, I'm trying to specify font face=Monotype Corsiva in my php document... but can't b/c it's two words... if it was html

[PHP] credit card acceptance recommendations?

2004-01-13 Thread Matt Hedges
Howdy... I'm building a site in PHP for someone that let's people enter their wedding information and pictures... they want to charge to do this... So what I need is something that will only let the person enter the info. if they've paid by credit card... I don't need shopping carts or

[PHP] upload and RENAME picture

2004-01-08 Thread Matt Hedges
Hello, thanks to ya'll I've gotten a picture uploaded... but now what I can't figure out how to do is rename it. I want to rename it something like $id.extension... right now it is just showing up in the directory as the original file... any ideas? thanks matt -- PHP General Mailing List

[PHP] basic ?id=x question

2004-01-07 Thread Matt Hedges
Hello, I'm trying to pull from a database... I can pull an array, but I want to just be able to pull one item instead of all of them... I know somehow you can do this with page.php?id=x... but can't figure it out... any help greatly appreciated, thanks, Matt -- PHP General Mailing List

[PHP] Re: basic ?id=x question

2004-01-07 Thread Matt Hedges
figured it out i had the sort before the where clause and that messed it up. Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I'm trying to pull from a database... I can pull an array, but I want to just be able to pull one item instead of all of them... I

[PHP] upload picture

2004-01-07 Thread Matt Hedges
Hello... could anyone please tell me how to upload a picture using php? I have this input type=file name=picture1 size=20 but don't know how to specify how to store the pictures on the server... thanks! thanks Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-24 Thread Matt Hedges
a script that shows all the rows and columns and allows someone to go in and change whatever field they want. Any help greatly appreciated, Hedges -- ___ | Matt Hedges | http://hedgesinnovations.com | -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] PHP webpage like MySQL, PART 2

2003-07-24 Thread Matt Hedges
-- ___ | Matt Hedges | http://hedgesinnovations.com | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] updateable database- please help- only displaying first word from field

2003-06-20 Thread Matt Hedges
, in the Name text box, let's say the wine's name is Norton Malbec, it only displays Norton. Does anyone know how to fix this? thanks very much Matt Hedges ?php $db = mysql_connect(host, username, pw) or die (The Database is momentarily down. Sorry for the delay.); mysql_select_db(username

[PHP] Re: updateable database- please help- only displaying first word from field

2003-06-20 Thread Matt Hedges
Thanks! Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. I am making an online database of my wines that I want my friends to be able to edit. The page below displays the wines. I want the fields in text boxes so later they can be easily edited. However

[PHP] updateable database 2nd question

2003-06-20 Thread Matt Hedges
type=text name=Region value=$Region/td\n tdinput type=text name=SubRegion value=\$SubRegion\/td\n tdinput type=text name=id value=$id/td\n /tr\n; } echo /table\n; ? -- ___ | Matt Hedges | http://hedgesinnovations.com | -- PHP

[PHP] PHP Problem regarding updating through text boxes

2003-06-20 Thread Matt Hedges
Please take a look at http://hedges.org/code/wine.php - You'll see what I can't figure out how to do. thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to UPDATE only certain fields

2003-06-19 Thread Matt Hedges
? thanks very much for any help, Matt Hedges -- ___ | Matt Hedges | http://hedgesinnovations.com | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] update question

2003-06-03 Thread Matt Hedges
with blank spaces. I want to be able to do this so for example if they mistype someone's name, etc. So somehow I need to be able to tell it that when the user leaves the field blank, not to change that field in MySQL. Thanks very much, Matt Hedges [EMAIL PROTECTED

[PHP] simple password protect script

2003-06-03 Thread Matt Hedges
Hello, Can anyone tell me the basic PHP script to password protect a php page? thanks mh -- ___ | Matt Hedges | http://hedgesinnovations.com | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php