Jump to content

Problem in Fetching data in PHP


watthehell

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.