Basic question!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
RIGOLETO
Forum Commoner
Posts: 37
Joined: Fri Nov 20, 2009 10:13 am

Basic question!

Post by RIGOLETO »

HI there,

I have a basic question related with a FIELD modified, well I have a program to edit some previous record created, this field has a <SELECT> option that is filled out when the program is called, my problem is related with the UPDATE time, my program is taking the first value from the <SELECT> and updated my database, I don't want that, just the field should be pupulated only if a selection has been made, who can I validate if the <SELECT> has been cliked???


Rig
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Basic question!

Post by AbraCadaver »

Code: Select all

if(!empty($_POST['select_name']))
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply