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
strange error
make open DNS non-editable
windows 2008 MYSQL5.1 and PHP5
asp.net page to test database connectivity
How to remove automatic login from Outlook 2010
Outlook Web App (OWA) 2010 defaults to light version for specific user
C# code for writing up a class file....
Connecting two switches together
Viewing Embedded Image in MS Access Report
Apache authentication using the GET method. Is it possible?