kk i have used this code
$sql="SELECT * FROM useritems, items WHERE useritems.itemid = items.id AND useritems.userid='1' AND items.type ='1'";
$result=mysql_query($sql);
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
echo $result['useritems.quantity']."x ".$result['items.name']."<br />";
}
to get information from my database, the sql is fine cos itryed it in phpmyadmin ant it worked fine and brung up what it should do, but when i try to display to results nothing shows up, i am not sure if i have done the arrays for the result right or somthing. could anyone tell me where i have been going wrong?