Posts by Arsom Nolasco • 1,367 points
95 posts
-
1
votes1
answer38
viewsQ: List system or directory fonts for a dropdown
There is a possibility in javascript or other language to list the fonts installed on the system or inside a directory and drop down? function changeFont(font){…
-
0
votes2
answers35
viewsA: Switch between css classes with only 1 code
studying alternatives I ended up finding a more direct way just using the comparative if and Else function transicao_lightspeed(item){ if(item.className == "lightSpeedIn") {…
-
-4
votes2
answers35
viewsQ: Switch between css classes with only 1 code
My scenario is as follows, I have 4 classes of animations and I need that regardless of my choice the div do your role, but this happening that if I run one the others does not work as should.…
-
-5
votes0
answers18
viewsQ: Switch between classes in pure javascript
I’m having trouble making switches alternating classes. <script> function toggletransicao() { var element = document.getElementById("myDIV"); if(element.classList.contains('lightSpeedIn') ==…
javascriptasked Arsom Nolasco 1,367 -
-2
votes1
answer69
viewsQ: Is it possible to record what happens in an iframe on video?
You can turn the content of an iframe into video, or there is some language that captures a certain area of a website on video? briefly would be that only in the form of video updating:…
-
0
votes1
answer158
viewsQ: ORDER BY RAND() in 2 columns
Well earlier I posted a problem about the elimination of 1 select which was solved but now I appeared another problem . My idea is to create a playlist that prioritizes status 1. Whenever a user…
-
0
votes1
answer75
viewsQ: Turn 2 Select Simple into 1
I have the following table PLAYLIST where I have the columns VIDEO and STATUS: VIDEO | STATUS The column status varies between 1 and 0 being 1 for new videos and 0 for videos that have already been…
-
-1
votes2
answers143
viewsA: Double query in 1 query
SELECT distinct(canal) FROM usuarios WHERE email <> '$email' AND canal NOT IN ( SELECT canal FROM inscricoes WHERE email = '$email' )
-
0
votes1
answer49
viewsQ: Compare field with multiple values from another field
I would like to make a SELECT based on multiple field values [jainscrito] and list only the Ids that are not in the field [jainscrito] I’m trying unsuccessfully $sql = "SELECT * FROM usuarios WHERE…
-
0
votes1
answer86
viewsQ: Sub query in a single SQL field
I need to create a code where I update a field always adding a value to what already exists. Example table assuming this population is already CAMPOS: ID | EMAIL | QUEMCURTIU 1 |[email protected]| 3, 46, 81,…
-
0
votes2
answers143
viewsQ: Double query in 1 query
I have 2 tables one of users and another of subscribers, I have an Internet that sends to the table of subscribers the email of the user who registered and the name of the channel 1st users id |…
-
0
votes1
answer26
viewsQ: Delayed function
My scenario is the following, I have a link and I would like after clicking it after 3 seconds submit a form. I am trying the following <a href="" target="_blank"…
-
1
votes0
answers39
viewsQ: Result of a Submit within the DIV itself
I have a div(id=content) where I load other pages via jquery load. however I would like to know if it is possible to submit a form and have the return in the own div. $('#conteudo').on('click',…
-
0
votes0
answers18
viewsQ: Monitor newly loaded tags
my scenario is the following, I have a menu (class="menu") where any link that is clicked on it opens in a div ( div id="content") the problem is that the links that open inside the content div even…
-
0
votes4
answers1899
viewsQ: Insert comma automatically while typing
When typing a value, there is some way to already make the correction by inserting commas and live points?? EX: I pressed 4 + 3 + 6 on the keyboard Input ja Mosta = 4,36 EX: I pressed 4 + 3 + 6 + 8…
-
2
votes2
answers430
viewsQ: Add variable whenever called
well then I would like to know if there is some form in PHP to do the following, define a variable ex: $contactorinicio = "0"; and then whenever you call her in php she goes adding another EX:…
phpasked Arsom Nolasco 1,367 -
-1
votes1
answer61
viewsQ: Consultation with pause?
well I am making a php dynamic menu where I would not use query within another, I am currently searching from the CATEGORY table the name of the category and within it I am searching in another PAGE…
-
0
votes0
answers65
viewsQ: Select prioritized and ordered by field
Well I have a schedule schedule table and I need to display the announcer who is live at the moment, I’m picking up via php the dates and playing in select but several times leaves or disorderly or…
-
0
votes1
answer86
viewsQ: Change values depending on the selected checkbox number
I have several checkbox that pass the value to the input. My question is this:: If I mark Monday, Tuesday, Wednesday, Thursday, input appear: Monday to Friday If I mark the days Monday, Tuesday,…
-
0
votes1
answer75
viewsQ: Calculate time interval in SQL
I have a table where I have 2 fields horainicio and horaafinal I’m wanting to get the results that fits between the initial and final values but unsuccessfully follow what I’m using. I’m taking the…
-
0
votes1
answer76
viewsQ: How to make 1 query and distribute the result spread by the code?
Well I have a site where I am to each area using a select , I think I’m making more queries than I should, is there any way to repeat the result ? follows a picture of what I am proposing <?php…
-
2
votes1
answer176
viewsQ: How to limit text in columns with CSS?
I’m taking a text from the database: <p> texto um pouco curto </p> And displaying using Columns css in 3 parts, but would like to know if it is possible to block the text by only…
cssasked Arsom Nolasco 1,367 -
0
votes1
answer31
viewsQ: Error returning AJAX data
My code is working up to the point where the ajax has to pick up the answer to print on the screen, the Insert is being done normally in the comic, if I change the return $("#requests"). html(data);…
-
1
votes1
answer1005
viewsQ: Running 2 queries at once is possible?
I need to change all fields of a table and only insert another result into a row. I am using the following code $Nid = intval($_GET['Nid']); $sql = "UPDATE * FROM programacao SET status='offline'…
-
1
votes4
answers5293
viewsA: How to check if the user is online?
Give preference to using websocket, but if you have a shared host other than this support follow something that can help. if if you create a field(EX: time) and in each text message it updates this…
-
-1
votes1
answer2779
viewsA: Update DIV in Real Time
<script> var nomedafuncao = function () { $('#iddadiv').load('paginaquequercarregar.php?_=' + new Date().getTime()); }; setInterval(nomedafuncao, 1000); // <- 1000 tempo em milisegundos = 1…
-
1
votes2
answers1450
viewsQ: Mysqli does not display results
I have the following table in the comic DUELOS , I entered the data but at the time of picking up the result I’m having problem what should be? data in table code that fetches the data $iddesafiante…
-
1
votes1
answer27
viewsQ: number of variables does not match the mysqli parameters
Well I am trying to make a select "bindado" however this returning the following error Warning: mysqli_stmt::bind_param() [mysqli-stmt.bind-param]: Number of variables doesn’t match number of…
-
1
votes1
answer110
viewsQ: How to check if something has been passed to the php page?
It is even difficult to ask because I do not know if this is right, but I will try to explain it in the best way possible. I have a page where I will use the php case switch to decide the action…
-
2
votes1
answer835
viewsQ: How to pass dynamic variables from a url to php via ajax
First of all I have looked in several other posts on the subject here and I did not find what I need, my scenario is the following I am generating several EX links: challenge.php? id=2&name=Joao…
-
2
votes4
answers24064
viewsA: Send HTML form without the Submit button
I think that’s what I wanted, also I want something like You need to listen to the event launched by your form and process your form before submitting it . You can follow this example to perform…
-
0
votes1
answer61
viewsQ: How to calculate timestamp in SQL
I have an INT Field (status) in the database, I have a script that updates it every 5 minutes using php time(). How do I calculate via sql? Follow the select I’m using. SELECT * FROM users WHERE…
-
0
votes0
answers82
viewsQ: How to solve the setinterval problem that only updates the first time
This giving only the first automatic refresh after. Follows what I am using var refresh = setInterval( function() { $('#uohide').load('rand.php'); }, 5000); html <div id="uohide></div>…
-
1
votes1
answer1038
viewsA: How to remove duplicate lines from txt using php?
Searching found this post forum and really is very simplicado the way, summarizing // ler no formato de array $list = file('file.txt'); // array unique remove as arrays(linhas) duplicadas $list =…
-
4
votes1
answer2041
viewsQ: How to set cookies and set expiration time?
I am with a div where I search only logged in users, in it I am displaying users but each update is inserted new records, gave me the tip to use cookise more never worked with it. the following code…
-
2
votes1
answer1038
viewsQ: How to remove duplicate lines from txt using php?
Well I’m creating a div which is updated every x seconds and I am displaying the users currently logged in, but my code is inserting every update the same record. Is there any way to delete repeated…
-
5
votes2
answers167
viewsA: How do I get the autoincrement id without being registered?
Boy I’ve had this trouble these days SHOW TABLE STATUS LIKE 'nomedatabela' here as I used try { $sql = "SHOW TABLE STATUS LIKE 'nomedatabela' "; $stmt = $DB->prepare($sql); $stmt->execute();…
-
0
votes3
answers772
viewsA: How to manipulate txt lines in php?
Well I would even like to learn how to use these functions because what I saw was based on arrays in txt, more searching I found this script of a chat project that I fell like a glove, because I did…
phpanswered Arsom Nolasco 1,367 -
0
votes3
answers772
viewsQ: How to manipulate txt lines in php?
Well I am developing a chat based on document.html, however I would like to be manipulating and limiting the number of lines: follows my current code <?php $nome = $_POST['nome']; $mensagem =…
phpasked Arsom Nolasco 1,367 -
1
votes1
answer1255
viewsQ: How to keep the scroll bar of a div always down?
I have a div that updates every 4 seconds and I use the overflow on it, I need the scrollbar to always be aligned on the last line. any suggestions?
-
1
votes1
answer482
viewsQ: overflow overflow padding
Well I have a div where I use padding and overflow but when the overflow is activated and the scroll bar appears the text goes over the area of the padding, there is a way to make the overflow start…
-
2
votes1
answer171
viewsA: Padding x position:Fixed or position:Absolute
Searching found this post http://sergiolopes.org/css-box-sizing-border-box/ where took a bit of my doubts the box-Sizing limits the div to itself so the padding starts to act within the own div as…
-
0
votes1
answer171
viewsQ: Padding x position:Fixed or position:Absolute
I need to use the padding to leave a spacing between the edge and the center but when I use padding the div this moving any have any idea? http://yugioh.site/layout.html css html, body { height:…
-
1
votes2
answers1044
viewsQ: Simple jquey chat with html database - How to send form by pressing enter key
Well I am trying to minimize to the maximum as this very small I will post my entire code, I came across a problem the code is working perfectly, but only when I click the send button that works, I…
-
0
votes1
answer21
viewsA: Input cleaning itself automatically
solved the problem was that I was putting the $('#message'). val(''); in the part where I was doing the refresh I changed it to right after I sent the post and it worked. NOTE: things of beginners…
-
1
votes2
answers1554
viewsA: Chat with PHP, AJAX and Mysql
Try to use and see if it solves $(document).ready(function() { $.ajaxSetup({ cache: false }); }); in so-called attempts $.ajax({ url:'chat.class.php', type:'POST', cache:false, ...…
-
0
votes1
answer21
viewsQ: Input cleaning itself automatically
I am creating a chat but the input where the message is written autoclean before sending the message follows the code to give me a hand of what can be, if you need more details put the full code…
-
2
votes1
answer43
viewsQ: Is countdown on the PLACEHOLDER possible?
I would like to know first if it is possible this, and also disable the input where the placeholder is until the count is finished and when the count is finished enable again? any draft? jquery and…
-
2
votes1
answer343
viewsQ: How to return POST in the same div in which it is executed AJAX
Actually there are 2 problems: 1º I have a DIV CONTENT where I open via AJAX the content in it, the same is happening like, if I click 2 time on the same link he instead of reloading the page he is…
-
1
votes3
answers223
viewsQ: PDO Pagination - Fatal error: Out of memory
I am making a pagination, but it is generating a memory error. Is there any way to optimize or fix the fault? Or is it on the same server? Note: the php.ini this set the memory in 512. if…