Questions tagged as 'mysql-num-rows'

1
answer

Return row count of a query

I'm trying to validate a login using row count of a query, but I'm not getting it: My connection looks like this: include("defines.php"); try { $PDO = new PDO('mysql:host=' . HOST . ';dbname=' . DB, USER, PASS ); $PDO->exec("set name...
asked by 10.08.2018 / 02:54
1
answer

Using mysql_num_rows with PDO [closed]

I changed the method of connecting my page to my Database via PDO. I used until then a paging code but it is now returning the error:    Warning: mysql_num_rows () expects parameter 1 to be resource, string given in D: \ xampp \ htdocs \ n_ar...
asked by 09.08.2018 / 19:44