Posts by Gerson Salvador • 91 points
6 posts
-
0
votes1
answer95
viewsA: Make PHP calculations
To calculate percentage use rule of three. If you want to know what percentage 4 represents of 8: (4 * 100) / 8
-
0
votes1
answer90
viewsA: Pass-through error by reference, insert into the bank
Change $post->getTitulo() by a variable. Example: $titulo = $post->getTitulo(); You cannot change the value of what is being passed in bindParam, which is what $post->getTitulo() is making.…
-
0
votes2
answers152
viewsA: Query between Mysql dates showing all days of range
What you need to do is query the intended range with Mysql and then with PHP you do the interaction and show every day and conditions so that days that are not returned are displayed as 0. WHERE…
mysqlanswered Gerson Salvador 91 -
4
votes2
answers1625
viewsA: When and why should we use SVG?
SVG can be used to replace images, usually icons. The use of SVG is always indicated by being much lighter than a PNG, JPG, for example. The great advantage is that, because it is a vector, it will…
androidanswered Gerson Salvador 91 -
1
votes1
answer842
viewsA: Javascript form redirection
You can do so right after Alert(): window.location = "pagina-de-retorno";
-
1
votes1
answer290
viewsA: Problems with friendly url in codeigniter
Change the line RewriteRule ^(.*)$ index.php/$1 [L,QSA] for RewriteRule ^([a-zA-Z0-9\-\_]+)/([a-zA-Z0-9\-\_\s]+)[\/]?(.+)?$ index.php?1=$1&2=$2&3=$3 [NC,L] RewriteRule…