Jump to content

Mickeyatty

New Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mickeyatty

  • Rank
    Newbie
  1. Hi, I am just getting a blank page and I am unable to figure out why such a simple concept is not working. Any help would be greatly appreciated. <?php //Error Check ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); try { $conn = new PDO("mysqli:host=$servername;dbname=$dbname", $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $statement = $conn->prepare("UPDATE test SET title= ? WHERE id= ?"); $statement->bind_pa
  2. I found it online. Just wanted a simple code to use to test a sql update. I have created a prepared stmt script. No help is needed on this.
  3. yeah, i know. I am trying to learn how to create update scripts. I start with the basic concept then build off.
  4. Hi, I am stumped, my code just gives me the error "Could not update data". I can't see any issues with my code, so I need another set of eyes. I am not getting any syntax error. Can anyone help point me where I have missed something? -Thanks <?php if(isset($_POST['update'])) { $dbhost = 'mysql'; $dbuser = 'user'; $dbpass = 'pass'; $conn = mysqli_connect($dbhost, $dbuser, $dbpass); if(! $conn ) { die('Could not connect: ' . mysqli_error());
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.