Posts by David • 81 points
9 posts
-
3
votes2
answers2141
viewsQ: Taking keys from an array
am ultilizando PDO for mysql query,and I would like to grab the keys of an array, tried several methods and failed, e.g.:$arr_cars['id'] an error has occurred class Cars extends DB{ static function…
-
0
votes1
answer48
viewsA: Why is it that when I type in the new exam he continues to do the sum of the new exam with the old average?
I don’t see why use two forms for the same function, just return the header('Location');. $med = (($n1+$n2+$n3+$n4)/4); if($med>=7){ echo("aprovado com ". $med); }else if($med<7){…
-
0
votes1
answer83
viewsA: CSS does not load with link
use the following example: <link href="index.css" rel="stylesheet" type="text/css"> <link href="../index.css" rel="stylesheet" type="text/css"> Look at the ../ , Maybe the file is above…
-
-1
votes1
answer296
viewsQ: Is comparing similarity of values of two arrays possible?
string of the first array$arr_prim[] shall be null when it is similar to the second $arr_sec[] , <?php $arr_prim[] = array('2','3'); //array primaria $arr_sec[] = array('1','2','3'); //array…
-
0
votes1
answer50
viewsQ: javascript does not return when concatenating link
I have a link that changes dynamically, the problem is when I do the concatenation not resume anything <?php $user_id = 1; ?> <div id="link-bt"> <a href="javascript:void(0);"…
-
1
votes1
answer116
viewsQ: Is it possible to validate id of a get without javascript?
I would like to validate the GET id without javascript, only with php. I’m having a hard time. <a id="exemplo-'.$resultado['id'].' " href="pagina.php"> <?php /*com javascript*/ $id =…
-
1
votes1
answer931
viewsQ: unlink() as Delete only one file from the file
I’m having trouble deleting a file from the file, when I pass a "GET", it deletes all files from the file I have to pass some variable to identify the file name? <?php…
-
2
votes2
answers109
viewsQ: problems deleting file from unlink()
i would like to delete a file in the file, and nothing is going well of the following Strict standards error: Only variables should be passed by Ference could you guide me to resolve this error?…
-
0
votes0
answers238
viewsQ: error when querying id in Sql table
I have an error when consulting the id in a table, I am developing a system of friendship between users and the error is as follows: Pdoexception: SQLSTATE[23000]: Integrity Constraint Violation:…