SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Egypt
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow HELP , excuting .sql file against mysql database with PHP code

    Hello,
    i need to know, how can i excute .sql file against mysql through php?

    it's really urgent, thanks in advanced

  2. #2
    SitePoint Evangelist optl's Avatar
    Join Date
    Oct 2004
    Location
    Washington DC
    Posts
    415
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use $query = file_get_contents($sql_file) to get your query
    then do mysql_query($query)
    For the phrase "Bethesda home architect", my clients
    websites occupy 6 of the first 8 results
    on the 1st page of Google. My Secret SEO Strategy Revealed


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •