PageRenderTime 52ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/src/beheer/updateApplicatie.php

https://bitbucket.org/jwubs/gratisgolfpolis.nl
PHP | 12 lines | 9 code | 3 blank | 0 comment | 0 complexity | ceeafb2f14b8a9973072f615a30084dc MD5 | raw file
  1. <?php
  2. $conn = mysql_connect('91.184.10.91', 'mysqlgratisgolf', 'g0lfp0l1s');
  3. mysql_select_db('gratisgolfpolis', $conn);
  4. mysql_query("DELETE FROM applicatie");
  5. $sql = "INSERT INTO applicatie (content_intro, content_contact, content_privacy, content_disclaimer, content_email) VALUES ('".str_replace("'","\'",$_POST["content_intro"])."','".str_replace("'","\'",$_POST["content_contact"])."','".str_replace("'","\'",$_POST["content_privacy"])."','".str_replace("'","\'",$_POST["content_disclaimer"])."','".str_replace("'","\'",$_POST["content_email"])."')";
  6. mysql_query($sql);
  7. header("Location:index.php");
  8. ?>