Welcome Guest, Not a member yet? Register   Sign In
How to insert corporate details into database
#24

(11-24-2020, 06:13 PM)InsiteFX Wrote: try placing this in the top of your view file.

PHP Code:
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
?>

If it's a caching problem that should fix it.

It obviously is a caching problem but your code snippet didnt change anything.

Everything is working now except the data upload page does not display the $product immediately. I need to re-login then it displays.

In the Login Controller there is this;

PHP Code:
$data = array('user_id' => $result->user_id'date_reg' => $result->date_reg'user_name' => $result->user_name'pass_word' => $result->pass_word'first_name' => $result->first_name'last_name' => $result->last_name'country_territory' => $result->country_territory'temp_1' => $result->temp_1);

$this->session->set_userdata($data); 

Ive tried inserting that into the data upload Controller but it gives an error. Im tending to think the system needs to be logged in automatically similar to what I tried to do. Do you know how?
Reply


Messages In This Thread
RE: How to insert corporate details into database - by christaliise - 11-25-2020, 12:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB