very basic php question
Hello,
I have got this code
I do not want to use
How can i remove it without breaking the code?
thanks
Hello,
I have got this code
PHP:
if($result == '0') {
// 0---
if(!ctype_alnum($tag)) {
$info_err_msg = '<div class="info_msg_err">Please make sure that the tags are typed properly (alfa-numeric only).</div>';
} else {
mysql_query("INSERT INTO pm_categories SET tag = '".$tag."', name = '".$name."'");
$info_msg = '<div class="info_msg_ok">Category <b>'.$name.'</b> has been added to the database.</div>';
}
// 0---
} else {
$info_msg = '<div class="info_msg_err">The category you submitted is duplicated! The \'TAG\' field must be unique.</div>';
}
}
I do not want to use
PHP:
if(!ctype_alnum
How can i remove it without breaking the code?
thanks







