Posts by Marco Silva • 351 points
30 posts
-
0
votes0
answers25
viewsQ: I can not fetch information from a MS SQL database through ODBC and with Codeigniter query Builder
Good, I am trying to create a login page with Codeigniter. It turns out, to validate the entered data, I need to fetch information from a MS SQL database through ODBC. When using the Codeigniter…
-
1
votes0
answers56
viewsQ: Error 404 when creating Routes in Codeigniter
well, I can’t create a route for a particular controller and there is always a 404 error when loading the page. In case I set this controller to default_controller the page is displayed normally.…
-
0
votes1
answer14
viewsA: How to receive date values from a Sybase database?
I created a new field with the value of each field i want with the converted value of it. $query = odbc_exec($db, "select *, CONVERT(Varchar(50), Data, 1) as DATA from GP_Web_Recibos where Codigo =…
-
-1
votes1
answer14
viewsQ: How to receive date values from a Sybase database?
Good, I need to search a database Sybase fields type Date to fill in my application. When searching for the necessary information and debugging it, the fields in the Date format appeared to me empty…
-
-1
votes1
answer34
viewsQ: Activate controller when refreshing page
Good, I am building a Dashboard where I want ,while refreshing my page, it triggers the 'Notification' controller that will return me values from a database. My question is, how can I trigger the…
-
-1
votes2
answers236
viewsQ: Handle data received by AJAX
Good afternoon, I am sending a value via AJAX/Jquery that triggers me the controller notifications index function. When I receive a certain value, I want the function to direct me to another page.…
-
0
votes2
answers429
viewsQ: How do I receive and submit data without refreshing the page?
Good, I’m creating a notification system in my app where I want to retrieve data from the database and inform the user accordingly through notifications. I happen to be a little lost in how do I…
-
0
votes1
answer29
viewsA: PHP(Codeigniter) continues to send email even with wrong mail server data
Okay, I solved the problem. I had created a config/email.php file where I had entered the data by direct code. When this file exists, it is not necessary to use "$this->email->initialize()"…
-
0
votes1
answer29
viewsQ: PHP(Codeigniter) continues to send email even with wrong mail server data
Therefore, in my login system I have a zone where the user asks to recover the password and is sent an email with the new password. When testing the code, I noticed that if I change the data from my…
-
2
votes3
answers592
viewsQ: Adapt formatting of input
I have an input field where I want the user to enter the license plate of the car in the following format "11-22-dd ". How do I make the form invalid if the value sent does not follow that specific…
-
0
votes1
answer178
viewsQ: Problems when clicking an input
Good afternoon, Sometimes I can’t click an input from a form to fill it out but in others the form works normally without any problem. This happens sporadically and, as a rule, happens to me in…
-
1
votes2
answers61
viewsA: What is it missing?
The code is working perfectly, Warning appears because at the time you open the page you have not submitted the form so the variable $_POST['Name'] does not exist yet. In the suggested test above,…
-
5
votes1
answer68
viewsA: Insert value into an array
I was doing a print of the $car variable instead of creating a new array with $car data and would join the $diff variable which, for obvious reasons, was not showing me the diff variable in the…
phpanswered Marco Silva 351 -
2
votes1
answer68
viewsQ: Insert value into an array
Good, I’m trying to insert a value into an array I receive from a database. The array contains a set of arrays and each array of this set corresponds to a vehicle. I want to take two values of each…
phpasked Marco Silva 351 -
0
votes1
answer35
viewsQ: Compare dates from different months
Good, I am using the following code to calculate whether one date is less than the other : $dferiasinicial =date("d/m/Y",strtotime($_POST['dferiasinicial'])); $da = date("d/m/Y"); if($dferiasinicial…
phpasked Marco Silva 351 -
0
votes1
answer33
viewsQ: Try to check if a day is inserted between two dates
Good, I have a function that keeps me in an array the days between two dates. Next, I want to check if a given day belongs to the interval and create a foreach that goes through the array with all…
phpasked Marco Silva 351 -
0
votes2
answers64
viewsQ: Phpmailer works on a project created without a framework but does not work with a project created with Codeigniter
Initially, I created a project without any kind of php framework where I needed to use Phpmailer to send an email. It turns out that right now, I’m redoing the project using the Codeigniter…
-
0
votes2
answers54
viewsQ: Codeigniter, update value with "CURRENT_TIMESTAMP"
Good, I want to update a table where in one of the variables I want to insert the value "CURRENT_TIMESTAMP". In a normal situation just send the value as a string and sql would interpret it and…
-
1
votes1
answer55
viewsQ: Problem with the type of Ncode I get from a Sybase comic
Good, I’m getting values from a Sybase database through odbc in php. It turns out that when printing special characters ,such as ô or ç, are printed '?? ' instead of these. I have tried using…
-
0
votes1
answer155
viewsA: Create xlsx File with html table
I enlarged the memory with the following code: ini_set('memory_limit', '3000M');
-
0
votes1
answer68
viewsQ: I cannot keep fixed size in the cells of a table
Good, I’m making a table and filling it with values received from a database. The problem is that the size of the cells adapts to the value of their contents instead of keeping the value I set for…
-
2
votes3
answers37
viewsQ: Select entries between two dates
Good, I have a view " Gp_vw_cons_faults " that contains the initial and final date of when a client is missing. I want to collect all the records of a particular client in a given period of time. I…
-
0
votes1
answer155
viewsQ: Create xlsx File with html table
Good, I am trying to pass the values of an HTML table that receives data from a SYBASE database through odbc. When creating an 'xlsx' file formatting excel prevents the created page from opening and…
-
0
votes1
answer344
viewsQ: Fatal error: Uncaught Error: Call to Undefined method Domprocessinginstruction::getattribute(). PHP AND DOMPDF
I am trying to create a pdf with a table that receives php variable values. The page runs perfectly, but when I use DOMPDF to create the pdf of the page it gives me the following error : Fatal…
-
0
votes1
answer68
viewsQ: DELETE statement does not delete by php but by phpmyadmin the instruction works
I have the following code where I am trying to delete a column from the comic through php : session_start(); $dbh = new PDO('mysql:host=localhost;dbname=samsic', 'root', ''); $sql =…
-
-1
votes1
answer87
viewsQ: How to concatenate a php variable value in this case
Well, I’m having trouble concatenating the value $value['id'] when I want to cross-reference it in the url in front of the id (where you have the ??). The code is as follows: <td><?=…
-
0
votes0
answers39
viewsQ: Time of page processing
Well, I have a function that when implemented with direct values per code processes quite fast but when it receives values by http request the page takes a lot of time to be processed (I spent more…
phpasked Marco Silva 351 -
-1
votes1
answer16
viewsQ: Command exec opens the file in Internet explorer instead of opening the command in a new Chrome tab
Is there any way to make exec() open a pdf file in a browser other than the one set by default without having to modify the latter? My goal is to get exec to specifically open the pdf in a new…
phpasked Marco Silva 351 -
1
votes2
answers78
viewsQ: I can’t use quotes on a function value"Uncaught Syntaxerror: Invalid or Unexpected token"
The function does not let you pass the "Mark" as value because of the use of quotation marks, any idea how I can solve (without removing the quotation marks)? Code : <<!DOCTYPE html>…
-
9
votes3
answers162
viewsQ: How do I validate an input as its content changes?
I’d like you to fill in a piece of data input this was being validated, that is, as it was filling a field 'nif' that alerted me an "invalid nif" message until it was correct and did not need to use…
javascriptasked Marco Silva 351