Welcome Guest, Not a member yet? Register   Sign In
help with this loop guys
#5

[eluser]billie joe[/eluser]
this is the array generated by my sql

Array
(
[0] => Array
(
[user_id] => 4
[music_id] => 35
)

[1] => Array
(
[user_id] => 3
[music_id] => 35
)

[2] => Array
(
[user_id] => 2
[music_id] => 35
)

[3] => Array
(
[user_id] => 1
[music_id] => 35
)

)

this is my code to get those array

$musicDetails = new UserMusicLikeModel();
$musicDetails = Doctrine_Query::create()
->leftjoin('MusicModel m')
->innerjoin('m.UserMusicLikeModel uml')
->orderby('uml.user_id DESC')
->execute(array(), Doctrine::HYDRATE_ARRAY);

$data['getComment'] = $musicDetails[0]['UserMusicLikeModel'];

echo '<pre>';
print_r($data['getComment']);
echo '</pre>';


Messages In This Thread
help with this loop guys - by El Forum - 04-30-2009, 02:06 AM
help with this loop guys - by El Forum - 04-30-2009, 02:10 AM
help with this loop guys - by El Forum - 04-30-2009, 02:27 AM
help with this loop guys - by El Forum - 04-30-2009, 02:29 AM
help with this loop guys - by El Forum - 04-30-2009, 02:32 AM
help with this loop guys - by El Forum - 04-30-2009, 02:34 AM
help with this loop guys - by El Forum - 04-30-2009, 02:38 AM
help with this loop guys - by El Forum - 04-30-2009, 02:40 AM
help with this loop guys - by El Forum - 04-30-2009, 04:08 AM
help with this loop guys - by El Forum - 04-30-2009, 04:12 AM
help with this loop guys - by El Forum - 04-30-2009, 04:29 AM
help with this loop guys - by El Forum - 04-30-2009, 04:40 AM
help with this loop guys - by El Forum - 04-30-2009, 04:57 AM
help with this loop guys - by El Forum - 05-01-2009, 09:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB