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