watthehell Posted September 10, 2007 Share Posted September 10, 2007 Hi all; I have this code <?php $tbl=new Model; $tbl->_table_name=RESERVATION_TABLE; $sSqlQuery3="select * from ".RESERVATION_TABLE." WHERE user_reserve_date=".$user_sel_date; $row3=$tbl->find_query_all($sSqlQuery3); echo $row3; ?> When i fetch the data in TD like this <? foreach($row3 as $res3){ ?> <tr> <td width="42" height="22" valign="middle" class="contentfront"> From:</td> <td width="40" valign="middle" class="contentfront"><?=$res3->user_reserve_time_start; ?></td> <td width="22" valign="middle" class="contentfront">To: </td> <td width="57" valign="middle" class="contentfront"><?=$res3->user_reserve_time_end; ?></td> </tr> <? } ?> I get "ARRAY" only, why my data is not coming, I have 4 fields in the table which matches the WHERE condition... Any help thnks... Link to comment https://forums.phpfreaks.com/topic/68675-problem-in-fetching-data-in-php/ Share on other sites More sharing options...
jitesh Posted September 10, 2007 Share Posted September 10, 2007 $sSqlQuery3="select * from ".RESERVATION_TABLE." WHERE user_reserve_date = '".$user_sel_date."'"; Link to comment https://forums.phpfreaks.com/topic/68675-problem-in-fetching-data-in-php/#findComment-345216 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.