Form update don't work

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests