| |||
| Warning: Missing argument 2 for GetSQLValueString() Hola... Creo que esto iria aqui... Estoy acostumbrado a ponerlo en php pero creo que seria aqui el lugar indicado... Bueno la cosa es que me da toda esta serie de errores cuando intento enviar un formulario con los datos de un producto... La linea 43 del carrito_add.php es esta: GetSQLValueString($_GET['FTalla'])); Los errores son estos: ( ! ) Warning: Missing argument 2 for GetSQLValueString(), called in C:\wamp\www\zulo\carrito_add.php on line 43 and defined in C:\wamp\www\zulo\includes\funciones.php on line 3 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 ( ! ) Notice: Undefined variable: theType in C:\wamp\www\zulo\includes\funciones.php on line 12 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 ( ! ) Notice: Undefined variable: theType in C:\wamp\www\zulo\includes\funciones.php on line 15 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 ( ! ) Notice: Undefined variable: theType in C:\wamp\www\zulo\includes\funciones.php on line 16 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 ( ! ) Notice: Undefined variable: theType in C:\wamp\www\zulo\includes\funciones.php on line 19 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 ( ! ) Notice: Undefined variable: theType in C:\wamp\www\zulo\includes\funciones.php on line 22 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 ( ! ) Notice: Undefined variable: theType in C:\wamp\www\zulo\includes\funciones.php on line 25 Call Stack # Time Memory Function Location 1 0.0020 391856 {main}( ) ..\carrito_add.php:0 2 0.0076 475912 GetSQLValueString( ) ..\carrito_add.php:43 Unknown column 'M' in 'field list' A simple vista no veo ningun error, voy a pegar la consulta entera: "INSERT INTO tblcarrito (idUsuario, idProducto, intCantidad, strTalla) VALUES (%s, %s, %s, %s)", GetSQLValueString($_SESSION['MM_IdUsuario'], "int"), GetSQLValueString($_GET['recordID'], "text"), 1, GetSQLValueString($_GET['FTalla'])); |
| ||||
| Respuesta: Warning: Missing argument 2 for GetSQLValueString() Cuando veas que los mensajes de error mencionan funciones propias del PHP, diles que aprendan a leer mejor. Es posible que estés usando incorrectamente la función sprintf() para crear la sentencia. Supongo que puede ser eso, porque la función GetSQLValueString no aparece en el manual de PHP...
__________________ ¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente... "El problema es la interfase silla-teclado." (Gillermo Luque) Última edición por gnzsoloyo; 01/02/2012 a las 17:44 |