|
Posted by Jerry Stuckle on July 10, 2008, 9:10 pm
Please log in for more thread options
dba wrote:
> with html and php using mysql.
>
> How do I catch error's from a database like "duplicate entry" and
> display something on the entry screen.
>
It depends on the database. Check the manual for the calls associated
with your database.
> Also how do you clear the data boxes on a screen. When I use 'go back on
> page' the data remains.
>
You can't easily. Much of the time this doesn't even call the server -
just fetches the page from the local cache. Of if it does, it calls
with the same POST or GET parameters as before, so your script does the
same thing.
You can try setting a session variable and, if it is set, clear the
values from the screen. But then when do you reset this variable?
>
> Thanks
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|