Posts by Marcos Vinicius • 7,188 points
309 posts
-
0
votes3
answers26
viewsA: Insert data into MYSQL database by PHP with more than 1 screen
One of the solutions, if you will only use PHP for lack of knowledge in another technology like Javascript to do this without refreshing the page, would create a form for each file. In the form…
-
0
votes1
answer77
viewsQ: How do I use the Facebook API to get the share link?
I have a job where I need to take the product sharing link from the customer’s online store and register it in the database. He pays by sharing his products, hence the need. I have to take link/id…
-
0
votes2
answers101
viewsQ: How to mark options in ajax return?
I have an array of ids and I’m returning this array in the ajax response. How to compare this array with the select options and mark the option if it matches the array index? In PHP, we use the…
-
1
votes0
answers95
viewsQ: Installation of Composer Package
I can’t install a package from commiserate on my windows computer that I needed because a Codeigniter documentation library depends on that package to run. I am using Windows 7 with Gitbash and…
-
1
votes1
answer878
viewsQ: How to generate two Google Charts on the same page?
I know that the code below generates 1 graph inside the page but I need to generate several graphs and I do not know the logic used to achieve, dynamically, the goal. Can you help me please?…
-
0
votes1
answer98
viewsQ: How to recover the functions of a cloned editor?
I’m dynamically adding the summernote down in green. I’m actually cloning the ones above. Of course I’d have a problem with that otherwise it wouldn’t be programming. The functions of the added…
-
2
votes2
answers77
viewsQ: How to modify specific parts within an html file?
I am loading an html file and would like to modify urls within it so that the system recognizes the actual path of each file that html is trying to access, so I have several different urls: <link…
-
0
votes1
answer39
viewsQ: How to take the images that are returning and turn into a gallery?
I’m using a mixture of Wordpress plugin with PHP code to manage to perform a task that is to join all the images of a particular post in a gallery. I would like, in this code below, to know how I…
-
0
votes1
answer399
viewsQ: How to get the answer to enter immediately after the question?
I have a form and I want to send the questions and answers to a database. I took the question in text form and sent it to a field input Hidden and I want to put the question and the answer in the…
-
3
votes1
answer570
viewsQ: How to feed real-time notifications while logged in?
I’m looking for a system that keeps updating the logged in user to show the messages he receives. Considering that this system will have 250-500 simultaneous users, what is the best way to search…
-
0
votes0
answers40
viewsQ: How to redeclare a Function after loading new content with Ajax?
I need to assign to the new elements loaded through a request ajax this Function bloginfos(). There’s a more elegant and professional way in my code of doing this?…
-
0
votes1
answer118
viewsQ: jQuery Function crashes after Ajax search
I made a system in Codeigniter that searches in real time. In my search, send the parameters via Ajax to the controller and do the query. I send all the HTML to a view. Then I take all the HTML from…
-
1
votes1
answer31
viewsQ: How to modify this query to get the desired result in Codeigniter?
I have an SQL that returns to me the following: 1: Hacker And Automobiles OR 2: Food and I need her to return to me: 1: Hacker And 2: Cars or Food The code I have so far is: if(!$final['termo'] ==…
-
2
votes1
answer38
viewsQ: How to return the expected result in this query?
Good afternoon, you guys. The case is as follows: I have a table with 2 blogs of category "auto" and part of the title "Hackers" so whatever my query, can not return more than two results combining…
-
1
votes1
answer92
viewsQ: How to get an infinite route in Codeigniter?
I have two urls: http://you.axitech.com.br/busca/qualquercoisa http://you.axitech.com.br/busca/qualquercoisa/outracoisa And I’m having these Routes: $route['search/(:any)'] = "Search/index/$1";…
-
0
votes1
answer519
viewsA: How to count the number of records (Rows) in an SQL statement?
So we can put a counter inside the SQL statement itself and in the result_array() recover the result of the accountant as can be demonstrated in the code below: public function getFornsRegion($code)…
-
-1
votes1
answer519
viewsQ: How to count the number of records (Rows) in an SQL statement?
I am in this SQL, recovering the records (number of vendors per city) of a table and I would like to count how many records have in each city. I want to put something like Tal City (9). I will put a…
-
2
votes2
answers1489
viewsQ: How to execute one code only after finishing another?
I need to run the search for cities only after I finish loading the states within select and capturing the ID. I’m taking this ID to send another Ajax that will popular the cities of this state…
-
3
votes4
answers345
viewsQ: How to select an option with value comparison?
I need to do "selected='selected'" in a option whose value is what is saved in the variable state recovered in Ajax. How can I do this? $('#cep').on("change", function(){ $.ajax({ url:…
-
1
votes2
answers495
viewsQ: How to add multiple items in $paymentRequest->addItem?
Well, I added 1 item to the Pagseguro checkout but would like to insert several items. How can I insert multiple items by passing these items in $date? public function pagar(){ // Pega os itens…
phpasked Marcos Vinicius 7,188 -
0
votes1
answer190
viewsQ: How to select a dynamically charged dropdown with jQuery?
I am using a form to register dynamic questions in my system. I’m also recording this data in a session so I don’t have to be selecting all the time dropdows but there’s a problem: In the Submit, in…
-
1
votes2
answers275
viewsQ: How to use jQuery’s reverse function to undo something?
I am using the code below to apply an effect and undo as soon as the mouse is removed but it does not seem to work and shows no error message. I am using version 1.12.4 of jQuery.…
-
1
votes1
answer489
viewsQ: How to fire a Rigger with jquery?
I’m working with radio type button and I can’t fire a Rigger. Can someone help me solve? $("input[name='estimate_method']").on('change', function() { $(this).prop("checked", true);…
-
0
votes1
answer158
viewsQ: How to modify a url sent via get [Codeigniter] form?
Guys I need to modify a url but don’t know how to do it. I have the following url: http://wedding.axitech.com.br/?procuraonde=Palhoça&procuraoque=bolos and need to turn to the url below:…
-
1
votes1
answer108
viewsQ: How to return an SQL with result?
I need to select several tables linked by the "user id" and return the data to compose a profile page, but some of these tables may be empty at first, that is, the query will not find the "user id"…
-
4
votes1
answer51
viewsQ: What does this piece of sql statement mean?
I have this instruction in the database modeling archive and would like to know what it is. 'price_type' enum("S" "M")
-
1
votes1
answer85
viewsQ: How to correctly insert a Bootstrap navbar into the Codeigniter view?
I am learning Codeigniter and would like to know what or what are the correct ways to insert a navbar in my view taking into account that it will be inserted by all views present in the system. My…
-
2
votes1
answer479
viewsQ: How can I improve this loop that has one foreach inside another?
I’m making this code that has 2 foreach’s and carries 350 properties with more or less 3500 image links, I didn’t really call the photos, just the links, it all loads in half a second. The variable…
-
1
votes2
answers123
viewsQ: How to use bootstrap for websites with larger layout?
Well, I have always developed bootstrap websites and never modified the standard container size which is 1170px because there was never a need. Now I have a 1900 wide layout. I also always use the…
-
2
votes1
answer3812
viewsQ: What are the Woocommerce product tables?
I’m thinking of making an integration between Magento and Wordpress and would like to know if anyone has any idea which tables are responsible for the products in Wordpress with the plugin…
-
0
votes2
answers453
viewsQ: How to compact directory except a specific folder via SSH with zip command?
I have to compress all the files and directories of the directory public_html except for var which has more than 60GB. How can I perform this operation via SSH commanding zip? I saw some shapes with…
-
1
votes1
answer300
viewsQ: How to release a specific folder through the use of htaccess?
I need to release inside lib only the folder Barcode. The rest is inaccessible. How can I do that? What I currently have is: Order Deny, allow Deny from all…
-
0
votes1
answer806
viewsQ: Permission issues in the directory of the user. How to reset permissions?
I have a problem in my briefcase /media/tmp/ and /media/catalog/product/ of the Gento. When trying to upload the images of the products in the creation of the product, the image is sent to the…
-
0
votes1
answer166
viewsQ: How to select the value option returned with jQuery?
This variable Uf data. me returns the acronym of the states. Ex...: SC How I make a loop with jQuery to select the date-symbol correlately to the variable Uf data.? <select id="billing:region_id"…
-
1
votes1
answer26
viewsQ: How to create relationships between different data to perform an action?
This statement returns me the state acronym: SC $("#billing\\:city").val(dados.uf); I have a select so I can’t change: <select id="billing:region_id" name="billing[region_id]"> <option…
-
-3
votes1
answer64
viewsQ: How to retrieve specific information within this array?
I made a query SQL in the Wordpress database that returned me all the information related to a request, but I need to store some variables of this information and do not know how to do. The $pid…
-
1
votes1
answer180
viewsQ: How to complement these queries to get the buyer’s data in the bank?
I made these queries below to get the data from the buyer’s database and the products he bought. With the first query, I got the ID and with these IDS I made a new foreach that took the products…
-
0
votes0
answers103
viewsQ: How to extract data from this type of array? It is a query in Wordpress
I need to extract the e-mail and the nome of this user but I don’t know how to proceed in this arrays. You can help me learn how to proceed to extract this data and record it into a variable?…
-
2
votes2
answers758
viewsQ: How to create dynamic columns with Bootstrap and PHP?
I have 30 itens that will come in alphabetical order. I need to distribute these items in 3 columns in alphabetical order VERTICAL. The problem is that in Bootstrap, the blocks are marrying each…
-
-5
votes1
answer75
viewsQ: How to transform this array into an array of 4 indexes?
Array ( [0] => Camaquã,Cavalhada,Cristal,Hípica ) I need to transform the array above in an array of 4 indexes as seen below. Array ( [0] => Camaquã [1] => Cavalhada [2] => Cristal [3]…
-
0
votes2
answers67
viewsQ: Why do requires and includes fail to add files that are in directories above the call file?
I realized that require and includes cannot include files that are above the call file directory. Because this occurs? Example: It works: <?php require_once('inc/configs.php'); ?> That doesn’t…
-
1
votes1
answer566
viewsQ: How to get the Return of a method that depends on another within a class?
I’m using a class called Semelhantes that will have 2 methods. The features magpie 3 characteristics of the current property through the id. The resemblant rides a query which aims to bring…
-
1
votes1
answer431
viewsQ: How to send attributes to extended classes?
class Veiculos { protected $tipo = "carro"; } Below I am trying to identify which type of vehicle the class Veiculos assigned. I created a function tipo_veiculo that should show the user what type…
-
3
votes4
answers142
viewsQ: Does calling dozens of classes in a system noticeably influence the performance of the application?
I’m starting to work with object orientation in PHP and would like to know if the amount of existing classes in a system can interfere in the performance of it or if it would have to be hundreds of…
-
0
votes1
answer123
viewsQ: How to transfer selected checkboxes to an Hidden input field?
I have a checkbox checkbox that selects multiple cities and I need the selected values to enter within one value of a input hidden. The example of what I need can be found here by clicking on…
-
1
votes1
answer180
viewsQ: How to check for certain values in an array?
I have the variable $search_dorms who returns me Array ( [0] => 1 [1] => 2 ). She can return too Array ( [0] => 1 [1] => 2 [2] => 3 ) Or simply Array ( [0] => 1 ) I am trying to…
-
2
votes3
answers8934
viewsQ: How to extract and list values from a multidimensional array?
I have this array: Array ( [Bairro] => Array ( [0] => Aberta dos Morros [1] => Camaquã [2] => Cavalhada [3] => Cristal [4] => Guarujá [5] => HÃpica [6] => HÃpica/Jardins…
-
4
votes1
answer469
viewsQ: How to extract only different values from an array?
I’m extracting from a array city names. I want to extract cities with different names. In the current case, my script returns several identical city names. I want to recover only once each city…
-
-2
votes1
answer98
viewsQ: How to insert an instruction into the array only if it is true?
I need to somehow verify if there is any element within a given array and if there is, put a whole string in a specific place. For example: I need to check whether $categoria is not empty $categoria…
-
0
votes1
answer538
viewsQ: How to do a ternary <checkbox> check with PHP?
I’m doing this field check <select> and everything is going well but I would like to do the same check on a <checkbox> who may have several possibilities then needing to work with arrays…