When I run this page on a Linux server, I'm getting the error, but it does not give me any errors Following is my script to run it on a Windows machine:
include_once '/../src/init.php'; $ Userid = $ user_data ['userid']; $ Date = ('Y-M-D'); // Receive today's date from server $ db = new mysqli ('localhost', 'root', '', 'logfile'); If ($ db-> Connect_uper) {$ error = $ db- & gt; Connect_error } And {$ sql = "select a.kiloLogid, a.travelDate, a.openning, a.closing, a.clientsName, a.timeIn, a.timeOut, a.destination, a.diff view delidiff a WHERE a.`` Userid` = $ userid and a.trafldate` = '"$ date."' "; $ Result = $ db- & gt; Query ($ sql); If ($ db-> Error) {$ error = $ db- & gt; Error; }} GetRow function ($ result) {return $ result-> Fetch_assoc (); // error is on this line}
Please help
I should call the file init.php for the getRow function.
And when there is a problem changing Linux with Windows, most possibilities to find solutions with .htaccess are not trying to download .htaccess
all Best
No comments:
Post a Comment