hi, new to this. Will someone tell me why this doesn't update? -
<?php
-
// Include config file
-
include 'getprerentdb.php';
-
-
$amtdue = 0.00; // ****************************************
-
$duedate='duedate';
-
$prevbal=0.00;
-
$latechg=0.00;
-
$secdep=0.00;
-
$damage=0.00;
-
$courtcost=0.00;
-
$nsf=0.00;
-
$paidsum=0.00;
-
$id="id";
-
$receiptno='0';
-
-
$sql = "UPDATE payfile SET
-
amtpaid=?, duedate=DATE_ADD(?, INTERVAL 1 month), prevbal=?, latechg=?, secdep=?, damage=?, courtcost=?, nsf=?, hudpay=?, datepaid=?, paidsum=?
-
WHERE id=?";
-
$stmt = $conn->prepare($sql);
-
$stmt->bind_param("dsdddddddsdi", $amtpaid, $duedate, $prevbal, $latechg, $secdep, $damage, $courtcost,
-
$nsf, $hudpay, $datepaid, $paidsum, $id);
-
$stmt->execute();
-
?>
-
1 6601
Hi,
What error messages are you seeing?
From what you have posted I can see that amtpaid, hudpay and datepaid are not declared and you have set duedate to 'duedate'.
Gaz
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Mark |
last post by:
hello!
mysqli in PHP5 comes with prepared statements functionality. However,
without persistent connections or connection pooling in this code
library, one has to ask: why bother?
are...
|
by: Tom D |
last post by:
I'm rewriting a database interface that our company currently has.
Currently it's using the Pear::DB interface, but we found that that was
introducing a bit too much overhead. I'm rewriting the...
|
by: webguynow |
last post by:
I'm trying to build a good DB Layer on top of Pear::DB
Are there any forums or knowledge base sites on this direct topic ?
I've been using the documentation at:...
|
by: ojorus |
last post by:
Hi!
Some questions regarding the mysqli-extension (php5)
1) Prepared statements: If I understand things right, prepared statements
will give better performance if you make several similar...
|
by: Schmidty |
last post by:
If you do a page reload with $_SERVER will your program
lose a mysqli connection upon the reload of the page? Would this code
work? I need to know how to carry over a connection between methods as...
|
by: eholz1 |
last post by:
Hello PHP Group,
Is there any advantages (or disadvantages) in using mysqli instead of
mysql (querys, connections to database, etc).
I am currently using mysql_connect, and things like this:...
|
by: sugapablo |
last post by:
I have a website that I was moving from another server to mine for
somebody. This website uses mysqli functions.
mysqli extensions are installed on my Linux server, PHP is 5.1.6 and
and MySQL...
|
by: macca |
last post by:
Hi,
What should I be using for general MySQL database access? I've been
using the traditional mysql extension for ages, but I'm trying to
update my style to a more OOP paradigm.
I've used...
|
by: lazukars |
last post by:
I have done a good amount of research on prepared statements in php. The problem is that I have found various examples on how to select and insert information into a Mysql database. I want to make...
|
by: Chuck Anderson |
last post by:
Granted, this is mostly a mysql question, but I think understanding the
Php makes it easy to understand why my question is necessary.
I'm writing a Php loop to create INSERT and UPDATE queries...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |