Member Avatar
Apparently I don’t know how to insert a row into a MySQL data base using PDP and I would like to know what I am missing This PHP PDO script does not insert data into a database. I would like to know why. It does not error out but the …
by rouse in Databases ()
Member Avatar
Im working on a small website and im a little confused on one step. I'm following a very simple mvc pattern, ive currently got one controller that creates a session array that holds all the posted data IF the form has been submitted, This data is coming from several different …
by spud91 in Web Development ()
Member Avatar
Hi guys, I'm working on a small website and I'm currently stuck on a small issue. Ive got a set of dropdown boxes created and populated in HTML, for example: ... I'm able to store the values in a variable once the form has been posted/submitted, eg: ... If i …
by spud91 in Web Development ()
Member Avatar
i have following code first insert is working properly and data in to database but second insert query which depends on last_insert_id() fails.I have tried to find out mistake but failed to do so? ... can anyone guide where i am wrong and point me in rigt direction,I am getting …
by shany0786 8 in Web Development ()
Member Avatar
Hello, This tutorial is the next of “ ... ” so having read it and made your own tests is needed to understanding what we are doing. So far we have a Db object (child of PDO that standardize and simplifies its use) , a Db factory object (because our …
by jkon 385 in Web Development ()
Member Avatar
A simple Data Layer for OOP PHP Applications Hello, first of all to understand this tutorial would be best if you have some knowledges about OOP ( ... by priteas ) and DB usage (MySQL in this case) with PHP ... by diafol ). What we will try to achieve …
by jkon 385 in Web Development ()
Member Avatar
Hi I am trying to create a update function. But it not updating in the database. Please help me to fix. Test-2.php ... users.php ...
by rpv_sen 59 in Web Development ()
Member Avatar
Hi I am trying to display count of a row using function with get values. Please help me to fix the issue class ... Todisplay ...
by rpv_sen 59 in Web Development ()
Member Avatar
I have created a function. if i provide correct username and password. i am getting a error message as Sorry, that username / password is invalid ! can any one please help me to fix the issue. login.php ... dashboard.php ... include/init.php ... include/users.php ... include/general.php ... config/database.php ...
by rpv_sen 59 in Web Development ()
Member Avatar
Hi I am trying to connection my database ODBC using function. I am getting an error Connection error: could not find driver mycode is ... Please help me to fix the issue.
by rpv_sen 59 in Web Development ()
Member Avatar
Hi there, I have a login form.which contains two input parameters. login_id and password. login_id may be mobile or email. user may use mobile no or email as login id. my table structure is uid email mobile password status when i login through mobile no it is validating and showing …
by praba_web in Web Development ()
Member Avatar
Hi Friends I am facing an issue in update query using PDO Prepare method. Please help me to fix the issue. ...
by rpv_sen 59 in Web Development ()
Member Avatar
I've been playing with PDO and got quite a shock, so I thought I'd run this past you all. I love PDO, and I thought that the "prepare once, execute many" idea behind prepared statements was beautiful. Now previous to using prepared statements, I used to build up a long …
by diafol 2,995 in Web Development ()
Member Avatar
how to put ... in following code: ... thanks in advance
by blueguy777 in Web Development ()
Member Avatar
Below is my database structure: Now I want to perform search on this table called 'posts'. Say I want look for PostUUID(field) where the details are as below: ... In the above database image, there are 3 users meeting these criteria, namely vani,kalni and nair. So the result should return …
by Kalaivani Nair in Databases ()
Member Avatar
I am trying to save 2 photos to my MySQL database. I can only see one of the 2 photos in the database (i.e. its name) but I see the 2 photos in the folder I store my photos. ( A picture of how the database looks like is attached.) …
by uchejava in Web Development ()
Member Avatar
Hello. I want to create a database on my pc localhost and then want to use PDO to connect with that database to creating table and so on... What should i do?
by Niloofar24 15 in Web Development ()
Member Avatar
Hello. I'm new to PHP, i've started it yesterday. I want to creat a simple CMS with (PHP and PDO), what should i do? I'm going to start with creating the CMS core. I want to create sth like a simple wordpress. What should i do? Where should i start …
by Niloofar24 15 in Web Development ()
Member Avatar
Hi, Please help me to resolve my Script Redirection problem. Actually i have developing simple crm application php using pdo->prepare. this is working fine in localhost. but what is my problem means redirection is not working, when i uploaded to server. for refernce i hereby attached . please help me …
by fireburner29 in Web Development ()
Member Avatar
Hi guys, I'm trying to connect my new project with PDO, and for simple reason witch i don't knowand i've no idea i'm getting ... I tried everything was in my mind, i tried log to my sql by terminal, i casn log properly, and my pdo settins are: ... …
by hell hansen in Web Development ()
Member Avatar
Currently I have form with couple of fields and field for image. I have done with the part of field storing but don't know exactly how to store image path with PDO and can't find good tutorial. All I found was how to store image into DB instead of path. …
by JasonWung in Web Development ()
Member Avatar
i have a database table with fields mobno1 and mobno2, first i would like store all the values of field mobno1 into var1 and field mobno2 into var2 by using comma seperator and pdo. my code is as follows. ... i hope someone will resolve this issue, thanks in advance.
by blueguy777 in Web Development ()
Member Avatar
Hi. so i have this div like so: ... see the "Add Spouse" link, when clicked will display another div: ... the edit spouse works by submitting the data wihtout refresh using ... : ... so as u can c when data is submitted successfully an alert will appear and …
by nadiam in Web Development ()
Member Avatar
hello. i got this error and i have no idea why or what is going on. could someone explain in layman's term please and help me out. ... code being referred to, line 36 is $guests->execute() : ... in db event_id column is int, not null, not auto incremented. TIA!
by nadiam in Web Development ()
Member Avatar
hi, i have an import csv script but it does not get entered into the database. only "uploaded successfully" and the data is echoed but nothing in the database is something wrong with it? and is it sql injection safe? TIA!
by nadiam in Web Development ()
Member Avatar
how to convert this old fastioned mysql statements to pdo? hope some one will solve this problem. thanks in advance.
by blueguy777 in Web Development ()
Member Avatar
so this is my script for login but i keep getting incorrect email/password but i filled it in correctly. what am i doing wrong? TIA!
by nadiam in Web Development ()
Member Avatar
I'm implementing something similar to a shopping cart - a "my favorites" page for products. Users can click on an "add to favorites" link and add products to a favorites table from which they can view the details of those products at a later time. There's no purchase on the …
by dhani09 3 in Web Development ()
Member Avatar
hey guys. i have this table that lists contacts that are stored in database. the data is selected from 2 tables using join which i have already got working: what im having trouble with is selecting another column based on data in one column. okay so this is my contact1 …
by nadiam in Web Development ()
Member Avatar
hello. I have a table populated by name. The names are links when clicked will pop up a form for editing. each input (for editing) is populated by the equal value from database but im having trouble with one particular text box. this text box is for date of birth …
by nadiam in Web Development ()