Posts by César Sousa • 2,025 points
131 posts
-
1
votes1
answer270
viewsA: Ajax returns repeated content
Well I’ve already solved the problem so I’m here to put the solution for another person if you have the same problem. <script> $(document).ready(function() { setInterval(function() { var…
-
3
votes3
answers106
viewsA: Avoid the last occurrence of a character concatenated in a loop
You can do it like this foreach ($c as $categories){ $categoria.= $c.nome.' - '; } $string = strlen($categoria); $categories = substr($categoria,0, $string-1); Test and say something…
phpanswered César Sousa 2,025 -
5
votes2
answers1599
viewsA: Update Mysql data with Ajax
Here’s an idea of how to do follow the code below <script> $(document).ready(function() { $(document.body).on('click', '#id_botao', function(e) { e.preventDefault(); var data = { // Aqui passa…
-
1
votes1
answer270
viewsQ: Ajax returns repeated content
And the following I have an ajax script that returns me an array with new data that exist in the database 1 in 1 second, this working the problem and that it always repeats me the content that is…
-
2
votes1
answer107
viewsQ: Problem with push button by ajax id
Good I’m here with a problem that and the next I have a lop while that shows me all users and in each one has a button follow I am doing via ajax by clicking on follow change the text not to follow…
-
6
votes1
answer385
viewsQ: Problem with long Polling
Well I did one here script to fetch information from real-time posts the database but it works if I add it directly in Mysql works well but the page when I go to insert a text does not work with…
-
2
votes2
answers1763
viewsQ: Real time ajax request
Well personal I have a script to request ajax every 1 second to show me new content but now I’m having a problem that it every 1 second updates me all the content I wanted that only shows up if…
-
0
votes0
answers44
viewsQ: Content outside while php
Well I have a loop while that shows all my posts on the page and for each post I have a input box to comment on the post. I need a way to put it (input) out of the while but stay in all posts. How…
-
0
votes0
answers40
viewsQ: Problem with conditional Insert
Good I’m with the following problem I’m making a conditional Insert not to duplicate entries in the table but is not inserting me anything Code <?php session_start();…
-
1
votes2
answers94
viewsQ: Jquery for Followers Index
Good afternoon, And the following I have an area where users can follow other users need to know if with jquery when clicking below it is possible to insert the data in the table and change the…
-
0
votes0
answers33
viewsQ: Problem with div updating content
Well personal I have an ajax script making requests every 1 according to my database to show new content that has been published in the database but I am finding a problem that content always has a…
-
5
votes3
answers280
viewsQ: How to compare data with accents in the database?
I’m having a problem with a search I did where the user filter content by district and county, is working well when I choose district and county without accents but when I choose a district and a…
-
1
votes1
answer45
viewsQ: Submit form and update content from div
I have two select option with districts and counties. Through JSON I can filter the districts with the counties only that now I want to search the database. I want to submit the form with the two…
-
3
votes1
answer218
viewsA: Problem with filter via JSON
The problem that was having NULL values return was due to the accentuation of some counties, so the solution went by using utf8_encode when returning the values to read the accents. Code corrected…
-
1
votes1
answer218
viewsQ: Problem with filter via JSON
Good night, I am here with a problem with filter via json for districts and counties I will explain. The user chooses a district and it filters and lists in another selectbox the counties that are…
-
1
votes1
answer320
viewsA: Problems in accent display with htmlspecialchars
Well I’ll try to explain in parts I think so if you go all the way. First check in the database a COLLATE that has and changes if not for utf8_unicode_ci and the data table. In the database…
phpanswered César Sousa 2,025 -
0
votes1
answer90
viewsQ: Delete data by checkbox
Well personal I am here with a problem I have in my system categories where I insert the products in the various categories you can choose through checkbox only now I am facing a problem and I want…
-
0
votes1
answer55
viewsQ: Problem when selecting php checkbox
Good I am with the following problem I am entering multiple data through checkbox that part already working now I wanted to do the validation to mark the box of those that are already inserted in…
-
0
votes1
answer890
viewsA: By clicking Download PDF page
You can use a class for example this http://sourceforge.net/projects/tcpdf/files/ and export the data you want from the database to a pdf. Here’s an example how you can use tcpdf to export what you…
-
3
votes2
answers2142
viewsQ: Problem when comparing hours
When comparing timetables I have in the registered database the opening and closing hours of an establishment. I’m having a problem comparing the hours to see if the establishment is open or closed,…
-
0
votes2
answers534
viewsQ: Problem with function that generates friendly url
Good I have a function that generates the name for the friendly urls but I’m having a problem that when the function generates the name if that name contains accents it does not put the same word…
-
2
votes1
answer74
viewsQ: Edit url user profile friendly
Good I have the paths of the friendly urls in the htacess file I am viewing the users by the url so by the profile file http://exmeplo.pt/users/carlos But I now wanted to edit the profile of this…
-
2
votes1
answer350
viewsQ: Add error 404 friendly url
Good I am making the routes of the urls friendly by the htacess file and now I wanted to show the error 404 if the user type a name that does not exist. But I don’t know how I can do it I have the…
phpasked César Sousa 2,025 -
0
votes1
answer154
viewsQ: Add the same product in various categories
Good And the following I have a table categories and another table products at this time when creating the product I select the category to which it belongs by selectbox only now I have the need to…
-
1
votes1
answer124
viewsQ: Problem in Friendly Url
I have another problem with this line RewriteRule ^([a-zA-Z-0-9-_]+)$ index.php?controller=estabelecimentos&option=tipo&tipo=$1 [L] solved a problem but now I tried to create the same line…
-
2
votes1
answer175
viewsQ: Friendly URL does not load content
Well, I’m here with a friendly url problem, I’m doing the routes through the file .htaccess and take the values by $_GET.Only when I enter the url the content is not loaded, the page is always…
-
2
votes1
answer337
viewsQ: URL Friendly by title
Good night people, I am here implementing the URL friendly system on a website and I have already working for some pages, I am now locked in the ver_establishment file that and what shows the…
-
4
votes4
answers819
viewsQ: Show post with ajax
I’m starting to log into jQuery only I need someone to write an opinion on my website and it will appear right below without having to update the page. wanted a person when inserting anything in the…
-
0
votes1
answer170
viewsQ: Follow users php mysql system
Good people, I need to make a follow system for users of my site as notifications but I never did and I don’t know where to start, I needed an idea of how I can make this system.
-
1
votes1
answer111
viewsQ: Problem with SESSION in php
Good staff, I am here developing a login for my page but I have a problem that is not saving me in session the data I want can give me a help. Code require_once("../gtm/bd/funcoes.php"); ligarBd();…
-
2
votes2
answers828
viewsQ: List of facebook friends
Good people I’m having the following problem when trying to search the list of facebook friends of the logged in person I have the script done so that just login is not me to list the friends of the…