what is wrong with this part of the script......
if($_POST['submit']){
}
_POST['username'] = trim($_POST['username']);
if($_POST['username'] && strlen($_POST['username']) >= 3){
$query = mysql_query(â€SELECT `id` FROM `users` WHERE `username`='â€.$_POST['username'].â€â€˜ LIMIT 1″);
if(mysql_num_rows($query)){
$error['userexists'] = ‘Username exists';
}
} else {
$error['usernameinput'] = ‘Please enter a username of 3+ characters';
}
i do have the <?php and <? in but it wont save something about encodings arent ryt and utf-8, it only does this when i add this in.
if($_POST['submit']){
}
_POST['username'] = trim($_POST['username']);
if($_POST['username'] && strlen($_POST['username']) >= 3){
$query = mysql_query(â€SELECT `id` FROM `users` WHERE `username`='â€.$_POST['username'].â€â€˜ LIMIT 1″);
if(mysql_num_rows($query)){
$error['userexists'] = ‘Username exists';
}
} else {
$error['usernameinput'] = ‘Please enter a username of 3+ characters';
}
i do have the <?php and <? in but it wont save something about encodings arent ryt and utf-8, it only does this when i add this in.