problem with next an previus botton
i have these errors:
Warning: sprintf(): Too few arguments in /Applications/XAMPP/xamppfiles/htdocs/lijo/productos-detalles.php on line 45
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/lijo/productos-detalles.php on line 46
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/lijo/productos-detalles.php on line 47
Warning: sprintf(): Too few arguments in /Applications/XAMPP/xamppfiles/htdocs/lijo/productos-detalles.php on line 49
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/lijo/productos-detalles.php on line 50
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/lijo/productos-detalles.php on line 5
my code is:
mysql_select_db($database_hermanos, $hermanos);
$query_rsProductos = sprintf("SELECT * FROM productos WHERE prodID = %s", GetSQLValueString($colname_rsProductos, "int"));
$rsProductos = mysql_query($query_rsProductos, $hermanos) or die(mysql_error());
$row_rsProductos = mysql_fetch_assoc($rsProductos);
$totalRows_rsProductos = mysql_num_rows($rsProductos);
$rsNext = mysql_query(sprintf("SELECT * FROM productos WHERE prodID = %s AND prodID > %s ORDER BY prodID ASC LIMIT 0, 1", $_GET['prodID']));
$row_rsNext = mysql_fetch_assoc($rsNext);
$totalRows_rsNext = mysql_num_rows($rsNext);
$rsPrev = mysql_query(sprintf("SSELECT * FROM productos WHERE prodID = %s AND prodID < %s ORDER BY prodID DESC LIMIT 0, 1", $_GET['prodID']));
$row_rsPrev = mysql_fetch_assoc($rsPrev);
$totalRows_rsPrev = mysql_num_rows($rsPrev);