Posts by C. Bohok • 739 points
61 posts
-
0
votes2
answers363
viewsA: Query and Subquery in codeigniter
Hello! $this->db->query() is not part of CI’s Active Record, but $this->db->get() yes, and this is an error that appears when a query has been improperly mounted via query Builder. For…
-
1
votes2
answers253
viewsA: Error Include PHP Codeigniter
Hello! For security reasons and the very scope of what the Codeigniter framework sees, you cannot use other files external to the project to include in your views. In other words, you’re trying to…
-
1
votes2
answers218
viewsA: Inner Join with subselect codeigniter
Hello! Instead of writing the table name in the first parameter of join() you need to write your SELECT monster that produces the table for the Join. Too bad that writing so much can generate an…
-
0
votes1
answer69
viewsA: Lock in SQL Server and Oracle
Yes, unlike Oracle, in SQL Server if you do not specify a block of commands within a transaction BEGIN TRAN and the operation take long, it is possible that third parties see an inconsistent…
-
1
votes1
answer381
viewsA: Failed to load helper "Unable to load the requested file: helpers/login_helper.php"
Check the following possibilities that generate error: Your helper file is even in the directory ../application/helpers? Your file is called even login_helper.php? Did you program on Windows after…
-
1
votes1
answer89
viewsA: Problem insert into Mariadb database images
Mariadb, depending on installation and version, does not accept queries greater than 300 kB. Either you have to send the file binarially in incremental loops of at most 300 kB, or, in the database…
-
3
votes2
answers217
viewsA: Why does ajax post request for the controller not work?
Hello, good morning! You need to call the full path of the URL in the parameter url, within your view, so: $.ajax({ url: "<?=site_url('basecontroller/getAgendaDate')?>", // <--- OBSERVE…
codeigniteranswered C. Bohok 739 -
0
votes1
answer24
viewsA: Error sending pdf by Codeigniter 3
Good morning! Wamp is for Windows, and on Windows the two-point character : is invalid to create a filename. Check the line: $nome_curriculo = date('Y-m-d_H:i:s').'.pdf';…
-
1
votes4
answers5739
viewsA: How to separate the letters of a string that are inserted into a list and place them in an array?
a = ['teste','teste','teste','teste','teste'] b = [] for palavra in a: linha = [] for letra in palavra: linha.append(letra) b.append(linha) print(b) Output: [['t', 'e', 's', 't', 'e'], ['t', 'e',…
-
0
votes1
answer332
viewsA: Problem accessing a controller in CODEIGNITER php
Hello! All files in the directory /application should only be accessed by the Codeigniter framework. So much so that they contain, in the first line, the following code, from which comes the message…
-
1
votes2
answers163
viewsA: Include files in the codeigniter view
Hello! Error 403 is permission denied. You cannot and is not allowed to access directory files /application directly via a path in the URL. Files below the /application are unique for use of the…
-
0
votes1
answer767
viewsA: Error: Userwarning: Data Validation Extension is not supported and will be Removed
The error you are experiencing is caused by the library openpyxl. It is not complete and does not understand all the elements of a Microsoft spreadsheet. More specifically, it has not implemented in…
-
0
votes2
answers127
viewsA: Image is not loaded as background
The CSS part is not written correctly, the style in general is better to reference by class and not id, as is done in Javascript. And yet, there is a better way to locate the image using Codeigniter…
-
0
votes1
answer32
viewsA: Problems to make a free query with codeigniter
When you use the function query() do not use Codeigniter get() soon after, because query() is already a complete function by itself. Get the result set of your query like this, for example:…
-
0
votes1
answer155
viewsA: How to keep form data after submitting using Codelgniter
You need two things to make the values come back filled in a form that went wrong: 1°) Recall the view passing a $data with the value of these fields you have gone through validation. 2°) Have…
-
1
votes1
answer336
viewsA: Dynamically change session expiration time - Code Igniter 3
Hello! You should not change $config['sess_expiration'] because this will change the configuration globally, including for other variables not related to the group that manages a particular user’s…
-
0
votes1
answer132
viewsA: Access Prohibited when copying and pasting new home.php
Hello! In Codeigniter you can never access view or model directly through the URL. Access to these files is via controller. Note that in your URL you notably access the application directory, the…
-
0
votes1
answer369
viewsA: Object not found when clicking on hyperlink
The error you are seeing is provided by Apache when the URL you are trying to access does not exist within the web server. Most likely you haven’t typed the right URL. See if this works: instead…
-
1
votes1
answer283
viewsA: Work with BLOB field on ORACLE using Codeigniter
Here is an example of how to update a BLOB column with a file received via upload. The secret is the concatenation of 0x with the string transformation of binary content to hexadecimal. public…
-
0
votes1
answer59
viewsA: Storing checkbox data from a modal window in another Codeigniter view
In general, the view that mounts the main body of the page for the user to see is also the same that at the end has a hidden modal window, which appears when the user clicks somewhere. However, even…
codeigniteranswered C. Bohok 739 -
0
votes2
answers92
viewsA: Separate clients in foreach with mpdf
The report is right. I think we should just put the product loop foreach($reports as $r) within the customer foreach($clients as $c), and after this product loop perform a page spacing or break with…
-
0
votes1
answer46
viewsA: For every time I make a page in Codeigniter I need to put the links of JS, UI, VALIDITY?
Hello, no, you do not need, nor should you keep repeating the same information in all views (such as importing scripts). In your user view you should only worry about what is related to it, ie with…
-
0
votes1
answer61
viewsA: Help with PHP require_once
The problem is that you must be trying to access files and directories that the Web server does not see, mainly for security reasons. If the default directory to deploy files is /var/www for…
-
0
votes1
answer286
viewsA: conditional search in PHP using codeigniter
Good morning! 1°) Your "Product" table has identical duplicate products. That is, if you had 20,000 Bic blue pens, there shouldn’t be 20,000 records with the same thing "Bic blue pens". For example,…
-
1
votes1
answer126
viewsA: Get Rendered External HTML Code
You will not be able to accomplish what you want because Javascript runs ONLY on the client’s machine by the web browser, after the client receives the content (and if Javascript is enabled). Even…
-
1
votes1
answer109
viewsA: Solr generating exception "maxClauseCount is set to 1024"
A few days later I discovered the problem and it’s not related to maxBooleanClauses in 1024. 'Cause when I made it to 4096, Solr went on to generate the same exception only claiming to have burst…
-
1
votes1
answer109
viewsQ: Solr generating exception "maxClauseCount is set to 1024"
I have an Apache Solr 4.0.0 core that I created that eventually generates the exception: SEVERE SolrDispatchFilter null:org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to…
-
0
votes1
answer137
viewsA: Error with pagination and codeigniter
Seems to me an incorrect routing. When the user type: www.seu-site.com.br/cliente/ It will be (virtually) taken to: www.seu-site.com.br/cliente/clientes/consultaClientes That is, for the method…
-
0
votes1
answer36
viewsA: Difficulty validating the login
The code is not actually checking whether or not the user exists in the table. Analyzing the following lines... $query = "SELECT * FROM utilizadores WHERE username = '{$_POST['username']}' and…
-
0
votes1
answer52
viewsA: I do not receive SELECT FROM data
It wouldn’t be because you’re not comparing the values sent with table columns, but with static strings 'email' and 'senha'? Try logging in exactly with these "email" and "password" credentials, to…
-
1
votes2
answers217
viewsA: Hide field from select mysql
You can’t do this because there is no Modifier with this functionality provided for in SELECT, at least not until version 5.7: SELECT [ALL | DISTINCT | DISTINCTROW ] [HIGH_PRIORITY] [STRAIGHT_JOIN]…
-
1
votes1
answer654
viewsA: How to create variable names during code execution?
You don’t necessarily need to identify the arrays, and you probably shouldn’t, since they’re dynamic. Take the example: tudo = []; # Adicionando listas sem identificador em "tudo" tudo.append([1, 2,…
-
1
votes1
answer101
viewsA: Do not connect on Panel (Codeigniter)
Hello! Make sure you are passing to the method $this-load->view( ) the variables that are prepared in the controller. For example, in the view, you never have anything in the variable $msg…
-
0
votes1
answer123
viewsA: Compare Plugin Notepad++ is it possible to use on VB6 or . NET?
Allow me to say that you are mistaken. The plugin Notepad++ Compare plugin only works for the Notepad++ editor, it does not apply to install it in Visual Studio, regardless of the language used in…
-
0
votes1
answer50
viewsA: Selecting a data in a table that is not with you in another
whereas the tables are x and y, as mentioned, and that both have the Cpf, for example, the following query returns all existing Cpfs in x that do not exist in y: SELECT cpf FROM x WHERE cpf NOT IN…
-
0
votes2
answers1452
viewsA: Phpmyadmin gives 404 error on Linux
You are required to enter the URL in the browser in lower case http://localhost/phpmyadmin. If you type in capital letters /PhpMyAdmin the application will not be found, because this is defined in…
-
0
votes2
answers55
viewsA: Order by Asc to list increasingly
Believing that you want to sort by publication date, the best solution is to find the code that creates the array $noticias_tag, whose data probably come from the database, and there in the query…
-
2
votes1
answer2087
viewsA: How to accept a list as input?
When you take data via input( ) Python presumes to be a string. To turn into "list," actually array, circumvent the function input( ) with eval( ), already placed the brackets, and type the values…
python-3.xanswered C. Bohok 739 -
0
votes1
answer103
viewsA: How to store the error that Ci_exception provides
It is possible to do what you want, but this includes changing the core of Codeigniter. Is that Codeigniter defines a custom PHP error management when calling the function below in the file…
-
0
votes1
answer284
viewsA: Running audio in php
You cannot access files outside the directory www of the Web server. This is also for security reasons. Either you should copy the files you want to share into this directory or, in the Web server…
-
2
votes2
answers880
viewsA: PHP Generating PDF
Dynamically you can use some of the values submitted by the form as the file name. For example, concatenating name + underscore + CPF: cpf_name.pdf (if this exists in your form and you are sure that…
-
0
votes2
answers206
viewsA: Network connections between processes within a machine
Imagine that you need to test your client-server or peer-to-peer application with yourself, your machine is not connected on the Internet, nor does it have a real IP, and the network protocol is…
-
1
votes2
answers155
viewsQ: Google Chrome inserting datepicker into inputs
I’m having trouble with tags <input> of the kind type="date", as shown below, when user uses Chrome (ie in Firefox works as expected). <input name="dt_fim" id="dt_fim" type="date"…
-
1
votes1
answer465
viewsA: Problems with captioning HTML5 videos
There is not much secrecy in HTML5, but most problems occur because: The user’s browser/player simply does not support subtitles, although it supports video. The src link is wrong, try downloading…
-
0
votes1
answer49
views -
0
votes3
answers2299
viewsA: limit no codeigniter
Only the first parameter of the method shall be used limit(), which is the quantity, because the second parameter is the offset (dislocation): $this->db->limit(2); However, not all banks have…
-
0
votes1
answer77
viewsA: How to list files from a directory and then compare them to a list of allowed files using PHP?
Hello! To truly validate the file type, you can’t just rely on the name extension (*.pdf, *.xls, etc). You need to read the first bytes of the file and compare them to expected patterns. For some…
-
2
votes2
answers1778
viewsA: Multiple codeigniter database connections
In general you only have 1 database configured in the file /application/config/database.php Codeigniter and by default the configuration is called default: // Isto já existe $db['default'] = array(…
-
1
votes1
answer69
viewsA: How to include Labels in matplotlib
There is no feature ready for this when generating the chart. You need to use annotate( ) to mark each point, or any text, you want. As you know what the points are, just iterate on the values and…
-
2
votes1
answer421
viewsA: How to copy integer matrix for Mat type in Opencv?
Hello, the point is that you are trying to render a grayscale image so the data type for the matrix is not CV_64FC4, but CV_8UC1 (8 bits without signal and 1 channel only). #include <iostream>…