[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, since there will just be one thing to purchase...
I just need something that takes credit card information and then assigns
the user a username and password...

thanks a lot,
Matt

-- 

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



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 use PHP to
> > pw protect a webpage, but what would be the best way to
> > protect access to a
> > nonwebpage file?
>
> Stick it in its own directory and use htaccess... Or password-protect it
> when you generate it.

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



[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]
| http://vinodelsol.com

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



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 the link above, specifically what I want to do is have the
 cell between "Ole Miss Home" and the logo repeat until the logo touches
the bottom...
How can I do this?


thanks,
Hedges

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



[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 in "firstname" or
> "lastname" in a text box, hit submit, and have the results returned.
>
> How do I write this in PHP?
>
> I've tried lots of twists on SELECT * FROM table WHERE
lastname=$lastname...
> but can't get it to work...
>
> any help greatly appreciated,
> thanks,
> Hedges

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



[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Thank you for your replies...

I have it showing the last name... but what I can't figure out is how for it
to reference to the whole entry.

So, for example, when someone enters to search for the last name "Smith,"
all the "Smiths" are pulled up, sorted by first name and linked by id.

How do I do 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.  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 tried lots of twists on SELECT * FROM table WHERE
lastname=$lastname...
> but can't get it to work...
>
> any help greatly appreciated,
> thanks,
> Hedges

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



[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 tried lots of twists on SELECT * FROM table WHERE lastname=$lastname...
but can't get it to work...

any help greatly appreciated,
thanks,
Hedges

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



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 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 )
> >
> > is this possible?
> >
> > thanks,
> > Matt
>
> Yes. See
>
http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an
> swers.html
>
> -- 
> Burhan Khalid
> phplist[at]meidomus[dot]com

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



[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 )

is this possible?

thanks,
Matt

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



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

2004-01-23 Thread Matt Hedges
That doesn't work... I think the problem may be because I don't have the id
defined anywhere in the code (but it automatically writes it to MySQL).

When I put the code below, I get a "can't send header" error.

I tried changing the echo to page, but the
page brings up 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.  (echo "Thank you! Information entered.\n";)"
>
> I want when they hit submit for it to take them to their page
> (personalpage.php?id=$id)...
>
> How do I do this?
>
>
> thanks,
> Matt

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



[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
(personalpage.php?id=$id)...

How do I do this?


thanks,
Matt

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



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 the image type from
> > > getimagesize().
>
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> Q: What is purple and commutes?
> A: An Abelian grape.
> */

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



[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 the image type from
>getimagesize().


(1)  How would I do that (use getimagesize() instead to find type)?



(2)  Stupid question:  how do I say

if ($_FILES['imagefile']['type'] != "image/pjpeg")

and add "image/jpeg" to that constraint?


thanks
Matt




-- 


-- 

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



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'] != "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 the image type from
> getimagesize().
>
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> Pecor's Health-Food Principle:
> Never eat rutabaga on any day of the week that has a "y" in it.
> */

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



[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...

--


 $maxfilesize)
{
 print("Max filesize of $maxfilesize breeched.  File will not be
accepted; please choose a smaller picture or crop this picture.");
 unlink($filename);
}

if($width > $maxwidth)
{
 print("Max width of $maxwidth breeched.  File will not be accepted.");
 unlink($filename);
}
move_uploaded_file($filename, $newfilename);

}

?>






---


thanks to all those on this board who helped and to
http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Databases/Q_20745560.html

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



[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 it anymore.
}

  move_uploaded_file($filename, $newfilename);

--

a little different approach... it says if it is not a jpg, do not upload it,
otherwise upload it




"Louie Miranda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can you filter the extension for files being uploaded on a system via
> form.
>
> here are my codes:
>
> ## code ##
> $catchfile = $_FILES['userfile']['name'];
> $uploaddir = '/var/www-upload';
> $uploadfile = $uploaddir . $catchfile;
> if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
> ## code ##
>
>
>
> -- -
> Louie Miranda
> http://www.axishift.com

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



[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:

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 anything...

Any ideas/suggestions?  I've come across one, charge.com... anybody had any
experience with it or another?

thanks,
Matt



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



[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  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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2004-01-13 Thread Matt Hedges
Howdy,

I'm trying to specify  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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Upload and PullPicture???

2004-01-13 Thread Matt Hedges
I figured it out...
You can put everything in one file...







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
news:[EMAIL PROTECTED]
> 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
> upload it.  The script must either enter the address of the uploaded
picture
> to MySQL so it will show up with the user's info., or rename it something
> like $id.ext.
>
>
> I know something like this needs to go in the html:
>
> 
> 
> Send this file: 
> 
> I'd like to just use one "submit" button that uploads everything
(the
> data to the database and the picture to my server).
>
> I've read the PHP manual but it's greek to this newbie... any help GREATLY
> appreciated
>
>
> thanks,
> Matt

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



[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
upload it.  The script must either enter the address of the uploaded picture
to MySQL so it will show up with the user's info., or rename it something
like $id.ext.


I know something like this needs to go in the html:



Send this file: 

I'd like to just use one "submit" button that uploads everything (the
data to the database and the picture to my server).

I've read the PHP manual but it's greek to this newbie... any help GREATLY
appreciated


thanks,
Matt

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



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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



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: http://www.php.net/unsub.php



[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 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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP webpage like MySQL, PART 2

2003-07-24 Thread Matt Hedges
Many hanks for ya'lls help earlier.

I've figured out how to pull the data and edit it:
http://www.hedges.org/aoii/olemiss/updatesister.php

However, for some reason I can't get it to edit whatever row.  In the code
(pasted below) I have to specificy $id=row to edit...

I can't figure out how to make it to where the user can select the field
(which is the id/row) and edit it.  I've tried putting a ?id=# at the end of
the url, but that doesn't work...  Any thoughts?  So what I want is where it
says

$id=1

to have it someway where that is a variable that the user can define...




Update Sister Info.

View
Actives";
exit();

  }
  else
  {
$query = "SELECT * FROM table WHERE id='$id'";
$result = mysql_query($query)
 or die ("Couldn't execute query.");
$row = mysql_fetch_array($result);
extract($row);
  }

  /* Display user phone in a form */
  echo "
   Please check the sister below and correct if
necessary.
   
   


$id









   

    
   ";
?>





Thank you.
Matt



-- 
___
| Matt Hedges
| http://hedgesinnovations.com
|



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



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

2003-07-24 Thread Matt Hedges
Hello.  I am building a webpage for a sorority- http://www.olemissaoii.com .

I built a basic php script where they add the sisters and their names, grad.
date, and email.  Is there anyway to build a page that shows all the fields
where someone could go in and edit/add what they need?  What I basically
want is a webpage that works like MyCC SQL Database.  The only thing I've
been able to figure out is a basic update page, but using that they have to
type in everything again- so for example if they want to change the email
address, they'd have to retype the names and grad. date.  So I'd like 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, visit: http://www.php.net/unsub.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] updateable database 2nd question

2003-06-20 Thread Matt Hedges
Thanks for the help.  I now have the wine information displaying in text
boxes (below is the code that displays all the wines).

Now I want anyone to be able to change the data in text box/s and hit
"update" and it change that field/s.

Would it be something like
$sql = "UPDATE wines SET
Bodega='$Bodega',Name='$Name',Grape='$Grape',Year='$Year',Region='$Region',S
ubRegion='$SubRegion' WHERE id='$id'";  ?

How do I set it up with the submit, etc?

thanks so much for the help
Matt




Wines in Database:\n";
echo "\n";

while ($row = mysql_fetch_array($result))
 {
   extract($row);
 echo "\n
   \n
   \n
   \n
   \n
   \n
   \n
   \n
   \n";
  }
echo "\n";

?>



-- 
___
| Matt Hedges
| http://hedgesinnovations.com
|



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



[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, the text boxes
only
> display the first word of the field from the database.  For example, 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
>
>
>
>
>
> 
> $db = mysql_connect("host", "username", "pw")
>  or die ("The Database is momentarily down.  Sorry for the delay.");
> mysql_select_db("username",$db);
>
> $sql = "SELECT * FROM wines WHERE id='1'";
> $result = mysql_query($sql);
>
> echo "Wines in Database:\n";
> echo " cellpadding=2>\n";
>
> while ($row = mysql_fetch_array($result))
>  {
>extract($row);
>  echo "\n
>    \n
>\n
>\n
>\n
>\n
>\n
>\n
>\n";
>   }
> echo "\n";
>
> ?>
>
>
>
>
>
>
>
> -- 
> ___
> | 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
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, the text boxes only
display the first word of the field from the database.  For example, 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





Wines in Database:\n";
echo "\n";

while ($row = mysql_fetch_array($result))
 {
   extract($row);
 echo "\n
   \n
   \n
   \n
   \n
   \n
   \n
   \n
   \n";
  }
echo "\n";

?>







-- 
___
| Matt Hedges
| http://hedgesinnovations.com
|



-- 
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
Hello,

I am building an database of wines.  I have fields of stuff like year,
grape, etc.  However, I want to be able to go in and change something
without having to retype every field.  As I have it right now, I use the
UPDATE where id=$id function.  However, this changes EVERY field. For
example, if I want to only change the grape field and leave everything else
the same (so I thus leave those fields blank) it overwrites the others with
a blank field.

Is there anyway to where if it reads a blank field instead of deleting the
old information, the update php file just leaves it the same?


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] 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



[PHP] "update" question

2003-06-03 Thread Matt Hedges
Hello, I am new to PHP and would greatly appreciate any help.

I am building a webpage for my sister's sorority- http://olemissddd.com.  I
have built a page that allows them to update the officers each year-
http://hedges.org/ddd/olemiss/updateofficers.php and then view those
officers- http://hedges.org/ddd/olemiss/officers.php .

However, what I want to be able to do that I can't figure out is for when
they leave one of the fields blank it doesn't change anything.  As it is
now, when they change one of the fields and leave the others blank it will
overwrite the names it had for them 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]





-- 
_______
| Matt Hedges
| http://hedgesinnovations.com
|



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