Posts by Pedro Quezado • 1,576 points
45 posts
-
0
votes1
answer35
viewsQ: Pass parameters outside jQuery.Ajax
Good evening, I wonder if there is a possibility to determine the parameters outside the + function - in this way? Like, I’m saying that in var sintax the parameters of the function ajax before…
-
1
votes2
answers110
viewsA: List files and pick up PHP comments with PHP script
Solution I used. function comment_titlePage() { $ap = WFOX_SITE_THEME . '/'; // PASTAS DO TEMA ATUAL if (is_dir($ap)) { // ABERTUR DA PASTA $dh = opendir($ap); if ($dh) { $arquivos =…
phpanswered Pedro Quezado 1,576 -
3
votes2
answers110
viewsQ: List files and pick up PHP comments with PHP script
I would like an idea if possible or a script that first reads all the extension files .php of a folder taking from each the comment PHP, that is at the beginning of the pages who have after the File…
phpasked Pedro Quezado 1,576 -
0
votes1
answer424
viewsQ: How to change specific contents in the script of a //PHP file
I wonder if someone has or can get me some script to change contents of a PHP file in specific lines without changing the others, it may be fopen, fwrite and fclose. Actually want, along with data…
-
4
votes2
answers756
viewsA: Make PHP read server folders
This way? In this case it selects the folder and returns the existing subfolders in it. If it is, study a little about. Directoryiterator <?php // atribuição a variável $dir $dir = new…
-
1
votes0
answers485
viewsQ: List and Read file . txt in PHP and take specific values separated by folders
Hello, I would like a GREAT help from you. rsrs what I need to basically, is to create a system that returns to me the $variáveis separately, to print later, the values of the file Thema.txt As for…
phpasked Pedro Quezado 1,576 -
0
votes2
answers228
viewsQ: PHP - Return column sum at date specifies // PDO
How to make that in return fetch(PDO::FETCH_ASSOC) he adds the columns p_line_a (height) and p_line_l (width) referring to a specific date. For example: A person who sees the sum of the integers of…
-
3
votes2
answers1873
viewsQ: How to pick up the strings that are in brackets?
Good morning. I appreciate it.. How can I take the contents inside the brackets? lang[en-US].php lang[pt-BR].php It is actually a listing of files that is inside a folder: $atual = $ap . $dir . '/'…
phpasked Pedro Quezado 1,576 -
0
votes1
answer887
viewsQ: Block site seen by horizontal
I wonder how I can block my site when viewed horizontally by mobile, when it can only be handled vertically. It can be in Javascript or PHP however, this should only happen with mobile device. OBS.:…
-
3
votes1
answer1355
viewsQ: Compress / compress image after upload
I need help perfecting a script.. In general I want to add to this script: if(isset($_POST['action']) && $_POST['action'] == 'get_photo') { if(is_array($_FILES)) {…
phpasked Pedro Quezado 1,576 -
0
votes1
answer1447
viewsQ: How to create an installer (setup) for tables and connection to the database?
I would like to thank you in advance for your cooperation. I know it’s possible, but I still have no idea how to do that. I have a script but it will be used for sale, however I would like in the…
-
1
votes2
answers111
viewsQ: INSERT duplicate with mysql ::PDO
Can anyone explain why when I run this code it INSERTS twice the same value in the table? I believe it is that this problem happens when I do a validation to check if the values were entered:…
-
0
votes1
answer94
viewsQ: Problems deleting data from table with ::PDO
Can anyone explain to me what the error or if there is a flaw in the script?? As far as I know this is correct, but it doesn’t work. In the script it takes the ID of who followed and the ID of who…
-
3
votes2
answers7460
viewsQ: How to list table-specific data with PDO?
How to list data specific of a table, but using PDO? I’m starting to study and use PDO, however to some things that I am not able to find and that is well explained of how to read the data with a…
-
1
votes1
answer666
viewsQ: How to reduce the INSERT script in the BD with PDO -> bindValue?
Some way to shorten that script?? Or every time I go INSERT in the data set using PDO and the function bindValue, will I have to write line by line?? Or da para utilizar um array ou algo fácil e…
-
4
votes1
answer1318
viewsQ: PHP script that lists and edits other files
How can I create a script where it will list all the files that are in the main folder and in the subfolders so that I can edit the files and replace with the one that was edited? If possible tbm…
phpasked Pedro Quezado 1,576 -
1
votes2
answers373
viewsQ: List POSTS in Wordpress by views
I need to make sure: <?php while ( have_posts() ) : the_post(); ?> list according to the amount of views (post_views_count), it’s like to list popular posts only it will enter the table…
-
1
votes1
answer2424
viewsQ: How to list all posts on a custom page? Wordpress
Well, I created a personalized page where I need her to return all the posts you have registered on the site, as if it were the home. I tried to do it the normal way, creating a custom page and…
-
0
votes2
answers178
viewsQ: How to create a new Postbox in Wordpress
I would like to know if it is possible, and how, to create a kind of Boxpost like the image, only inside the box box, instead of categories wanted something to ask for.. "Title", "Year", "Director",…
-
39
votes3
answers859
viewsQ: I am suffering attacks of type SQL Injection
Ever since I started an online project, I’ve been having problems with hacking, where someone is making direct entries into the database. This is what gave me the initiative to put in all the…
-
3
votes3
answers2513
viewsQ: Can I use "mysql_real_escape_string" on "mysqli_connect" website?
I can use the function mysql_real_escape_string on a website built in mysqli_connect? And if yes makes a difference or the protection would be less? Or should I use mysqli_escape_string? Because…
-
13
votes2
answers756
viewsQ: Display player in Android notifications area
I created an app that transmits a Streaming radio, but if I "minimize" the application it continues playing. So I’d like to know how I can get you to open a box at notification list android, type…
-
0
votes1
answer53
viewsQ: AJAX sending html content in half
I have a problem with the publishing system. When I will make a new post and fill in all fields: Title, photo and post the code var myArea2 = document.getElementById('myArea2'); var post =…
-
1
votes1
answer298
viewsQ: ERROR: Connection timed out (110) >> shoutcast
Good night. I’m having a problem with a radio shoutcast connection code. In localhost: 127.0.0.1/tributus/server/on.php it returns the music that is passing normal, already hosted it returns as a…
phpasked Pedro Quezado 1,576 -
12
votes2
answers1942
viewsQ: How to insert EMOJI - SMARTFONES into Mysql database with PHP?
Well, since the question is very self-explanatory I will only reinforce the question. I have an APP chat system, which through the HTML, command to PHP with Ajax, but if the usurer tries to insert…
-
2
votes2
answers301
viewsQ: The space key also becomes a character? LENGHT
The space key also becomes a character? My problem is that even if in input #userChat there is only the space key it even so gives the alert(), and it ends up being a big problem.. Keys: Space and…
-
1
votes1
answer58
viewsQ: How to make a refresh more dynamic?
Is there a method of fetching data from a server by directly putting it to a page without having to use a basic javascript example: ?? setInterval(function() { $.ajax({ type: "POST", url:…
-
2
votes3
answers235
viewsQ: How to check by javascript if you have entered a new li tag through setInterval?
It is possible to ask through javascript if there is something new in a list ul - li? Like I’m working with a refresh of serInterval, but it is not very dynamic, pq? When the box receives a new…
-
3
votes2
answers339
viewsQ: PHP - Problem with search return INNER JOIN with GROUP BY!
So, I have 3 table: user: | ID | NOME | SOBRENOME | | 01 | Igor | Ferreira | | 02 | João | Henrique | | 03 | Rose | Beltão | following: | ID | user1_id | user2_id | | 01 | 01 | 02 | User 1 >…
-
5
votes2
answers211
viewsQ: PHP - Bring the result of a table according to the most recent message from another table?
So.. I have 3 table: user: | ID | NOME | SOBRENOME | | 01 | Igor | Ferreira | | 02 | João | Henrique | | 03 | Rose | Beltão | following: | ID | user1_id | user2_id | | 01 | 01 | 02 | User 1 >…
-
3
votes2
answers1433
viewsQ: Switch colors in table with PHP
I have a code that displays a table in the ID's registered, and to decorate, the code makes it display 1 in 1 alternating colors between white and gray. COLOR -> White COLOR -> Grey COLOR…
-
2
votes3
answers3214
viewsQ: JS - How to add a style within a new class?
It is possible with javascript to add an element to a class? EX: Have a class: .post_22 {color:red} Until then it only has color, but when you click on a link: <a onclick="minBox()">Seu…
-
2
votes2
answers765
viewsQ: Get script from a DIV with JS
It is possible to take the SCRIPT from an element.. EX: <div id="form"> <div class="box"> <p>Pegar apartir da 'class="box"'</p> </div> </div> take the complete…
-
1
votes1
answer339
viewsQ: Cookies javascript in webview smartphones!
I would like to know if someone knows how to use or can inform if you take Cookies directly from the webview of the smartphone device.. I know they are functions of a browser, but I am making an APP…
-
5
votes2
answers33846
viewsQ: Passing JS values to another HTML page
It is possible for javascript to pass a variable whether it is global or not from one HTML page to another HTML page? index.html receive variable.html Like, any way to save that value and page to…
-
1
votes1
answer21
viewsQ: Mootools interfere with jQuery?
Good morning. My site uses jQuery, but I need to add a code that sends a confirm() to close the browser, however I realized that only works with the library mootools: window.addEvent('load',…
-
1
votes3
answers485
viewsQ: Make an ORDER in Mysql from another TABLE
I was wondering if it’s possible on a mysql_query search and ORDER HER according to more recent updates from another table for example.. I have this query, when the user logs into the chat it gives…
-
4
votes1
answer249
viewsQ: Split and search messages by older and newer
I have a table. In her the 4 columns ID high-increment, id_user1 would be the id of the user who sent the message, id_user2 either would be the id of the user who received and mensagem the one who…
-
2
votes2
answers124
viewsQ: Problem with access limit by refresh JAVASCRIPT account
Is there any way to return updated data from the server directly on HTML without using the setInterval, setTimeout those things? Because these server functions are wearing off.. Every time he gives…
-
3
votes1
answer471
viewsQ: Mysql now() does not display the correct time
I need to somehow insert into the server the time EXACT who sends a message to the database. I’m using the function NOW() to record the moment: "INSERT INTO `chat` (id_de, id_para, data, mensagem,…
-
4
votes2
answers509
viewsQ: Format Mysql Now() function return
So personal. I need to know if there’s any way to send only the H:i:s hours of the function NOW() in the database, or send the NOW() complete and then fetch only the time?…
-
0
votes1
answer197
viewsQ: Retrieve server data without refresh
I have a script with a list of friends users and next to a box chat. When the user clicks on one of his friends in the list his data ID & NOME are sent to a function openWidChat(de,para,nome)…
-
0
votes1
answer82
viewsQ: Load Chatbox message notifications
Is there any way to refresh the page without the method setTimeout or setInterval directly by PHP? if you have by JS also serves. Is that I’m making a system of notifications and chats that needs…
-
1
votes1
answer142
viewsQ: Problem with setInterval()
Come on, guys. I have a code that brings a setInterval of messages passed between users de and para in the function below.. function openWidChat(de,para) { var url_s = $("#url_s").val();…
-
2
votes2
answers174
viewsQ: SetInterval() and load() functions and traffic problems
So guys.. I know the code below is pretty unnecessary, but I just need to know one thing, actually an answer... The code below on my website serves to keep doing refresh an update icon where the…