Search results

  1. W

    what is wrong with my php code?

    for some reason my sql insert isn't working??? <?php //first do a check for each variable typed in by the user. ie. validate each field $_POST['name']; $_POST['email']; $_POST['comment']; $_POST['question']; $check = 0; $today = date('Y-m-d'); $answer =...
  2. W

    how do i connect to mysql with php?

    I am using php and mysql (or at least trying to use) and am having problems connecting to my db? I am using the following php script... <?php $host = "localhost"; $user = "root"; $pass = "root"; $connect = mysql_connect("localhost", "root", "root"); if (!$connect) { die("Could not...
  3. W

    how do i connect to mysql with php?

    I am using php and mysql (or at least trying to use) and am having problems connecting to my db? I am using the following php script... <?php $host = "localhost"; $user = "root"; $pass = "root"; $connect = mysql_connect("localhost", "root", "root"); if (!$connect) { die("Could not...
Back
Top