Microsoft
Software
Hardware
Network
Question : Insert Line feed in access from php
Hi,
Basically I am trying to inseret line break in access cell whilerunning an sql from php. I know that it has to be chr(10) or char(10) but I am creating a php variable using many, string concatination. what I have tried is somthing like
$comment .= 'comment1: '.$comments1. 'Chr(10)';
$comment .= 'comment2: '.$comments2. 'Chr(10)';
But chr(10) appear as it in access cell rather then the line feed (that wierd character :)).
Can any pleae tell me how to achieve it?
Thanks
Answer : Insert Line feed in access from php
$comment .= 'comment1: '.$comments1. '\r\n'; //if this failes then try the second below option with double quotes
$comment .= 'comment1: '.$comments1. "\r\n";
Hope this helps
Random Solutions
Multi Homed Windows 2008 Server
OCS 2007 R2 and Cisco call manager
HTTP Error 404.3 on IIS 7.0
Hacking the Error with Custom error message
how to re-assign a class member in c++ (override its value by pointer)
WIN Network on SBS 2K3 server has disappeared
Are Mac's easier to support than PC's? Why or why not?
Multicast session fails to open on secondary site server.
How to Configure Link aggregation on Cisco 3560G?
How to raise 2 GB mailbox limit in Exchange 2007?