Adobe Forums

Add Me
Adobe Forums » Adobe Influences » Dynamic Html » Re: Switch between insert & update with MySQL

Tags:



Reply
LinkBack Thread Tools Display Modes
Re: Switch between insert & update with MySQL
  #1 (permalink)  
Old 09-25-2008, 03:18 AM
Philo
Guest
 
Posts: n/a
Default Re: Switch between insert & update with MySQL

MartyMatthews wrote:

> In registering people I have them enter their email address and then
> use that to open the appropriate update record. If their email
> address is not in the database I would like to open an insert record
> form.


I work mostly in asp and could not follow/get a handle you php code.

What I do is mannually add code at the end of the query.
- test to determine if a record gets returned
- if yes then go to (or redirect) update record
- if no then redirect to new page with form

You could use show region where if record is returned show the record
else show form



Reply With Quote


Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Hairstyles | UFO Videos | Bollywood Wallpapers | Poems  | WWE


All times are GMT. The time now is 03:56 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.