I am using php to connect to my ms sql server. I am using php 5.3, using the microsoft database dll to connect. The problem i have is that in my database, i have tables wich there column’s names have blank spaces, mean there is a table called bills whit a column named “Shipper Code” or “Shipper name”… something like that… i want to know how i can read the rows using fetch_object
while($row = sqlsrv_fetch_object($stmt))
{
echo "<li>" . $row->Code . $row->MasterId . "</li>";
echo "<li>". $row->Shipper Code . "</li>"; <== HERE HOW I MUST PUT SHIPPER CODE?
}
Do i must use () or {} or []…
thank you in advanced!
I’ve got the answer. I only need to use “{” and “}”. Something like this
Thanks for all your help.