Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2015
    Posts
    4
    Member #
    41518

    how to insert multiple records in php

    Hi. I found a topic on internet that it is possible to insert multiple records in mySql using php by single insert query. I found tried to probe into but as I'm new to php; lots of threads have been started around regarding same question but
    I couldn't understand that what's going on?

  2.  

  3. #2
    Senior Member sasha_bolcina's Avatar
    Join Date
    Sep 2014
    Location
    Serbia
    Posts
    274
    Member #
    40099
    Liked
    47 times
    Php from version 5 supports multi_query command.
    PHP: mysqli::multi_query - Manual
    PHP Insert Multiple Records Into MySQL

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    There are several MySQL methods, of which you should be using MySQLi ("i" means improved).

    Can you post a script in which you are trying to use your MySQL query?



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:55 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com