# PHP Query limits

**URL:** https://forum.kirupa.com/t/php-query-limits/235277
**Category:** programming
**Created:** [August 9, 2007, 9:53pm UTC](https://forum.kirupa.com/t/php-query-limits/235277 "2007-08-09T21:53:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Saurdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/saurdo/32/1583_2.png) [@Saurdo](https://forum.kirupa.com/u/Saurdo)
#### Post date: [August 9, 2007, 9:53pm UTC](https://forum.kirupa.com/t/php-query-limits/235277/1 "2007-08-09T21:53:08Z")

</div>

Can I send any query through PHP? For example this query works fine in PHPmyAdmin but I can’t seem to send it through PHP without getting an error.

```auto
"UPDATE `lesson_content` SET `display_order` = '4' WHERE `id` = '4' LIMIT 1; UPDATE `lesson_content` SET `display_order` = '3' WHERE `id` = '3' LIMIT 1; UPDATE `lesson_content` SET `display_order` = '2' WHERE `id` = '2' LIMIT 1; UPDATE `lesson_content` SET `display_order` = '1' WHERE `id` = '1' LIMIT 1;"

```

and the PHP mysql error is:

> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘; UPDATE `lesson_content` SET `display_order` = ‘3’ WHERE `id` = ‘3’ LIMIT 1; U’ at line 1  
> Is there another way I could format it?
