2

I want to run the multiple queries in single statement how to do this.

Abhi
  • 5,501
  • 17
  • 78
  • 133

2 Answers2

4

you will have to use mysqli instead of mysql.

Please refer to the following

http://php.net/manual/en/book.mysqli.php

http://php.net/manual/en/mysqli.multi-query.php

Oliver M Grech
  • 3,071
  • 1
  • 21
  • 36
4

You can run multiple queries using mysqli::multi_query()

as the mysql_ function family does not provide feature to execute multiple queries in once.

Shakti Singh
  • 84,385
  • 21
  • 134
  • 153