459 Topics

Member Avatar for
Member Avatar for Vincentas

Hi everybody, I am in the process of building a small web application which will hold around 10 pieces of information for every person inserted. Due to data protection the majority of this information must be encrypted. Using the CodeIgniter framework and the CodeIgniter encryption class I can encode the …

Member Avatar for pritaeas
0
319
Member Avatar for unikorndesigns

Hello guys, i'll try to explain the problem i am facing here. I had searched for many file uploaders with drag and drop interface. I came across something at http://demos.9lessons.info/multiupload/index.php called the multiuploader. I saw the code and it was a bit of nightmare to me as am not so …

Member Avatar for unikorndesigns
0
415
Member Avatar for unikorndesigns

Please analyze the following code. This is being used in CodeIgniter framework... $results["rows"]=$this->Category_model->getAll(); $i=0; while($i<count($results["rows"])) { //$parentids[]=$results["rows"][$i]->cat_id; $disparray[]=array( "cat_id" => $results["rows"][$i]->cat_id, "cat_name" => $this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_name"), "cat_parent_id" => $this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_parent_id"), "cat_desc" => $this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_desc"), "cat_num_posts" => $this->Category_model->fetchnumposts($results["rows"][$i]->cat_id), "cat_parent_id_name"=>$this->Category_model->fetchcatinfo($this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_parent_id"), "cat_name") ); $array=explode(",",$this->Category_model->fetchallkids($results["rows"][$i]->cat_id,0)); foreach($array as $item) { if(strlen($item)>0) { $spacecount=substr_count($item,"&nbsp;"); $id=str_replace("&nbsp;","",$item); $spaces=array(); …

Member Avatar for unikorndesigns
0
187
Member Avatar for zalexy

Please help! i can't connect codeigniter to Oracle I am trying to connect Codeigniter to Oracle 11g, here are my settings Settings in database.php: $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = "//localhost/"; $db['default']['username'] = 'xxxxxxx'; $db['default']['password'] = 'xxxxxxx'; $db['default']['database'] = 'orcl'; $db['default']['dbdriver'] = 'oci8'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = …

Member Avatar for zalexy
0
2K
Member Avatar for ZER09

i got problem in setting the reCapcha it tank auth when i try to change it theme color, the recapcha image now is showing on the top of the form. this is the code i edit auth.php function _create_recaptcha() { $this->load->helper('recaptcha'); // Add custom theme so we can get only …

Member Avatar for ZER09
0
117
Member Avatar for daniel36

my controller code is- <?php class Site extends CI_Controller { function index() { echo "Under Construction."; } function signup() { $this->load->model('site_model'); $data['countries']=$this->site_model->get_countries(); $this->load->view('signup_view',$data); } function login() { echo "This is working."; } } ?> When i open signup page .the signup view repeats many time.

Member Avatar for gon1387
0
114
Member Avatar for wycliffe.ottawa

am creating a simple blog application and i have a model in ci called entries model and one particular function that gets a blog entry by id from an entries table table in a database this here is the code <?php class Entries_model extends CI_Model{ function __construct(){ parent::__Construct(); } function …

Member Avatar for wycliffe.ottawa
0
165
Member Avatar for mangel.murti

i configure openinviter with Codeigniter. gamil conatact is fetching but yahoo and facebook contacts list are not working.any suggestion will be appre.

Member Avatar for LastMitch
0
163
Member Avatar for McLaren

Hello, I am trying CIUnit - PHP unit integration to codeigniter. But I am stuck - getting error that file is denied: E:\projektai\php projektai\htdocs\ci_unit\tests>phpunit PHPUnit 3.5.14 by Sebastian Bergmann. ....[CIUnit] PHP Error: Warning - include(E:\projektai\php projektai\htdocs\ci_u nit\application\config\testing\database.php): failed to open stream: Permission denied File Path: database/DB.php (line: 41) [CIUnit] PHP …

Member Avatar for McLaren
0
296
Member Avatar for imanpatrick

hello, i want to ask something about building a great website. i want to build a web startup,in local of course, but i dont know what programming language to use.. For example i want to build a site that looks like booking.com. please let me know what programming language to …

Member Avatar for arijith04
0
274
Member Avatar for yahya.erturan

My previous folder tree was (with portable xampp): (for example working on D: drive root) /xampp/htdocs/application /xampp/htdocs/system /xampp/htdocs/themes /xampp/htdocs/index.php etc.. Now I am trying to shift into a structure which I can work with multiple projects so new tree: /xampp/htdocs /web_projects/project-name/codeigniter/application /web_projects/project-name/codeigniter/system /web_projects/project-name/htdocs/themes /web_projects/project-name/htdocs/index.php My htaccess file in htdocs: RewriteCond …

Member Avatar for cereal
0
2K
Member Avatar for xNZxAssAssiNx

In my code I have a mysql query: "SELECT `username`,`password` FROM `users` WHERE `username` = 'Tyler'" This query doesn't return anything in codeigniter but it does return username and password if I query in phpmyadmin. Does anyone have any idea what is wrong? I'm guessing it has something to do …

Member Avatar for pritaeas
0
210
Member Avatar for daniel36

first thank you for solving privious problems. I am working on codeigniter . i am making signup form in which countries dropdown list is required. i am unable to make this drop down list with table country in my database.Can any one help me.

Member Avatar for wesley1263
0
4K
Member Avatar for extjac

What's your recommendation for PHP MVC frameworks?? i tested Codeigniter and it seem easy to use.... I am not a full time developer, but I do have some customers with backends, etc…My intention is to migrate some of old php code to PDO but I am now wondering if I …

Member Avatar for jkon
0
192
Member Avatar for extjac

Hello, what would be the best way to prvent people to run a php script/file that is on ajax.post(URL) $.ajax({ type: 'POST', url: 'http://www.mydomain.com/ajax/somefile.php?action=insert', data: data, success: success, dataType: dataType }); if you see code above...let's say that an advanced user or hacker go to: http://www.mydomain.com/ajax/somefile.php?action=insert i would like to …

Member Avatar for extjac
1
281
Member Avatar for McLaren

Hello, I have experience in codeigniter, and in it just set the settings in database.php and you connect to the database. In zend, I have no idea. Bootstrap.php <?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initDB() { $dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/db.ini'); $dbAdapter = Zend_Db::factory($dbConfig->adapter, array( 'host' => …

Member Avatar for McLaren
0
478
Member Avatar for iamthwee

OK so I'm quickly making my way through codeigniter... It seems pretty pleasant and the MVC model seems Okay. But I have come accross a problem in passing an array to a view and displaying it. Following the MVC pattern, the database queries are separated into the Mo**d**el file. [Good.] …

Member Avatar for Dani
0
112
Member Avatar for iamthwee

OK I've got another interview! Thanks to pritaes for the links etc. Never thought I might be doing a programming job but hey, it's a laugh I guess. I have a few questions I may want to ask about OOP in version 5, but also codeigniter and joomola... So learning …

Member Avatar for pritaeas
0
130
Member Avatar for reibi

Hello everyone, I am trying to create dynamic dropdown of category and when a particular category is selected then it should show sub-category automatically from the database. I have used this using javascript in OOP PHP but having difficulty while using it with codeignitor. So please anyone, help me with …

Member Avatar for cereal
0
3K
Member Avatar for PatrikDendis

Hi. I have URI Language Identifier on my website I did it according to directions on codeigniter WIKI. It works fine. But How Can I get name of controller because $this->uri->segment(2) = id and $this->uri->segment(1) = name of the metod. This is my routes.php $route['default_controller'] = "page"; $route['404_override'] = ''; …

Member Avatar for ko ko
0
183
Member Avatar for ecinevenice

hey does anyone here knows how to change excel page orientation to portrait? i get landscape as default <?php header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=transactions.xls"); header("Pragma: no-cache"); header("Expires: 0"); ?>

Member Avatar for blocblue
0
175
Member Avatar for kutchbhi

I have only coded 2 sites till now, first one in plain php (wall of php intermingled with js, html , super messy) and the other in codeigniter(much better as far as separating display with logic is concerned) now I have to code a website for a friend (designer). The …

Member Avatar for diafol
0
113
Member Avatar for Dani

So I just discovered a crazy bug that has been keeping visitors of the Opera web browser from using DaniWeb. Apparently there's a problem with CodeIgniter's CSRF protection that makes it not work with Opera, and I'm unsure of why. It works perfectly fine with IE, Firefox, Chrome, etc. I …

Member Avatar for diafol
0
308
Member Avatar for cgull

Hello, I have a problem with an Ajax call on IE9. I have searched the internet and this forum for solutions for a few hours and can't find an answer. I have a coffee roastery site (developed with Codeigniter), where the users can order coffee bags online. The user selects …

Member Avatar for cgull
0
828
Member Avatar for HiWorld

Hi, I am trying to make my search results table sortable. The content is obviously dynamic, so how would I do this? *Tablesorter.js does not work…* I am using CodeIgniter... Any help would be fantastic! Thanks

Member Avatar for HiWorld
0
173
Member Avatar for designalex

guy plz help me out with this. If i have a table, in the table is a column called veh_status, the row data will be varchar storing one or many comma seperated numbers so veh_status could be 1,2,3 each number represents an id to the relevant vehicle statuts name and …

Member Avatar for rch1231
0
197
Member Avatar for Ctechnology24

guys can anybody tell me how to implement a captcha in codeigniter 2.1.0 and what should I use, the captcha helper library or recaptcha? because I dont know if i can use recaptcha even if I don't have a domain because I'm using a local server. is it ok if …

Member Avatar for Ctechnology24
0
189
Member Avatar for Ctechnology24

Guys please give a simple code (specific syntax) on how can I integrate a jquery in my PHP site using codeigniter. and what configuration should be made in my other php files to make it work. I also cannot display any image in my php files inside the views folder, …

Member Avatar for Ctechnology24
0
2K
Member Avatar for McLaren

Hello, today I am experimenting with unit testing functions, on codeigniter, but that does not matter, the same question is for everything in PHP, or maybe not only in PHP, but general with functions that connect to database. So lets say I have such function: public function turnview_by_franchise_id($franchises_id, $clients_id, $date_from, …

Member Avatar for McLaren
0
216
Member Avatar for cartergarth

Hello everyone! How do you write a PHP function in codeigniter that lets user download data to an Excel file? Thank You.

Member Avatar for almostbob
0
193

The End.