Question
upgraded to php 5 and mysql 5
Hi just wanting the expert knowlege of others before I re-do
anything from my scripts using php4 and mysql 4 now that I have
php5 and mysql 5.
Question: I have been starting my error checking like this, is it still compatable for my upgrade
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
Question: I check for empty fields but I see in tutorials a lot of != or >0
this is what I have been using:
$idu = trim($_POST['idu']);
if (empty($idu)) {
$error['idu'] = 'Select Industry';
}
Should it be e.g.
$idu = trim($_POST['idu']);
if ($idu) < 0 {
$errors[] = 'Select Industry';
I have seen a lot of array() used as well.
Is this the future?
Thanks........
Question: I have been starting my error checking like this, is it still compatable for my upgrade
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
Question: I check for empty fields but I see in tutorials a lot of != or >0
this is what I have been using:
$idu = trim($_POST['idu']);
if (empty($idu)) {
$error['idu'] = 'Select Industry';
}
Should it be e.g.
$idu = trim($_POST['idu']);
if ($idu) < 0 {
$errors[] = 'Select Industry';
I have seen a lot of array() used as well.
Is this the future?
Thanks........
