Re: connecting php long-polling to the database

From: Date: Fri, 06 Feb 2015 16:51:45 +0000
Subject: Re: connecting php long-polling to the database
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-324405@lists.php.net to get a copy of this message
On 02/06/2015 08:23 AM, hadi wrote: > > >> -----Original Message----- >> From: Christoph Becker [mailto:cmbecker69@gmx.de] >> Sent: Friday, February 06, 2015 7:05 PM >> To: hadi; 'Jim Lucas'; 'Christoph Becker'; ash@ashleysheridan.co.uk >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] connecting php long-polling to the database >> >> hadi wrote: >> >>> Here the error in pointing to line 53 at my server.php script which is >>> sql query >>> >>> 53 $data = while($row = mysqli_fetch_array($result1)) >> >> Yes, that's obviously a syntax error, because while is a statement[1] and as >> such must not be used as the right hand side of an assignment. >> There is an example on how to use msqli_fetch_array() in the manual[2]. > > Can you please give the correct code. Im lost searching the manual. Searching??? He gave you the pages that have the answers. One links to THE example you should use to fix your issue. > >> [1] >> <http://php.net/manual/en/control-structures.while.php> >> [2] >> <http://php.net/manual/en/mysqli-result.fetch-array.php#example- >> 1816> >> >> -- >> Christoph M. Becker >> >> -- >> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: >> http://www.php.net/unsub.php > > > -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/

« previous php.general (#324405) next »