Dormilich 8,658
Recognized Expert Moderator Expert
Hi,
currently I'm stuck on finding the error of one of my functions. I try to read data out of MySQL using PDO. the SQL string is loaded as Prepared Statement (PDO->prepare()) and shall be executed using PDOStatement->execute().
I already know:
- there's no PDOException thrown
- there's no Error message
- the execute method returns false
- the parameters are correctly passed
(- all fields exist in the DB, they are either string types or int)
anyone an idea where to look or how to get more details about the error?
if I try it manually, it works… - SELECT
-
`comment`,
-
`date`,
-
`email`,
-
`homepage`,
-
`icq`,
-
`id`,
-
`ip`,
-
`name`,
-
`text`,
-
`time`
-
FROM
-
`myphpgb_entries`
-
WHERE
-
`status` = ?
-
ORDER BY
-
`id` DESC
-
LIMIT
-
?,?
2 1303 Dormilich 8,658
Recognized Expert Moderator Expert
it turned out, the last parameter (which was fetched from DB) had the wrong type. typecasting to int solved it.
…what a pain with those types
Markus 6,050
Recognized Expert Expert @Dormilich
Amen, brother :P
It's strange that PDO didn't return an error..
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: red |
last post by:
I have PHP Version 5.0.1 installed on my computer, and according to the
pear manual pear is already installed. But how do I tell if it is
installed ?
for example, how do I get this line, which I found in the pear manual to
work:
require_once "HTML/Table.php";
Warning: main(HTML/Table.php) : failed to open stream: No
|
by: dB |
last post by:
I want to load an applet locally from the client's hard drive from an
html/jsp page served by Tomcat on the local machine or a remote server.
The motivation is that I need to print to the local printer, but don't
want to fork out $$$ for a cert.
The applet is simple, and is only being used to try this whole scheme out.
Here it is:
// -------------------------------------------------------
import javax.swing.JApplet;
|
by: Brian |
last post by:
Taking cluelessness to a whole new level.
< http://support.apollohosting.com/ >
The beginning of the html is below.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
|
by: |
last post by:
Ok... well... I'm a noob as far as templates go, and casting and such...
never bothered to learn much about this stuff... but now I've got a good
reason to care, so i'm just wondering what's going on in this code. I'm
assuming that T is *always* going to be some number (bool, INT16, int,
INT32, etc...) but no reason this shouldn't work on chars' and such... (...
*giggle* or pointers... could... work... on... pointers... don't make your...
|
by: Richard Bell |
last post by:
I'm having difficulty with memory loss on an application that
automates IE6 under XP (pro, fully up to date) using VB.Net. Every 30
minutes (triggered by the XP scheduler) the application visits a
number (100s) of web sites. I noted that the system began running
slower and slower over time and was trying to understand what was
going on. I'm using performance monitor to track available memory,
send/recv bytes per second, etc. In looking at...
| |
by: prn |
last post by:
Hi folks,
I'm trying to add an email function to an existing Access application. I'm not irrevocably committed to any particular method, so I'm open to suggestions like "try <whatever>." However, in looking around, I found references to vbSendMail.dll as a useful way of doing this without going through Outlook. Looking some more, I found MyMail.ocx, which is intended to help interface Access to vbSendMail.dll. "Great!" I thought, so I...
|
by: Brock |
last post by:
Thanks in advance... (you can see a screenshot of what my form looks
like currently at http://www.juggernautical.com/DataGrid.jpg - the
Datalist is super-imposed in 'design view' but the DataGrid is the
actual running of the page) I've almost got this working (?) but need
a little help. I have an .aspx page that has a DataGrid listing
employees with a "Select" button that is to be used to populate the
DataList to the right of the DataGrid...
|
by: alpnz |
last post by:
I am trying to access data on a mySQL server, but due to my age and alzheimer's I seem to be overlooking the obvious mistake here. Anyone care to spare a couple of minutes to help.
<?
$host = "localhost";
$user = "root";
$pass = "";
$dbname = "wxoww";
$datatbl= "tbl_owwdata";
|
by: eggman89 |
last post by:
Hi
I'm doing my Fourth Year B.E. project under the internship of MindTree!
Now they have only told us what to do , but haven't guide much!
Now, we have been told to develop an search application similar to Google Desktop one, only lighter version of it!
This is how it should work:
For all the Office 07 formats (docx,pptx....) which are XML based,rather than Binary based, the user should enter any search term(s) and our Prog should...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |