SQL output from PHP

Can anyone tell me what the problem is with this snippet?

while ( $row = sqlsrv_fetch_array($result2,sqlsrv_fetch_assoc)){
extract ($row);
echo ‘

’;
echo ‘’ . ‘Shipping’ . ‘’;
echo ‘’ . $ShipCount . ‘’;

I cant get anything to display, I’ve put in some echo statements and it seems to just die when it get’s to the ‘while’

well your code is incomplete so we cannot tell you what is totally wrong, you could have a wrong variable in there $result2, $ShipCount?
I am ALL mysql so I don’t know much about this, but I do notice that in this while statement I do not see $ShipCount defined.
Can you please show the entire code, because there might be a few things wrong here, but we cannot guess the rest of the code

May be your sql query is wrong or there is no data in your table what you looking for.

Sponsor our Newsletter | Privacy Policy | Terms of Service