![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/01/2009, 01:35
|
| | Fecha de Ingreso: enero-2009
Mensajes: 6
Antigüedad: 16 años, 1 mes Puntos: 0 | |
Ayuda, mysql_fetch_assoc(): supplied argument is not a valid MySQL Hola, No se lo q estoy haciendo mal, el script sin embargo funciona, pero me gustaría ver si se puede arreglar. <?
function GetItemRandProp( $RandProp )
{
global $db, $Idata;
$sql = "SELECT
`itemrandprop`.`randomprop` as `randomprop`,
`itemrandprop`.`value1` as `value1`,
`itemrandprop`.`value2` as `value2`,
`itemrandprop`.`value3` as `value3` from
" . MANGOS_CHAR_DB . ".`itemrandprop` where
`itemrandprop`.`randomprop` = $RandProp";
$Result = mysql_query( $sql );
while ( $Row = mysql_fetch_assoc( $Result ) )
{
$Idata[46] = $Row['value1'];
$Idata[49] = $Row['value2'];
}
}
?>
El error es:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\functions\GetItemRandProp.php on line 15 |