Posts by valdiney frança • 387 points
9 posts
-
2
votes2
answers186
viewsQ: How to make the id variable not repeat in the loop?
I’m trying to get one array associative as argument of this methods, actually receives a array in the first argument and a numerical value in the second. My question is how to make the variable $id…
-
0
votes1
answer439
viewsQ: Undefined variable in Codeigniter
I am learning Codeigniter and trying to pass an array to the View through my controller and when I call this array in the view is presented to me as undefined. This is my controller: <?php if ( !…
-
6
votes1
answer2865
viewsQ: PHP Using Magic Methods or not?
A doubt arose that I find interesting and would like to post here. How do you use methods whose functionality is to set and rescue attributes in a class? Use like this: public function…
phpasked valdiney frança 387 -
0
votes1
answer1069
viewsQ: Send by php mail function data from a table
Hi Dev I am there some three days trying to work out a way to send data from a table by function mail php. Sending data from just one column is basically easy, but it gets complicated when I want to…
-
6
votes3
answers1650
viewsQ: How to turn a query into a json?
I’m trying to transform the data returned from a database query into Json format, so far it’s almost right, but I think the format is being created incorrectly! Json is being generated as follows!…
-
0
votes2
answers5750
viewsQ: How to catch a json on an external server with Javascript?
Hello guys I need to get a json with javascript on an external server! Someone knows how to do it?
-
8
votes7
answers3980
viewsQ: How to check if there are numbers inside an input with Javascript?
Form validation with Javascript is something routine in web development, but always cause headaches! My situation is as follows: I cannot allow numbers to enter a 'name' field, but how can I do…
javascriptasked valdiney frança 387 -
5
votes2
answers1352
viewsQ: Always presents an error when I try to use the mysqli expression
I know the expression mysql was discontinued, so I’m trying to use the expression mysqli, but every time I try to show myself on the screen a syntax error! example: $buscaDados =…
-
0
votes2
answers823
viewsA: Store values in the variable
I recommend that you always use (int) before $_GET['id']. As the id comes via url it is a string and this way with int let’s make sure that you always come up with an integer number. Use like this:…