39,393 Topics
![]() | |
hya all i am getting the error in pic included in this post and i dont know what i could be i have found the following bit of code included below <tr> <td><?php echo date_diff($lastlogin['lastlogin']);?></td> </tr> then i have found the file where the coding for this sits see below … | |
<?php if (isset($_POST['user_id'])) { // Not logged in :( setcookie("secondcookie[id]",$_POST['user_id'], time() * 7200, "/"); // Expiring after 2 hours setcookie("secondcookie[password]", $_POST['user_pass'], time() * 7200, "/"); //when to see if cookies is set or not echo $_COOKIE["secondcookie"]["id"]; //header("Location:verification_data.php"); } if (isset($_COOKIE['secondcookie']['id'])){ // Already Logged in go to page 3 header("Location:page3.php"); } … | |
Hi Guys Please have a look at my model and then read below public function get_events(){ $query = $this->db->get('events',1, 1); return $query->result_array(); Okay so when i run the page i only get my message that no entry's are in the table! So when i insert a entry it displays the … | |
![]() | here is my code i want that what ever value is checked that value is inserted into database i have created database with name doctor table name diseases with 3 field id dis_name and Ans plz help its urgent <?php error_reporting(E_ALL); ini_set('display_errors', 1); require 'db.php'; if ( !empty($_POST)) { // … |
Index.php <html> <head><title>Registration</title> <script type="text/javascript"> function numbersonly(e,length){ var unicode=e.charCode? e.charCode : e.keyCode var maxlength=length; if (unicode!=8){ //if the key isn't the backspace key (which we should allow) if (unicode<48||unicode>57) //if not a number return false //disable key press } } </script> <script type="text/javascript"> function validation() { var a = document.form.phone.value; … | |
ALTERNATIVE CODE <?php // Update present values if (isset($_POST['submit'])) { // Get a list of student ids to check $idsResult = mysql_query("SELECT student_id from students"); $presentIds = array(); $absentIds = array(); while($idRow = mysql_fetch_array($idsResult)) { // If the student's checkbox is checked, add it to the presentIds array. if(isset($_POST['present'.$idRow['student_id']])) { … | |
I got a script that convert convert my php string (combination of customized image & text) to image, zip it & popup for download with the scripts $format=$_REQUEST['format']; $viewArr = $_SESSION['productArr']; //the images in array $outputarr = $_SESSION['outputArr']; $pngoutarr = $_SESSION['pngOutputArr']; $downloadable = 1; if($format=='png'){ require_once 'png_output.php'; $downPath = genpng($pngoutarr,$downloadable); … | |
Hi friends, In one of my project I want to convert tiff files to png/jpg using php for making a film strip. So if there is any way for doing that .... Please help me thanks in advance Rajeesh | |
Dear friends, I developin a webside in php where clients can send their enquiry of material.I have text boxs which clients will fill when click add button this enquiry will goto down table on a same page.. Please give me idea.?? | |
Hello, I am trying to create a delete button when you press the delete button it takes to a list of codes to delete the row. input_image.php <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; //echo "<tr bgcolor='$result2'>"; //echo '<td>'.$data['page'].'</td>'; //echo "<td><a href='post.php?post_id=".$data['post_ID']."'><img src='../images/post.jpg'></a></td>"; //echo '</tr>'; echo "<tr bgcolor='$result2'>"; echo '<td><a … | |
For one order XYZ can be a buyer and for different order XYZ will be a seller. how to assign buyer and seller responsibilities to users per order basis. give me some example of table structure. thanks in advance | |
Hi, Though I have a table name , it shows error like, the table name does not exist. What will be the problem? ![]() | |
I have a custom php function for my multiple upload function. I cannot figure out how to make it so when I insert the file name to the database that it matches the row id, of that insert. How can I make it so. When I create a new banner … | |
Hi Everyone, I am trying to generate an error message in php. I have two drop down boxes on a website I am helping with, One for product, One for Size. Product is either shoes or hand bags. Size is a drop down that has different shoe and handbag sizes, … | |
hya i have purchased a script package for my site and im having problems with the photos upload page i can upload a photo but when i go to save it im told to make a selection i cant make the selection as there is nothing to select and ive … | |
Hi i have created a events script for my members to post there planned event all is working there but i want it where all members will see the events that other members have submitted in a list style like My list of events : Type: Meet at your place … | |
Hello i have a problem with my website. It is running slow. I asked the my server provider why is that, and they replied its because the webiste uses many embedded urls like youtube, vimeo, dailymotion and so on. And so i have to cache these embedded urls. I tried … | |
![]() | [Click Here](http://www.drmanoj.com/articlesdisplay.php) this is type of website i have to work upon there should be list of diseases and clicking upon differnt diseases treatment can be done i have doubt for different disases differnt question are asked with check boxes i want to know how can be this achieved should … |
I use codeigniter 2+ for my frame work I am having issue with my multple file upload that are in array. I is not picking up the number with in the array. Example: name="banner_image[auto_generated_number]['image']" how to make a foreach work with the banner_image[auto_generated_number]['image'] Currently my code is public function do_upload() … | |
while updating an user profile , if I update a new image ,it updates the new image and displays it. If I update other fields without updating image field , it updates others, but it does not showing the image. How to display it? | |
i have two tables. in 2nd table i assigned the 1st table primary key as foreign key. i have two options edit and delete. i can't delete foreign key value and also primary key value in 2nd table. | |
what is the error in my two queries ?? $sql="select secretQ,secretA from users where email = '".$email."' "; $out .= "<PassResetQ secretQ='".$row->secretQ."' secretA='".$row->secretA."' />"; | |
<Root> ... <A CHANGE_THIS="Dont_ChengeME"> <B></B> </A> ... </Root> trying to change the attribute name of element A to something of my choice, using php's simpleXML API. here's what i've done: $xml = simplexml_import_dom($xmldom); $query = "root/A[@]"; $result = $xml->xpath($query); if(!empty($result)) $result['CHANGE_THIS'] = "Blalalalal"; //i believe this is where am doing … ![]() | |
I want to read pdf file and store only contents of pdf file as it is into mysql database. Can anybody help ? please ...... Thanks. ![]() | |
Hi all, Im starting to use composer, and have installed a few packages - This thread is about illuminate/database component. Im clearly misunderstanding something about how i can use the autoloader. I have the following directory structure: -app -assets -vendor index.php [Request goes to index.php] - This file includes composers … | |
Hi than, Just wanted your help. I have been stuck on a place. I just want to create a script that can echo "next" and "previous" or both based on total number of content. I have parameter in url like : mysite.com/index.php?start=8 (page 1) mysite.com/index.php?start=16 (page 2) mysite.com/index.php?start=24 (page 3) … | |
Hi i have 2 errors on some software i brought for inbox can anyone tell me whats wrong with the code below to cause the errors any help would be much appreicated ty jan Warning: implode() [function.implode]: Invalid arguments passed in /home/letsswin/public_html/inbox.php on line 198 Warning: mysql_fetch_array() expects parameter 1 … | |
hello! Being a newbie (70 years young) I an trying to complete this php code so my search-form with a multichoice-checkbox may return a selected response on a webpage from mysql 5.4 database. So far I have this query that is working BUT returning ALL members from the DTB regardless … |
The End.