39,326 Topics
| |
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' … | |
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 … | |
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; } … | |
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 = … | |
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? | |
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. … | |
help me..view direction and marker on database mysql? | |
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 … | |
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. … | |
I want to make a payment method for bank transfer using php. | |
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 … | |
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 … | |
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 … | |
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. | |
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'); … | |
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 = … | |
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 … | |
<p>How to show pdf file in web page? ex: www.scribd.com</p> | |
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 … | |
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 … | |
I am facing the problem that the scroll is not moving to the top if any validation error occur. | |
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 … | |
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 … | |
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 … | |
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 … | |
please help me out by giving a very easy code | |
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 … | |
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 … | |
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 … | |
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() … |
The End.