Questions tagged as 'php'

2
answers

Keep client logged in http and https

I am finalizing my virtual store developed in codeigniter 3 and database mysql is working perfectly. Now I want to start configuring the digital certificate. My problem is this: when I go to the environment https soon on...
asked by 08.09.2015 / 14:33
1
answer

How to combine four or more arrays?

I would like to combine four or more array's. With two array's, I use array_combine and I have the expected result, already with four, no. What function should I use to combine four array's? Follow my code: HTML <input type=...
asked by 07.09.2015 / 16:14
3
answers

Insert into bank with function

I'm trying to make an insert into the database using a function but I'm not able to enter its values; HTML: <?php if (isset($_POST['submitTexto'])) { inserir('empresa', $_POST); } ?> where sub...
asked by 10.08.2015 / 16:29
1
answer

CI3 No Load the model on the umbler server

I'm doing a test on umbler services, but I'm having trouble loading the model. I am using ci3 and am loading the models as usual. $this->load->model('main_model'); More is giving an error An uncaught Exception was encountered Ty...
asked by 07.09.2015 / 16:45
1
answer

Serialize PHP data

How can I serialize the array below to save in BD? Itriedtoserializebutitlookedlikethis:a:2:{s:8:"produto1";a:2:{i:0;s:12:"Novo produto";i:1;s:1:"2";}s:8:"produto2";a:2:{i:0;s:12:"Bolo caseiro";i:1;s:1:"2";}} I want something like this to...
asked by 09.08.2015 / 02:53
1
answer

Return mysql result with function

I'm trying to list a database table using a function but I can not use it outside of function : The HTML: <tbody> <?php listar('empresa'); ?> <?php foreach ($row as $listar): ?> <tr> <td><...
asked by 10.08.2015 / 19:23
1
answer

Treat JSON API query Facebook

I'm making requests for a user's posts to the Facebook API as in the code below. //faz requisição $postagens = file("https://graph.facebook.com/".$url."/posts?access_token=".$token); //imprime as postagens echo $postagens[0]; And I'm havi...
asked by 12.08.2015 / 14:59
1
answer

HTACCESS - Directory exclusion condition

Good evening! I have the following scenario in an application: I'm redirecting all requests to my index.php and handling URL's through the application: RewriteCond %{REQUEST_URI} !admin RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|...
asked by 21.12.2015 / 02:30
1
answer

how to add hidden copy phpmailer

How do I send a newsletter with a hidden copy to the clients, showing only the email of the same one that was sent? code: require_once("../phpmailer/class.phpmailer.php"); $mysqli = mysqli_connect("localhost","root", "", "projeto") or die(m...
asked by 19.12.2015 / 13:34
2
answers

Check if data already exists in the bank with codeigniter

I am starting with codeigniter using the active record to make the conversation with the bank, and wanted to know how do I know if an email already exists in db, would it list all emails and create a foreache doing the verification? Is there a s...
asked by 19.12.2015 / 20:13