39,326 Topics

Member Avatar for
Member Avatar for ayeng

Hi, I need help! I want my textbox value to be change using jquery in cakephp during onchange event of my textbox. below is my add.ctp code: <div class="jobs form"> <?php echo $this->Form->create('Job', array('type'=>'file')); ?> <fieldset> <legend><?php echo __('Add Job'); ?></legend> <?php echo $this->Html->script('ckeditor/ckeditor'); date_default_timezone_set('Asia/Manila'); echo $this->Form->input('users_id'); echo $this->Form->input('comp_name', array('label' …

0
133
Member Avatar for Jack_9

In my personal opinion PHP is a great language. I love that it can be written with html and css for style, and database and such quality. But why do PHP deevelopers earn less then other types? PHP helps get the website through sql and helps make it interactive. You …

Member Avatar for veedeoo
0
144
Member Avatar for rjusman90

this code search all data not from current pagination page <html> <body> <div id="content"> <style> .current { padding: 2px 5px 2px 5px; margin: 2px; border: 1px solid #000099; font-weight: bold; background-color: #000099; color: #FFF; } li { display:inline-block } </style> <?php include"connection.php"; $start=0; $limit=5; $id=''; if(isset($_GET['id'])) { $id=$_GET['id']; $start=($id-1)*$limit; } …

Member Avatar for rjusman90
0
328
Member Avatar for ashalatha

Controller: $data['error'] = ''; //initialize image upload error array to empty $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'csv'; $config['max_size'] = '10000'; $this->load->library('upload', $config); // If upload failed, display error if (!$this->upload->do_upload()) { $data['error'] = $this->upload->display_errors(); $data['mainpage']='category'; $data['mode']='addcsv'; $this->load->view('includes/mainpage',$data); //Category Id Category Name Sub-category Id Sub-category Name } else { $file_data = …

Member Avatar for veedeoo
0
280
Member Avatar for samy.youssef.12

whenever i use mysql_connect() It gives Fatal errror of using unidentfied function i'm using mysql version 4 on windows 7, what to do? it looks like php never heard of that function, wonder if someone does have a straight forward solution?

Member Avatar for samy.youssef.12
0
393
Member Avatar for mc3330418

This is a really basic question. I validate evrything from my form in javascript so no validation is going through php. The problem is, when the user submits the form ajax has already checked is the username has already been taken or and gives them a message if it is. …

Member Avatar for almostbob
0
240
Member Avatar for weeon
Member Avatar for nadiam

Hello. I have and event.php page and del_single.php page. event page has a form: <form action='del_single.php' method='get'>//<-i already have the method as get <input type='hidden' name='event_id' value='$id'> <input type='checkbox' name='check[]' class='check' value='$id'> <a href= '#' value='$id' name='e_n' onclick='getsum(".$id.")' >$name</a> <label>$formatDate</label> <input type='submit' name='del_single_event' value='Delete'> </form> as you can see i …

Member Avatar for cereal
0
557
Member Avatar for crdipu

Hi all, I have made a web-service in php. I had run a load test on the same by using testing tool Jmeter. And got the result in as graph, please help me to analyze the graph. It shows 3 important parameters that are 1)Deviation, 2) Median and 3) Average. …

Member Avatar for Dmitri_1
0
304
Member Avatar for Sikander Nasar
Member Avatar for veedeoo
0
443
Member Avatar for nadiam

Hello. right following [this post](http://www.daniweb.com/web-development/php/threads/481499/form-action-is-on-a-different-page) that i posted up just now, i wanted to edit the question but then i couldn't anymore. sorry if that annoys anyone. anyway, i was thinking of putting all the php scripts into one page and googled and found [this on stackoverflow](http://stackoverflow.com/questions/8152260/having-multiple-scripts-within-one-php) and implemented it …

Member Avatar for Daisy_1
0
2K
Member Avatar for ms061210

Hi can anyone give me an idea on how I can come out with an output like this: $string = string1-1/string3-3/string3-3/ //this is the original string from DB //i want to split the strings and put it in the array, and the array should look like this Array[0] = String …

Member Avatar for veedeoo
0
289
Member Avatar for Priti_P

Hello, I want to use spinner while process foreach loop in php. My functing is: I am creting events using google calendar API in php. for each of my array values I am creating event. and after each event create there is one sleep(5). in this foreach loop I want …

Member Avatar for JorgeM
0
217
Member Avatar for daniel36

I have made a code to upload video with the help of w3schools.but It is not working great to upload mp4 video upto 300MB.Can any one provide me solution? or any opensource script to upload file.

Member Avatar for Vignesh_2
0
172
Member Avatar for jaspertan

Hi to all i experience this kind of error when i tried to add the data to database using for each here is my code. $org = Input::get('orgname'); $orgs_date = Input::get('orgsattended'); foreach($org as $o=>$von){ DB::table('orgs')->insert(array( 'personnel_id' => $personnel_id, 'orgs_name' => $von, 'date_attended' => $org_date[$o] ) ); } $skillname = Input::get('skillname'); …

Member Avatar for nadiam
0
210
Member Avatar for everton.retweets

Hi, I am trying to update a simple mysql query using PHP PDO The simple query read $query = mysql_query("SELECT * FROM tbl_name WHERE oauth_provider = 'twitter' AND oauth_uid = ". $user_info->id); My PHP PDO query reads $STM = $dbh->prepare('SELECT * FROM tbl_name WHERE oauth_provider = :op AND oauth_uid = …

Member Avatar for everton.retweets
0
5K
Member Avatar for everton.retweets

Hi Everyone, I am trying to create a twitter login app, I have the app created and I can log into my app, But what I would like to do is create a number of session virables so I can use the information in my app. When a user authenticates …

0
101
Member Avatar for Ouwgel
Member Avatar for almostbob
0
8K
Member Avatar for ms061210

Hi, can someone explain to me why my code is returning wrong output. I want this code, First I have additional UPDATE query for a category 10, if it is not category 10 then it should ignore the update code. It is running correct if I input an item which …

0
117
Member Avatar for jKidz

Hi Friends, Most of our school's old boys are in abroad. So there have no chance to get updated about our school's cricket matches. So I am willing to have a real time cricket scoring system. Do you know any free Cricket Scoring system that can display a scores in …

0
90
Member Avatar for Sikander Nasar

I am facing the problem that the scroll is not moving to the top if any validation error occur.

Member Avatar for DJBirdi
0
130
Member Avatar for SimonIoa

I want to make a search option. this is my statement in php $FILTER AND $ORDER are working perfectly. The statement too. else if (isset($_POST['search_all'])) { $Filter .= " AND M.title LIKE '%" . $_REQUEST['src_all'] . "%'"; $Order = " ORDER BY M.idate DESC"; } and this is the html …

Member Avatar for fobos
0
119
Member Avatar for SimonIoa

Can you tell what do i do wrong? this is the statement if (isset($_POST['search_all'])) { if (empty($_REQUEST['src_all'])) { echo "<p>You forgot to enter a search term</p>"; } elseif (!empty($_REQUEST['src_all'])) { $Filter = " M.message LIKE '%" . $_REQUEST['src_all'] . "%'"; $Order = " ORDER BY M.created DESC"; } } this …

Member Avatar for fobos
0
347
Member Avatar for DarkSlash

I'm working with a MS SQL database that was done by another developer. Im developing a website that interacts with that database. I need to use a stored procedure called LoginR that takes 3 input parameters (LoginName and Passwords) and returns the NickName in the third value. But also, has …

0
126
Member Avatar for berserk

Ok i know this question might be riddled with ignorance but please bare with me. How to i go about deploying my php application i have developed, do i make it into an executable that can be installed on user machines, or do i just set it up like a …

Member Avatar for Jack_9
0
223
Member Avatar for rjusman90
Member Avatar for vizz

I have registered custom TLD like, **.com, .in, .co** I have servers to deal with DNS setting. Now I want to allow people to register their domain under my custom TLD. e.g. abc**.xyz** So I need web registry software to allow registering domains under tld, **`.xyz`** I want to do …

Member Avatar for veedeoo
0
131
Member Avatar for berserk

hey i have this code that always evaluates to true but it should only in the case of there being a value in the database i have selected, maybe im doing this wrong or maybe its something else but i cant seem to figure out the problem :( any assistence …

Member Avatar for berserk
0
359
Member Avatar for hanspeare_1

Hello everyone, I am confused with these little codes why it keeps error in updating the learner information. These are my codes so far. These are the bits of Student_Info.php which i think would be useful in my query. <?php if(!empty($_GET['flag']) && $_GET['flag'] == "success") { ?> <span class="stylered style1"><span …

Member Avatar for hanspeare_1
0
112
Member Avatar for Juliana20

I'm new at this language and I canĀ“t understand this warning: Warning: Cannot modify header information - headers already sent by (output started at /Applications/AMPPS/www/.../users.php:316) in /Applications/AMPPS/www/.../phpgraphlib.php on line 213 I want to show some graphs about temperature, but appears the message above. Here's my code: phpgraphlib.php protected function initialize() …

Member Avatar for rubberman
0
261

The End.