Posts by Marcelo Gomes • 391 points
10 posts
-
2
votes3
answers2016
viewsA: Mysql Ireport DATE_FORMAT months in English
You can use the idea you’ve gone through, coupled with the year, using CONCAT. Example: SELECT CASE MONTHNAME(data) " + "when 'January' then 'Janeiro'\n" + "when 'February' then 'Fevereiro'\n" +…
-
1
votes1
answer1056
viewsA: Tracking and posting system (social network type)
The PDO problem is that it needs to suit any database, but it doesn’t always work. For example, the solution in Mysql is different from the solution in SQL Server, which tends to be different in…
-
2
votes3
answers116
viewsA: Doubt about how <header> is interpreted
To quickly answer your question, by the research I did, and as you will see below, what is used for naming is the alt in the case of the IMG tag. But for a more in-depth response, with the intention…
-
2
votes1
answer109
viewsQ: Do HTML "script" tags get "thread" unique to each one in the browser?
Separate Javascript processes in tags <SCRIPT> are worthwhile for the individual processing of each programming, or the browser joins everything in a single process? Someone who really…
-
3
votes1
answer140
viewsA: Send hidden value in a select
Hello, Use VALUE as an attribute of OPTION.... thus: <option value="1">Janeiro</option>
-
6
votes1
answer121
viewsA: Alternative to index.php using . htaccess
To change the index.php by another file home.php use that line in your .htaccess DirectoryIndex home.php But if you want all the access points to the home.php, only 2 lines in your .htaccess:…
htaccessanswered Marcelo Gomes 391 -
0
votes2
answers1677
viewsA: Jquery mask when typing text
Maybe you want the numbers to start typing from right to left, that is, formatting while typing. You can use jquery.inputmask.js which has this possibility. You can see more about this jquery plugin…
-
2
votes3
answers591
viewsA: Find joomla session variables for php
Inside a joomla PHP file, already initialized and preferably logged in (if you work with joomla login), enter the following code: <pre> <?PHP print_r($_SESSION); ?> </pre> This way…
-
1
votes1
answer204
viewsA: Update headers with AJAX
Place your captcha in a hidden div, and count in the JS the number of submissions via the form ajax. After sending, if the counter reaches 2, show the div with jquery or normal javascript, going…
-
3
votes3
answers1951
viewsA: How to search for ID in Mysql
The easiest is to use the command mysql_insert_id() to get the last ID inserted, after you do the INSERT, and with that you eliminate the select. Would look like this: $sql = "INSERT INTO…