Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About sraidr69

  • Rank
  1. 1. Error Reporting is on. There is no error. 2. I minimized to uname, password and email with the same result. 3. These 3 fields are varchar(45) $str ="Insert Into clients (username, password, email) Values (:username, :password, :email)"; $uname=$_POST["uname"]; $password = $_POST["pword"]; $hash = password_hash($password, PASSWORD_DEFAULT); $email=$_POST["email"]; $stmt = $conn->prepare($str); $stmt->execute(array('username'=> $uname, 'password'=>$has
  2. I got the code above to execute but it did not insert into the table still. I tried changing it around to the code below with the same result. Could there be something with the mysql that is not allowing it to insert? I am able to read data from the db. $p1=$_POST["p11"] . $_POST["p12"] . $_POST["p13"]; $p2=$_POST["p21"] . $_POST["p22"] . $_POST["p23"]; $str ="Insert Into clients (fname, lname, username, password, addr, city, st, zip, phone1, phone2, email) Values (:fname, :lname, :username, :password, :addr, :city, :st, :zip, :phone
  3. Yes error checking is on. Something interesting happened when I removed all the colons from both the values statement and array string and the insert was kind of successful. It insert a new line into the database but all the data was null. So I checked the $_POST[''] values and they have data.
  4. There really isnt anymore code to it, just display the error and set the $password and $hash. I have tried with and without the ":" and it does not work either way. Here is the entire code for the insert into statement... if($user=="n" && $email=="n") { $password = $_POST["pword"]; $hash = password_hash($password, PASSWORD_DEFAULT); $stmt = $conn->prepare("Insert Into clients (fname, lname, username, password, addr, city, st, zip, phone1, phone2, email) Values (:fname, :lname, :username, :password, :addr, :city,
  5. I am getting an Item Post Failed error and not sure why. Obviously the record is not inserted into the DB. Im fairly new to pdo and cannot see the error. Anyone see the issue? $stmt = $conn->prepare("Insert Into clients (fname, lname, username, password, addr, city, st, zip, phone1, phone2, email) Values (:fname, :lname, :username, :password, :addr, :city, :st, :zip, :phone1, :phone2, :email)"); $rec = $stmt->execute(array ( ':fname'=>$_POST["fname"], ':lname'=>$_POST["lname"],
  6. Sorry, I forgot that I split it out. Here is the CSS... body {margin-left: 0px; margin-right: 0px;} .container { position: absolute; margin-top: 100px; width: 100%; } #hdr { } .logo { \\background-color: red; height: 75px; position: absolute; left: 0px; margin-bottom: 100px; } .gu { position: absolute; right: 0px; height: 75px; width: 300px; //background-color: #b0e0e6; text-align: right; } .bill_to { position: absolute; left: 0px; height: 125px; width: 300px; \\background-color: blue; } .invoice { po
  7. <link rel="stylesheet" type="text/css" href="style_invoice.css"> <?php session_start(); //ini_set('display_errors', 1); //ini_set('display_startup_errors', 1); //error_reporting(E_ALL); include_once "db.php"; if(!empty($_GET['pg'])) {$pg=$_GET['pg'];} if(!empty($_POST['pg'])) {$pg=$_POST['pg'];} //echo $_GET['rec']; ?> <style> </style> <!-- Start Invoice Loop --> <?php $str="Select * From orders Where delivery_date = '0000-00-00' Order by `idorders`"; $qry = $pdo->prepare($str); $qry -> execute(); $rst = $qry-&g
  8. There is a lot of css applied. But that does not explain why it doesnt print each iteration at the bottom of the previous one. Where can I upload the file?
  9. I am encountering something I've never seen before. I have a foreach loop where I print out an invoice, it's a loop because there are weekly recurring invoices and I am using the webpage to print them. The issue is that once the loop repeats the screen output does not continue where the printout ends, it reprints over itself. I used "<div style='page-break-before:always;'>" at the end of the loop but that did nothing until I moved it up 1 </div> which screws up the top of the invoice. I have also used "flush()" with no effect. I originally wanted to use libreoffice writ
  • 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.