Questions tagged as 'pdo'

1
answer

Continuation of Help with asynchronous request script

I solved with the help of Marcos Brinner, the problem that was with DetePicker as # But he painted another question about the asynchronous request, between DetePicker (Timetable) and Schedules. I thought that following the reasoning of...
asked by 12.12.2017 / 16:56
1
answer

Help with asynchronous request script

This form will have the purpose of scheduling for consultation, with the client selecting the desired professional, and having a calendar with the weekly days selectable for attendance. For example: Dr. Rogério serves from Monday to Saturd...
asked by 11.12.2017 / 15:51
1
answer

Search in MySQL using only day, month or year with PHP

I created a table in a DATETIME field to store the day, month, year and time where a record is made. Would you like to know how I can search only by using day, month, or year? Example: I have 4 records: 2017-02-03 2017-02-13...
asked by 26.01.2018 / 16:19
1
answer

Send email On LocalHost or Server without Mail ()

Hello, I have the system PHP below to perform the registration after submitting the user, the registration usually occurs, however I would like an email to be sent to the registered email, but the way I did it is not being sent Can someon...
asked by 15.12.2017 / 19:39
1
answer

How to solve Fatal error: Call to undefined function Account () in

In my case I have this function: in the Home file well at the beginning I imported here: <?php require_once("session.php"); require_once("class_usuario.php"); $auth_user = new USER(); $user_id = $_SESSION[...
asked by 15.11.2017 / 19:59
1
answer

How do I save the largest value in rowCount?

I want to save in a variable the largest value ever obtained by rowCount only I do not know how to do logic. Current query: $playeronline = $pdoG->prepare("SELECT login FROM u_hero WHERE login = 1"); $playeronline->execute(); $...
asked by 08.12.2017 / 23:31
1
answer

"SQLSTATE [HY093]: Invalid parameter number: no parameters were bound"

I have a simple class that runs an insert in a MySql database as follows: $db = new db(); $db->exec2([0=>["Brasil","BRA","BR"]]); In class db I have the following list of queries: $arrInitDefault["queries3"] = [ 0=>...
asked by 23.09.2017 / 16:24
2
answers

On-demand paging with button and POST method in PHP using PDO

I looked at some sites and saw some things about it, but I can not understand the logic behind the page on demand. jQuery(document).ready(function(){ jQuery('#btnpaginas').click(function(){ var dados = jQuery( this ).serial...
asked by 01.09.2017 / 03:06
2
answers

display the user who is logging PHP

I have a problem, which when the user logs in correctly, shows a div that displays the "Welcome" message (and I would like it to display the user name) it does not show, I would also like that if this error showed a div similar only with the...
asked by 23.08.2017 / 13:40
1
answer

SQL where is the error?

I've reviewed this query several times but I do not think it's a mistake. "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rig...
asked by 15.07.2017 / 02:55