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
Colour highlighted search in vi
Sync Access database contacts with Exchange Contacts list
I need a help to make a small project with autocomplete functions
added shortcut to Public Desktop but some users not getting it - Win 2008 R2 Terminal Server
ACT 2009 - How to Move database
'SettingsSingleFileGenerat
or' 'ResXFileCodeGenerator' problem
Using 3rd Party SSL to Setup Exhange 2007, Outlook 2007, Server 2003 with Terminal Services
DOS print to PDF ?
Update Panel not loading DropDown
SQL AFTER UPDATE TRIGGER