Todavía no se porqué razón tenía ese estúpido error en el insert del mysql, pero lo que hice fue hacer de forma automática en DreamWeaver, luego copié la función que el DW crea para el insert y cruzando los dedos mandé la información...
PERFECTO!!!
Aca les dejo tanto la función como el insert como lo puse al final...
Código PHP:
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$insertSQL = sprintf("INSERT INTO informacion (valor1,valor2,valor3, valor4) VALUES (%s, %s, %s, %s)",
GetSQLValueString($dato1, "int"),
GetSQLValueString($fecha, "date"),
GetSQLValueString($dato3, "int"),
GetSQLValueString($dato4, "double"));
$Result1 = mysql_query($insertSQL, $link);
$my_error = mysql_error($link);
echo $my_error;
En realidad la función no hace nada más que comprobar los formatos, pero de alguna manera cambia la forma en la que se envía al final la información...
Espero le sirva por ahí a alguien más... me despido