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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.