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]. [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