Posts by VitorZF • 68 points
14 posts
-
0
votes5
answers195
viewsA: Sending view string to controller via Ajax. Codeigniter, javascript and php
Use jQuery to fail // CDN : https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js $.post( 'link',//url de destino {id: '151515'},//dados e como vao chegar no controller, para adicionar mais…
-
0
votes1
answer329
viewsA: Check if registration already exists (Codeigniter)
Using this Codeigniter select library makes it very difficult in my opinion, try the following : To get started put this line of code into your controller’s Construct…
-
0
votes1
answer100
viewsA: I’m getting this error while trying to connect mysql: Fatal error: Uncaught Error: Call to a Member Function prepare() on null
Try it that way $sql = $conn->prepare("select * from usuarios where id = :user"); $sql->execute([':user' => $_SESSION['login']); $user = $sql->fetcObject(); On the port you cannot use,…
-
0
votes4
answers1350
viewsA: Check if id_user is logged in (Session - codeigniter)
if($this->session->has_userdata('id')){ //Ou o dado que TEM de existir pra estar logado echo 'Logado'; }else{ echo 'Não logado'; } …
-
0
votes1
answer34
viewsA: Activate controller when refreshing page
As I understand it, I think you want the following: Using jQuery <script type="text/javascript"> $(document).ready(function() { notificacoes(); }); function notificacoes(){…
-
0
votes2
answers64
viewsA: Phpmailer works on a project created without a framework but does not work with a project created with Codeigniter
I do it this way, it never went wrong, sending by gmail, just have to take the security of the email otherwise gmail blocks sending. In case I use the codeigniter’s own email library, pass the…
-
0
votes1
answer346
viewsQ: Chrome auto completing input, autocomplete="off" does not work
When entering the search page "http://conteumahistoria.com/autor/monychan" input is completing itself, I put autocomplete="off" and did not help, what I can do? <input type="text" id="pesquisa"…
-
0
votes1
answer720
viewsA: Problem with Session on Codeigniter after putting website into new hosting
Solved as follows: (I will answer my own question in case someone comes to have the same problem can try to solve the same way I solved) In the application/config/config.php folder 1 - Removing "_"…
-
0
votes2
answers217
viewsA: Why does ajax post request for the controller not work?
It’s easier to use that way $.post('<?=base_url("basecontroller/getagendadate")?>', { parametro1: parametro1, parametro2: parametro2 },function(data){ if(data){ console.log('ok'); } });…
codeigniteranswered VitorZF 68 -
0
votes1
answer30
viewsA: How to make a database information array in codeigniter
I think just do this public function getRecibos($codigosRecibo) { $result = []; foreach ($codigosRecibo as $codigoRecibo) { $result[] = $this->db->query('select * from recibo where idRecibo =…
-
1
votes1
answer720
viewsQ: Problem with Session on Codeigniter after putting website into new hosting
I have the following problem: when trying to accomplish the logon in some browsers or even on mobile phone (it does not occur at all, my friend for example can log in normally), the session simply…
-
1
votes1
answer830
viewsQ: How to Break Automatic Line in a Textarea with Javascript or jQuery
I’m sending a message and I want to put the button as if it were inside the textarea, but the problem is that writing goes under the button, there is some way with CSS, javascript or jQuery to avoid…
-
-2
votes1
answer61
viewsQ: How to read the html of a page that only loads when opening in GOLANG browser
I’m trying to read the HTML from the following page (https://www.lojacorpoperfeito.com.br/search/? search=supplements&index=0/), but the problem is that its HTML is only loaded when it is opened…
-
3
votes2
answers637
viewsQ: How to arrange JSON without quotation marks in index
I have the following JSON that came from a Javascript and I’m using it in PHP. I’m giving json_decode($json), but obviously it doesn’t work. Because there are no quotes in the index of every value.…