277 Topics

Member Avatar for
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
178
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
114
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
893
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
206
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
224
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
205
Member Avatar for kutchbhi

Say i have a list of items on a page . Now this list can be filtered by price ( in a simple POST form ) OR by discount (in another form element) OR by category links in the sidebar. Now if the user first filters by price and then …

Member Avatar for vibhaJ
0
136
Member Avatar for Dani

Sooo ... I learned during my schema migration that our webpages use UTF-8 encoding but our MySQL database (all InnoDB tables) uses latin1. After finally running some utf8_decode() php magic, I was finally able to successfully get all posts to display correctly again. However, now that I realize there's an …

Member Avatar for smantscheff
1
342
Member Avatar for shlokka

hi everyone.... i have a script i made that chooses a random name from a database i need to output many names on the page the code is used on, one name for each comment shown on screen.....i tried a few things but the code below is resulting 10 names …

Member Avatar for diafol
0
125
Member Avatar for youvi

Hello, Am doing a web application which have multiple file uploads.My problem is,when i click upload..file is uploading successfully but,the progressbar is not moving.Here is my code.. ` $('#gallery_uploader').uploadify({ 'uploader' : '<?=base_url()?>uploadify/uploadify.swf', 'cancelImg' : '<?=base_url()?>uploadify/cancel.png', 'folder' : '<?=base_url()?>uploads', 'auto' : false, 'multi' : true, 'buttonText' : 'Browse Images', 'fileExt' : …

Member Avatar for pritaeas
0
131
Member Avatar for Dani

Hi, I'm getting really frustrated with an issue that Ancient Dragon discovered is happening here. Anytime that the combination `% 02` (without the space) is submitted via a textbox, it's recieved by PHP $_POST[] array just as a space. It's like URL decoding is happening on the fly. This happens …

Member Avatar for Dani
1
328
Member Avatar for fistfullofbeer

I am working on a personal project and am trying to figure out if Python 3 or PHP would work better. I prefer Python because I am trying to hone my skills at it and at the same time I really do like its syntax and ease to learn. I …

Member Avatar for TrustyTony
0
165
Member Avatar for devindamenuka

Hi all, I am using codeigniter freamwork. The following is a list of all the native rules that are available to use: required No Returns FALSE if the form element is empty. matches Yes Returns FALSE if the form element does not match the one in the parameter. matches[form_item] is_unique …

Member Avatar for cereal
0
131
Member Avatar for cip6791

Hello, I want to create a favorites option for something I am working on. I have two tables. The main table where the posts are kept called "place". [CODE]+---------+--------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+-------------------+----------------+ | id | int(11) | NO | …

Member Avatar for cip6791
0
90
Member Avatar for Whilliam

I'm using CODEIGNITER framework. My situation is this. I have a list of data. The user selects which record to delete (through checkboxes). I have to do it in ajax because my client doesn't want to see the system refreshing. I've successfully transferred the data through JSON. Now, my problem …

Member Avatar for pritaeas
0
142
Member Avatar for Jay-Kandari

Greetings Forum Members, Let me Introduce myself. Hello I am Jay Kandari From India. I am a Student. I am basically interested in Web Development. Now I have started with PHP. Currently, I am building websites using scratch. Now it's time to jump to Advanced Development. so I started off …

Member Avatar for phorce
1
248
Member Avatar for daniel36
Member Avatar for cereal
0
51
Member Avatar for greenblack

anyone please help me, whats wrong with this code: this is codeigniter, i can't upload file with this code/script: [code=php] class MUpload extends Model{ function MUpload() { parent::Model(); } function upload() { $data = array( 'my_file' => $_POST['userfile'], 'my_user' => $this->authniter->getUsername(), //this is user login name with my library 'authniter' …

Member Avatar for saadi06
0
102
Member Avatar for mwenyenia07

i want to load client details as follows: 1. you enter his/her Identity number in a textbox and press enter. this will call a controller that will do the rest of the stuff. how can you do it using jquery and codeIgniter. show by example.

-2
93
Member Avatar for mwenyenia07

hi i want an idea/code that can call a controller method from a javascript function inside a view. am using codeIgniter 1.7.2. what i wanted to achieve is to load details of a client by entering his account number and press enter key to load the details. hope you will …

Member Avatar for urtrivedi
0
107
Member Avatar for mwenyenia07

can somebody send me a code that can convert the date for the current day into year-month-day only. i don't want inclusion of hours/minutes/seconds stuffs. this will make it easy to tally with MYSQL's y-m-d format. am using codeIgniter 1.7.1 --sorry for my bad english---i speak afrikaan--

Member Avatar for Wraithmanilian
0
87
Member Avatar for mwenyenia07

i downloaded cronjob bootstrapper and edited as shown: #!/usr/bin/php [CODE] <?php /* |-------------------------------------------------------------- | CRON JOB BOOTSTRAPPER |-------------------------------------------------------------- | | By Jonathon Hill (http://jonathonhill.net) | CodeIgniter forum member "compwright" (http://codeigniter.com/forums/member/60942/) | | Created 08/19/2008 | Version 1.2 (last updated 12/25/2008) | | | PURPOSE | ------------------------------------------------------------- | This script is …

Member Avatar for rch1231
0
956
Member Avatar for mwenyenia07

can somebody send me a code that can validate a string of alpha characters and allow space between one string and another. e.g barrack obama. am using codeIgniter and am new to it and all web applications.

Member Avatar for cereal
0
86
Member Avatar for mwenyenia07

in java or vb.net, we have controls like datagrid or listview which makes loading and displaying of large data easy.in this case, there are events like cellDoubleclick which you can use to select data from a particular column and use it as key to select particular data from database for …

Member Avatar for blocblue
0
71
Member Avatar for mwenyenia07

Hi, I have created a web application in php/codeIgniter. when i want to access the same from anothe computer using say 'http://10.11.111.101/pos',it displays a blank page instead of login page. i have developed it using ubuntu 9.04. what can i do to make it accessible local area network ? i …

Member Avatar for ko ko
0
62
Member Avatar for mwenyenia07

i have written an application(login page) using codeigniter 2.02. when i try to load the page, it displays the following message: Fatal error: Class 'Controller' not found in /var/www/Files_Manager/application/controllers/login.php on line 2 this is the script: [CODE]<?php class Login extends Controller { //constructor function login() { parent::Controller(); $this->load->helper('url'); $this->load->helper('form'); $this->load->library('form_validation'); …

Member Avatar for aquilax
0
129
Member Avatar for ronnieaka

i'm gonna be building a website,for my summer training,but then later commercialize to earn a few bucks Main thing is, i want to make it as attractive GUI wise as possible with probably PHP only, and ajax and flash are allowed to get as many marks as possible and it …

Member Avatar for dhruv_arora
0
114
Member Avatar for samsons17

Hi all.. i want to design a structure for a large user base application..and i am using the codeigniter framework.. I wondering here, how could then i separate the data/files from the user such as the pictures, videos and so on from the application files. If i am not mistaken, …

Member Avatar for momo219
0
123
Member Avatar for Ritesh_4

Hello Anyone can recommend me the best php IDEs available which also provide support for frameworks like zend or codeigniter?

Member Avatar for Ritesh_4
0
127

The End.