Linked Questions

32 votes
4 answers
27k views

I'm wondering what the declaration of the data type in bindParam() (or bindValue()) is used for... I mean, I thought that if I define an integer argument (PDO::PARAM_INT), the argument must be ...
Strae's user avatar
  • 19.6k
39 votes
1 answer
49k views

I was told today that I should really be using PDO and prepared statements in my application. Whilst I understand the benefits, I am struggling to understand how I implement them into my workflow. ...
Hanpan's user avatar
  • 10.3k
0 votes
3 answers
9k views

I am using the following scripts to test inserting and then reading blob data. insertion script: include('session.php'); $provider =$_POST['provider_id']; $trd_period =$_POST['...
user1488434's user avatar
0 votes
3 answers
926 views

I have some issue with a sql query using quotes with variables. (In general I use "bind" so I don't have this kind of problem). Here's the query : $myquery = mysql_query("SELECT * FROM mytable ORDER ...
epsilones's user avatar
  • 11.7k
0 votes
1 answer
777 views

I have a function that gets the value of a select menu and this work great. But i am trying to add another value to the function. So I thought I would use the title attribute for option (please see ...
Codded's user avatar
  • 1,256
0 votes
6 answers
739 views

I have the following tables: table name:: student studentid studentname 1001 Charlie Sheen 1002 John Cryer table name:: studentpayment1 paymentid studentid fee_month ...
black_belt's user avatar
  • 6,829
0 votes
2 answers
661 views

I have unidentified index errors, and sometimes i need it to really be blank. for example this one. I need this one to be blank because there is already an else statement. the $_GET is only when ...
Vince Agno's user avatar
0 votes
1 answer
526 views

I have a radio button that fetch and display from database using a foreach loop which is holding a string value. I set another hidden input along with the radio button which is holding the id of each ...
Emerald's user avatar
  • 409
0 votes
0 answers
192 views

<?php $servername = 'localhost'; $username = 'root'; $password = ''; $dbname = 'testdb1'; $conn = new PDO('mysql:host='.$servername.';dbname='.$dbname, $username, $password); ...
FunnelScr's user avatar
  • 171
0 votes
0 answers
139 views

Can somebody please help me to figure out why all new logins are not recorded into DB? I have such environment: MariaDB: MariaDB [(none)]> select * from db.table; | id | password1 | password2 | ...
Vofer's user avatar
  • 1
0 votes
2 answers
55 views

So I have a forum where a user has several characters they can post with. Now on the Edit post page I want to have the character that posted the post selected in the select menu. If the post have ...
Kaka's user avatar
  • 395