Foros del Web » Programando para Internet » PHP »

Warning: Missing argument 2 for GetSQLValueString()

Estas en el tema de Warning: Missing argument 2 for GetSQLValueString() en el foro de PHP en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 01/02/2012, 17:47
 
Fecha de Ingreso: diciembre-2011
Mensajes: 151
Antigüedad: 12 años, 4 meses
Puntos: 1
Warning: Missing argument 2 for GetSQLValueString()

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']));
  #2 (permalink)  
Antiguo 01/02/2012, 18:15
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: Warning: Missing argument 2 for GetSQLValueString()

El mensaje de error es bastante claro.
Cita:
Missing argument 2 for GetSQLValueString()
Hace falta el segundo argumenta en dicha llamada, tan claro y no lo ves.
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.
  #3 (permalink)  
Antiguo 02/02/2012, 03:35
 
Fecha de Ingreso: diciembre-2011
Mensajes: 151
Antigüedad: 12 años, 4 meses
Puntos: 1
Respuesta: Warning: Missing argument 2 for GetSQLValueString()

jajajaja Si si , eso ya lo vi... Pero no sabia porque.... Puede ser porque me faltase poner "text"?

GetSQLValueString($_GET['FTalla'], "text")); ??

Etiquetas: formulario, missing, sql, warning, variables, usuarios
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:01.