Posts by Haroldo Torres • 86 points
8 posts
-
1
votes1
answer107
viewsA: Drag a div and on drop, save your location in the database
jQuery UI offers an interaction called "Draggable", where you can drag elements through the entire window or restrict it within a specific element. Here is an example I made for you using jQuery UI…
-
2
votes1
answer111
viewsA: implode() vs substr()
According to a test I did, the first option is more efficient. I tested your code using microtime and it turns out, the first test takes less time to process. The code used was: function…
-
0
votes2
answers361
viewsA: How to make input values appear in json?
First, recover the value of the fields with the POST method. $de = $_POST['de']; $para = $_POST['para']; Then decode the json’s "text" with the function json_decode $decode =…
-
0
votes5
answers3267
viewsA: Php returns null JSON when it has accent in Mysql
A line before the echo json_encode($resultArray), put that: $resultArray = array_map('utf8_encode', $resultArray);
-
0
votes1
answer37
viewsA: Login in restricted area
The code would look something like this: <? if(!isset($_SESSION['usuario'])): ?> <script> $(document).ready(function() { $("#login-link").click(function(){ $("#login-form").fadeIn(300);…
-
0
votes2
answers1076
viewsA: Stylize a return message
If I understand correctly, I know Flavr. It’s great, shows a popup alert box, and also has confirmation and prompt buttons, as if it were native functions of javascript "Alert", "confirm" and…
cssanswered Haroldo Torres 86 -
0
votes5
answers923
viewsA: Help with PHP and Mssql special characters
In addition to formatting the text, what page formatting are you using? You have to see the page formation and which charset is set in HTML. A charset conflict and HTML formatting can generate these…
-
1
votes3
answers192
viewsA: Problem with variable concatenation
Give a read on the function implode of PHP. If in the variable $this->session->userdata('last_id') returns an array with the ids you want, just do: $ids = implode('|',…