Form update don't work

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Form update don't work

Post by egami » Thu Oct 25, 2012 8:34 am

Your fields will break if there are any special chars in the values.

use mysql_real_escape_string(ucwords(ucfirst(addslashes($_GET['newnserie']))));

MeroD
New php-forum User
New php-forum User
Posts: 53
Joined: Wed Oct 10, 2012 12:14 am

Re: Form update don't work

Post by MeroD » Fri Oct 26, 2012 12:21 am

Try tracing the error from mysql:

if (!$risultato ) {
$message = 'Invalid query: ' . mysql_error() . "\n";
$message .= 'Whole query: ' . $que;
die($message);
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest