Posts by Samuel Carvalho • 515 points
20 posts
-
1
votes2
answers30
viewsA: Make categories appear in search results in Wordpress
A good option is to install the plugin Relevanssi. It has settings to help with your problem, and also greatly improves the quality of searches.…
-
0
votes2
answers718
viewsA: File upload via PHP does not work, no error returned (localhost, XAMPP, Ubuntu)
Input is wrong. Not name="file" but name="file" <input type="file" required name="arquivo" />
phpanswered Samuel Carvalho 515 -
0
votes1
answer37
viewsA: if to show button or text
Trade the isset for Empty: if (empty($sql1['resposta'])){ //mostra botão }else{ //pergunta respondida }
-
0
votes2
answers436
viewsA: Problem with Laravel Routes 5
The first parameter you are passing to the get method is not the folder of your controllers, you must pass as the first parameter p link of your route. For this reason we are returning this error.…
-
-1
votes2
answers53
viewsA: In the "while" method adds to the array
See if this solves : $array1 = array(); while( $row = mysql_fetch_array($query)){ $array1[] = array("valor 1", "valor 2"); }
-
-2
votes3
answers63
viewsA: Perform separation on a Data Line and mount an array
You could use the function explodes. $var = explode(",", $texto); View documentation: Explode function…
phpanswered Samuel Carvalho 515 -
0
votes0
answers453
viewsQ: Rotary banner with previous and next button
I have this code in jquery which is made for banner with numeric buttons (1,2,3,4...). I wanted to change the configuration so that it can be used with only two buttons, the next and previous…
-
1
votes1
answer267
viewsQ: Whole data not saved in table as the Eloquent of Laravel 5
I have in my database a column called permission that dictates the permissions of users on my system. User 1 is administrator and user 0 is not. The problem is that when I save a new user and select…
-
3
votes4
answers7944
viewsA: How to take print (screenshot) from a web page?
With PHP I believe that can not be done, but with Javascript and canvas (HTML5) yes. With the advent of HTML5, new tags have been implemented, one of them is the canvas, that makes it possible to…
-
3
votes1
answer764
viewsA: Check if Input::file exists Laravel
I solved my problem instead of Input::has('imagem'), use Input::hasFile('imagem').
-
5
votes1
answer764
viewsQ: Check if Input::file exists Laravel
I have a class created by me that uploads files. I wanted to check if Input::file('image') exists, because if it does not exist, it does not upload the image. Just follow my code:…
-
2
votes2
answers211
viewsA: Display mp3 path instead of downloading
You could use the html tag <audio> http://www.w3schools.com/html/html5_audio.asp Or some Jquery API that plays the audio.…
phpanswered Samuel Carvalho 515 -
1
votes1
answer295
viewsQ: Images do not line up in the table
I have this code: <!DOCTYPE html> <html> <head> <title>Figuras em tabelas</title> </head> <body> <h1 align="center">Montando figuras com tabelas -…
-
7
votes3
answers31930
viewsQ: Make an algorithm to calculate the number of days elapsed between two dates in c++
Guys I have this algorithm: Make an algorithm to calculate the number of days elapsed between two dates (also consider the occurrence of leap years), knowing that: a) each pair of dates is read on a…
-
1
votes2
answers1198
viewsQ: Make an algorithm to calculate the number of days elapsed between two dates
I have a algorítimo done in C but I decided to do in PHP. The algorítimo asks for this: It will calculate the number of days elapsed between two dates including leap years, knowing that: a) Each…
-
0
votes2
answers301
viewsA: Doubt regarding permanent links to posts
You can create a field in the table, and save your encrypted id, then when you go to get the DB data you compare the two, this way: $idCriptografada = md5(1); // o id seria 1 $sql =…
-
0
votes1
answer2889
viewsQ: Document.form.Submit() does not validate
Galley made a function that when the user clicks on a button, it calls the action document.form.submit(), till then all right, it sends the form normally. But on <form> put the…
-
14
votes13
answers20263
viewsA: What makes a language to be considered low/high level?
High level programming language is what is called, in computer science of programming languages, a language with a relatively high level of abstraction, away from machine code and closer to human…
-
1
votes1
answer1082
viewsQ: Password check with bcrypt in Session and mysql
I have a user and password that is being saved in a Session, only the password is being encrypted by the bcrypt function. How do I check if the password that is saved in Sesssion is equal to the…
-
2
votes1
answer32
viewsQ: Do not insert repeated Annotations into the map
I’m inserting some Annotations q are coming from a server JSON, but I wanted to check if the Annotation is already on the map, if yes, does not add it again. For they are being added over each…