Hi All
I am trying to echo a date held within a MSSQL Table,
the date is being stored as “2019-08-15 16:00:00.000”
Table Columns
id, Expected
4272, 2019-08-15 16:00:00.000
if I run the below select query in SQL Studio manager it works
SELECT Expected FROM [visitor].[dbo].[Visits] WHERE id = 4272;
however running the below in a php web page causes a blank page
$sql = "SELECT Expected FROM [visitor].[dbo].[Visits] WHERE id = 4272"; $stmt = sqlsrv_query( $conn, $sql ); while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) { echo "<tr><td>".$row['Expected']."</td></tr>"; }
IE php will not let me echo the date as it is held within the MSSQL database…
Any thoughts?
Many Thanks
Steve