459 Topics

Member Avatar for
Member Avatar for McLaren

Hi, I have one simple problem. PHP (CodeIgniter) code: [CODE=php] $query = $this->db->where('filename',$filename)->select('valid_until')->get('jos_reklama_banners'); $row = $query->row(); $valid_until = $row->valid_until; if($valid_until > time()) { $sql = "UPDATE `jos_reklama_banners` SET valid_until = valid_until + ? WHERE `id` = ?"; $query = $this->db->query($sql, array($days*86400 ,$filename)); //viena diena 86400 sekundziu //echo 'daugiau'; } else …

Member Avatar for McLaren
0
157
Member Avatar for saimaz

Hi iam using CI 1.7 and doctrine 1.2 and trying to make some search. But default search with indexes for me is not enough, because search keywoard must exect with indexed word. Is there any chance to make that more flexible where doctrine will detect with similar meanings not the …

0
86
Member Avatar for kgizo

hi i'm new to php, i already have a database called msansi its table called provinces i've already created a drop down list of all my nine provinces now what i want to do is, i want the cities associated with the provinces to display on the same page as …

Member Avatar for kgizo
0
136
Member Avatar for mizzievie

I have the fields of three. There are Criteria, Line, and Customer. I use CodeIgniter as my php framework. In this case, if I want to choose Line fields (dropdown), I have to choose Criteria first, the line fields is disabled until I have criteria choosen. The same thing as …

0
80
Member Avatar for IWDesigns

hi guys i have a problem with php and sql my website is made in codeigniter and i have a transaction page which works perfectly...i also have a cp screen that shows the "last transaction" the transactions log deposits/transfer/withdrawels and if someone purchases a package whereas the transaction page works …

Member Avatar for Javvy
0
60
Member Avatar for McLaren

Have no idea how such simple thing can not work :( [CODE]<form action = "<?php echo base_url()?>admin_/groups/preview" target = ""> <strong>Pavadinimas: </strong><br> <input type="text" name="title" /><br><br> <strong>Tekstas: </strong><br> <textarea name = "text" cols = "90" rows = "90"></textarea><br> <input class = "save" type="button" name="submit" value = "Išsaugoti"/> <input class = …

Member Avatar for McLaren
0
263
Member Avatar for mohangade118

Hello frndz, I want to handle the database error coming on insert query when duplicate entry going for unique key.(I am using mvc frame work in php) Please Help me......

Member Avatar for paulrajj
0
96
Member Avatar for McLaren

[CODE] function function1() { //nereik php validation, nes adminas formos net nepasieks jei js isjungtas $data = array( 'name' => $this->input->post('album_name') ); $query = $this->db->insert('album_name',$data); $id = $this->db->insert_id(); $success = mkdir('./uploads/gallery/'.$id); //albumo folderio vardas bus id $success2 = mkdir('./uploads/gallery/'.$id.'/thumbs'); //mazi paveiksliukai if(!$success || !$success2) echo 'fail'; else echo $id; } …

0
70
Member Avatar for sunny124

Hi, I'm trying to insert data into array after I retrieve it from database but I keep getting this error message: 'Fatal error: Cannot use object of type stdClass as array in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DeliciousCupcakes\system\application\models\cupcake.php on line 22' Please help me. The framework I'm using is codeigniter. DefaultDirectory.php file …

Member Avatar for sunny124
0
256
Member Avatar for JayGeePee

When a member signs up there asked to enter an email and verify. When they click the verification link in there email there taken to step 2 which is where they enter there info. In the info page I have an privacy policy link, which displays this way. [CODE]<h3><span class="underLine"> …

Member Avatar for @developer
0
134
Member Avatar for nishantp1

Hello, For the project I am currently working on, I have to display user's schedule from Monday to Sunday. My database design is as follows: [CODE]course(id(PK), course_no, credits, title, description) section(id(PK),section_no,course_id(FK),instructor_id(FK)) timeslot(id(PK),day,start_time,end_time) section_times(section_id(PK,FK),timeslot_id(PK,FK))[/CODE] Course has many sections. Sections has many time slots at which they are taught. A section is …

0
67
Member Avatar for Roymj

Can anyone help me with an ajax script that automatically takes values from a drop down menu and pass it onto another drop down menu.? Both drop down boxes are dynamic.It would be helpful if someone can share a link to a working model of the above. I am using …

0
81
Member Avatar for asifsomy

Well I have a lot of confusions about wordpress. And I unfortunately could not find a satisfactory answer to my questions. So expecting a detailed answer. To what extent we can customize a wordpress website? for what kind of projects we should use wordpress. Can we create a database oriented …

Member Avatar for nonshatter
0
125
Member Avatar for crazyboy

Hi ... Friends ... I have to develop one project in php for my project work. Our college has said that we have to use any one framework of php to develop our project. I am going to develop forum. Which frame will suits best for my development. I dont …

Member Avatar for aquilax
0
91
Member Avatar for cadtel

Hi all, I've been watching Jefferey Way's excelent video series on Codeigniter, and while I was trying to follow along, there was a bug that I couldn't fix. When I placed an anchor tag: [CODE=php]anchor('login/signup','Create Account');[/CODE] and clicked on it, this was the url generated: [url]http://localhost/ci/index.php/login/localhost/ci/index.php/login/signup[/url] instead of: [url]http://localhost/ci/index.php/login/signup[/url] The …

Member Avatar for aquilax
0
76
Member Avatar for deepakrajpal

hiii friends... i m gonna work on modeling ajency based website project. major requirements are: user registration with authentication, their uploads, galleries and ofcource a great search options such as age wise, sex wise. plz tell me what will be the best framework (or cms) i should use. according to …

Member Avatar for mschroeder
0
134
Member Avatar for ranganaMIT

hi guys, I'm doing a simple system using codeigniter i need to implement search using jquery ajax in it, this is my fist coding experience in codeigniter and jquery, so i need a good source to learn about it, please suggest me good study material for studying it? regards, Rangana

Member Avatar for ranganaMIT
0
244
Member Avatar for nertos

Hi, how can I get "2" with Url using CI, I try $this->uri->segment() but it doesn't work. [code] http://127.0.0.1/~nertos/index.php/website/search?search=abc+xyz/2 [/code] Any ideas?

Member Avatar for sourcebits
0
60
Member Avatar for Designer_101

Hi, Im just starting to use the codeIgniter framework and Im developing a blog application. However I need a textarea where the user can change text to bold or change the colour just by selecting it and clicking a button above the area. Much like the daniweb reply form but …

Member Avatar for raju_boini525
0
925
Member Avatar for BrianDickson

Hi all, I'm after the opinion from experienced website devs. I want to build a website provides articles, of which some are restricted to subscribers. I will want to give users the ability to comment and rate articles. So I will need the following functionality: [LIST=1] [*]authentication [*]forms [*]user profile …

Member Avatar for BrianDickson
0
142
Member Avatar for BrianDickson

Hi all I'm starting to learn more about PHP5/OOP and the CodeIgniter framework. Most frameworks seem to have form classes and form helpers. What are the benefits of using these over straight HTML? I take it there is a reason for getting the server to process code as an [B]additional …

Member Avatar for Stefano Mtangoo
0
108
Member Avatar for shms

Hi, I want to integrate the dhtmlxScheduler calender with the codeigniter framework. but i am not sure how to connect with the model instead of the db directly and also, how to manage the interaction between the controller, the model and interface thanks,

0
75
Member Avatar for danielkull

Hi, I am in a process of selecting a PHP framework which we will use for development of websites. we are almost ready to go with CodeIgniter an/or Zend. However, in our newest project we need a functionality which allows to upload text (with styles) from Word Document to database, …

Member Avatar for martin5211
0
125
Member Avatar for Jayakrishnan_gk

I have 3 tables. Locations, Units and phases. Each location can have multiple units and each unit will have multiple phases. Hence my database structure consists of foreign key associations as follows. 'Units.location_id' references 'Locations.id' 'Phases.unit_id' references 'Units.id' When I delete a Location, all associated Phases of the Location and …

Member Avatar for vee_liang
0
128
Member Avatar for zhinokin

is this code what im doing is correct..? im using codeigniter framework of this one…engine use is iNNodb [code=php] db->simple_query('SET AUTOCOMMIT=0'); $lockquery = "LOCK TABLE costumer_prof WRITE"; $db->insert('costumer_prof',$valueAdded); if($db->trans_status() === FALSE) //is this ok to used trans_status without trans_start or trans_begin..? { $db->trans_rollback() return 1; } else { $db->trans_commit(); return …

Member Avatar for JRM
0
93
Member Avatar for veledrom

Hi, Which one do you prefer CakePHP, Symfony, Zend Framework, CodeIgniter ? I need to decide on one to go for. Thanks

Member Avatar for veledrom
0
76
Member Avatar for borntowin_786

Hello friends, I am a new babie to codeigniter. I am working on a maintenace task.And I am getting the error as frontend_make_url_name this function not found. Can anybody is there to help me? For helping I am pasting my code below. [CODE] <?php class User extends Controller { var …

Member Avatar for vaultdweller123
0
150
Member Avatar for borntowin_786

Helllo freinds, I am a new babie to codeigniter.On admin side i m getting an error that is after login a black page get displayed.I am not getting what is exactly problem is.So I am pasting my code below. please if possible help me. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

0
115
Member Avatar for jino

Hi all, I am using codeigniter. I want to generate dynamically the contents of the textarea of the tinyMce. Is there any plugin for generating the content something like smarty. Thanks in advance. Jino

Member Avatar for jino
0
106
Member Avatar for JRSofty

So I decided that I would describe my attempts at developing my own Rapid Development Framework, here on DaniWeb since they are so nice to give people free blog space. So many of you are probably asking, "What exactly is a Rapid Development Framework?" A Rapid Development Framework (I'll just …

0
97

The End.