![]() |
Flashdata freakauth - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Flashdata freakauth (/showthread.php?tid=11648) |
Flashdata freakauth - El Forum - 09-17-2008 [eluser]srpurdy[/eluser] Hi All, Im adding some flash data to my admin console. But having a strange problem. Basically it works except for some reason it loads a (1) in front of the message like "1The Information was updated successfully" This is of course only on the new messages I added to FreakAuth. Obivously I did something wrong but I would like to know what LOL ![]() Anyone have a clue? ![]() Code: $msg = $this->db->affected_rows().$this->lang->line('FAL_sp_updated'); And these are the added lines I added to the lang file. Code: $lang['FAL_sp_updated'] = 'The Information was updated successfully!'; Thanks ![]() Flashdata freakauth - El Forum - 09-17-2008 [eluser]Frychiko[/eluser] it looks like the $this->db->affected_rows() in your msg variable set in the first row is outputting the 1, not sure what your desired output is... Flashdata freakauth - El Forum - 09-17-2008 [eluser]srpurdy[/eluser] [quote author="Frychiko" date="1221714017"]it looks like the $this->db->affected_rows() in your msg variable set in the first row is outputting the 1, not sure what your desired output is...[/quote] ahhh ok Thanks. I never actually used flashdata before. I didn't understand it lol. I got it solved now just took out what you meantioned $this->db->affected_rows() As im just simply trying to display a simple message notfying the user that the request was actually carried out. ![]() Thanks! |