Posts by SK15 • 860 points
30 posts
-
0
votes1
answer37
viewsA: Shows how $query looks
Well have you thought about "generate" the query before running? Something like: <?php $sql1 = "INSERT INTO dados1 VALUES ('" . $nome . "');"; $query1 = $conn->query($sql1); var_dump($query1);…
-
1
votes3
answers397
viewsA: How to reverse date
I already answered something similar a few days ago, in case I wanted to see the answer is on that topic ... and the concept is the same you should "break" your string in the "/" bars with the…
-
0
votes1
answer157
viewsA: How do I make a logical condition by comparing lines from a text file using fopen in php?
In general your question is confused, compares and plays where, there is a logic hole, when I arrive at the last line I compare with who? it was not easier to group all levels and then compare?…
-
1
votes1
answer132
viewsA: How to create foreach (PHP/SQL)
Well the problem is that you are doing wrong your "for’s" either with the ";" killing it as the comemntario or wanting to run 2x, the correct is only to go through only one matrix is the "value" or…
-
1
votes1
answer56
viewsA: object does not work within single function
Well the point is you’re mixing object-oriented programming with structured programming (magic that "only PHP" allows and is harshly criticized, I especially like as long as it is well done), in a…
-
2
votes4
answers1442
viewsA: Document.writeln() is in disuse javascript
Well I don’t know what your OS or Browser you are using because I tested it on IE 11, FF (updated), Chorme (updated), Edge and Opera (updated as well) on Windows 10 (64 bits) and they all work, so I…
javascriptanswered SK15 860 -
2
votes1
answer1809
viewsA: How do I make crontab run a shellscript?
Well try the command sh because I believe it is better for that purpose than the bash. To make sure your way is exactly this use the command which to discover (or if you want more Infos use…
-
2
votes1
answer96
viewsA: Javascript + PHP
Well your problem is not while, for or anything similar, your problem is actually of indentification, at the time of generating inputs with PHP you are not doing it correctly, in which case you have…
-
6
votes4
answers12776
viewsA: PHP Check mobile device
Well as colleagues already posting in general compares the USER-AGENT or is the browser itself to determine whether it is mobile or not, the problem to my view is that there are many models of…
-
12
votes2
answers6310
viewsA: HTML inside "echo" php
You can concatenate (that is to add two or more strings) into your "echo" to have that result (as already posted as comment). <?php echo '<td><a href="edita.php?id=' .…
-
1
votes1
answer726
views -
2
votes1
answer282
viewsA: How to 'Manipulate' Cart Outside the Magento System - API
I don’t know if what I say will help you, because it’s not a definitive answer but I’ve been through a similar problem but in my case I really needed "emulate" a purchase outside of Magento, but…
-
0
votes2
answers673
viewsA: PHP: Txt for Array relating lines.
So you can’t do it exactly that way because one matrix group must be inside another, so the easiest thing is to associate a new position and group that sub-matrix inside. I don’t know if it’s clear…
-
4
votes2
answers998
viewsA: Script open only after given time
Well I looked here everything is correct, it works correctly your code tested in the newest Chorme and in the IE 11, maybe the rest of the codes of your page is interfering. But I have reservations…
-
1
votes1
answer200
viewsA: Problem with decimal places
Well as I had already commented and now I am putting as response, the problem of your code is that you are using the function "parseint" at the time of the sum, so this Javascript function causes…
javascriptanswered SK15 860 -
1
votes1
answer73
viewsA: Help with XML in Php
Well this is simple imagine that each block of data is a "node", IE each time you repeat your block you will have a position that corresponds to an array, so just run all the positions that will…
-
2
votes3
answers2411
viewsA: How to record content in a classic Asp Session and move to a mvc page?
Only by complementing the responses there is another property of ASP called "Application" and it has basically the same function of "Session" or save a value globally, but the difference between…
-
5
votes1
answer536
viewsA: Invert separate word order with str_replace in PHP
For this you can use a combination of functions explode, array_reverse and implode and so will have the desired result, even because the function "str_replace" serves more to clear data from a…
-
1
votes1
answer612
viewsA: How to view the CPF in several different places every X seconds on the video screen using HTML5?
Well there we go, I found quite different your question, and so far also did not understand what is the use of passing the CPF in front of some video, anyway the process is simple and follows what…
-
1
votes2
answers1268
viewsA: Add Date methods using typescript
Well looking so your concept is correct, you should extend the "Date class" (since JS does not actually use inheritance classes) and add your method in the "format" case, but I believe the error is…
-
2
votes1
answer125
viewsA: Center div on an image
Well at first I stopped your link and saw nothing wrong (was using Chrome) then went and tested by IE 11 and saw what was saying that the text within the DIV in the areas of projects tend to stay on…
-
3
votes1
answer758
viewsA: Phonegap build is not compatible with php. How to access a database?
As well as the home page of Phonegap says: Easily create apps using the web technologies we know and love: HTML, CSS and Javascript In other words, it only accepts these 3 languages and PHP is out…
-
1
votes2
answers160
viewsA: Protecting the php code
Well I tried to comment on your comment but I don’t have enough points, but as well as said you want to hide your third-party code... Currently there are 2 methods to do this: Code obfuscation:…
-
0
votes2
answers1208
viewsA: How to move a drawing in HTML5 canvas without getting the mouse or keyboard position? Another way?
Well as colleagues have said, you want to play a random value so that it moves alone or by a path creating an animation, or just put a fixed value? If it is the first case just change the variable…
-
1
votes1
answer53
viewsA: Keep chat chat chat chat feeds when switching to another page
Well this is a big problem, I had a similar one only that in my case was an audio player, where I should change page without pause the sound, I searched a lot as FRAMES which has become obsolete in…
javascriptanswered SK15 860 -
2
votes1
answer343
viewsA: How to return POST in the same div in which it is executed AJAX
Well I didn’t understand 100% of your question, I’ll try to break in part, come on ... 1- Vc has 1 DIV that when clicking on a link any one loads a form within that DIV, but if you click on the link…
-
0
votes3
answers1207
viewsA: Javascript Change css when you are in a particular div
Well from what I understand you use some Ajax system to upload the content of your type site "#contact", "#whomever" and etc. Well in your case as colleagues have already said you have to add some…
-
1
votes2
answers133
viewsA: Sending form without PHP
I would like to point out that this is a stopgap measure because by using the "mailto:" command you will only be indicating to the browser/OS that you want to open something in case the email…
-
0
votes1
answer490
viewsA: how to repeat this iimplay command non-stop
As well as colleagues did not understand what the usefulness of this language or in what context it enters ... however if it has some similarity with Javascript the easiest way to give infinite loop…
-
2
votes4
answers989
viewsA: Return data from a URL with Query String
Well technically the "file_get_contents" function already contemplates sending urls with built-in query strings, so what I can think is that the error is on your server or more likely on the server…