echo $query; before $result = mysqli_query($dbc, $query); might be of help to understand what is going wrong copy that query and execute in phpMyAdmin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php