39,326 Topics
| |
<?php include"header.php"; if(empty($_SESSION['UserName'])){ header("Location: login.php"); exit;} $start=0; $limit=5; $page=''; $tbl_name="menu"; $targetpage = "menu.php"; //your file name (the name of this file) if(isset($_POST['fullname'])){ $term=$_POST['fullname'];} if(isset($_GET['page'])){ $page=$_GET['page']; $start=($page-1)*$limit; } { if(isset($_POST['Submit'])){ $query=mysql_query ("select * from $tbl_name where MenuName like '%$_REQUEST[fullname]%' LIMIT $start, $limit"); $search_num_rows = mysql_num_rows($query); echo "<div class='main'>"; echo"Found " .$search_num_rows. … | |
Write a function that outputs all the words ending in a "s", in a sentence sent to it as a parameter. | |
hi , it's joy i want to learn about error messege in php i mean if we find user already exits on the database then how to display an error messege on same page same page means like displaying another page on the main page like pop up messege.thanks in … | |
Hallo, I am trying to create device setting which includes: microphone, webcam, and speaker check features. Also if possible also being connected to speedtest.net to check internet connection speed. How to do so? Thanks before. | |
[Send email through command prompt](http://adiwazsha.wordpress.com/2008/05/16/kirim-email-lewat-cmd/) Sorry in different language: —-> s.itb.ac.id = intended mail server that we intend to send email —-> 25 = SMTP port This is the syntax that I tried: ---------------------------------------- 220 BLU437-SMTP35.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.92 00.16384 ready at Fri, 15 Aug 2014 03:57:02 … | |
Hello I've created a custom php page for display in WordPress, and the client wants to allow users to be able to save this page from the browser as a pdf file on their desktop. How can I do so, keeping in mind that I do not have access to … | |
How to pass an row from resultset to an array[some index]=$row; | |
Hi all, I have a 3-tier menu system in that there are 3 levels such that each top-level menu item has X mid-level items and each mid-level item has Y bottom-level items. For each top-level item I need to split the mid-level and bottom-level items into 3 columns as equally … | |
Hi, I use SOAP like webservice. It's work nice. Now I want to get pdf file from server. I receive a array ('filename'=>'test.pdf', 'mimetype'=>'pdf/file', 'content'=>'dhjhfjskjfhksjfhsjfhsfhsdfjhsfj') How can I read and print the content o the file. Thanks. Sorry for my bad english :o) | |
hi i am tring to insert one table data to another using checkbox my flow is people check in checkbox and submit checkbox value will be pass in the query and insert data into another table my code is: <form action="form.php" method="post"> <input type="checkbox" name="chk1[]" value="701" /> i am agree … | |
Hey. I have a function that's run every time a user visits a page, to check that they are logged in. Here is the code: function pageProtect($guestonly = false) { if ($guestonly == false && !User::authenticated()) { $alerts = array(); $alerts[] = array('type' => 'warning', 'message' => "You must sign … | |
Hello, I am writing a delete script to delete sql data of an uploaded picture: studentmgt.php if (!empty($_REQUEST['student_id'])) { $student_id = $_REQUEST['student_id']; $result = mysql_query("DELETE FROM student WHERE student_id =".$student_id) or die(mysql_error()); echo $result; $confirmation = !$result ? "Gagal menghapus data." : "Data telah terhapus."; } Just one problem, the … | |
i need help with in my code. i want to email an array. the html code is this <!DOCTYPE html> <html> <head> <title></title> <style> #hidden{ display:none; } </style> <script> function addFields(){ var number = document.getElementById("member").value; if(number>10) { alert("not more than 10 batches"); } else{ var container = document.getElementById("container"); while (container.hasChildNodes()) … | |
Hi i have 10 texboxes, to check the value of each textbox from database wheither it empty(null) or not empty and depending upon value, button is enabled/disabled, if one of them texbox have value (not null/not empty) then button will enable otherwise it disabled. | |
I would like to make a timeline from a SQL query with the help of Google Charts. I have used the foillowing code to create the array, that encode to json. The problem is, that $table contains only the last record on the end of this code, but I have … | |
Hello Daniweb, I have manage to create codes that could upload a image that is purposely to serve as profile picture of a certain student. My problem is how to rename it to aN AUTO COLLATE UNIQUE ID NUMBER so that i can display it specifically to a certain student … | |
Is there any software out there with GUI that i can use to install mysql and phpmyadmin on my vps account? Am new to vps,thx... | |
Hello, I am trying fix this error after adding newfilename for picture upload: studentinfo.php <?php // Check if session is not registered, redirect back to main page. // Put this code in first line of web page. session_start(); if(!isset($_SESSION['username'])) { header("location:index.php"); exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 … | |
program fetching text file contents into array, and storing array variable values into example.csv file. The values are not storing column wise. ----------------- text file content ----------------- THE SAHARA CO-OP CREDIT SOCIETY LTD MUMBAI OVERDUE LIST OF P NO :1 PERSONAL LOAN AS ON 31/08/2014 ---------------------------------------------------------------------------------------------------------------------------------- S.NO A.NO NAME SAN … | |
Now I am trying to include apriori algorithm in my website -shopping cart - and I choose php array and mysql to do that . I think my code gonna be complicated and not as fast as I wish especially in real time , Is there any suggestion or open … | |
i have connect xxamp server remote host ....show this error .....pls help me .... Could not connect: Access denied for user 'root'@'localhost' (using password: NO) | |
Hello all, I am needing some guidance on how to build an array from POST Variables an then insert the data into mysql. Here is what I have M Variable from submitted form $parentid ="7638sds"; $child3_1_name =$_POST['chld3_1_name']; $child3_1_age =$_POST['child3_1_age']; $child3_2_name =$_POST['chld3_2_name']; $child3_2_age =$_POST['child3_2_age']; $child3_3_name =$_POST['chld3_3_name']; $child3_3_age =$_POST['child3_3_age']; $cnt="3"; $childrenContainer =" … | |
Parse error: syntax error, unexpected '$student_id' (T_VARIABLE) in C:\xampp\htdocs\squprime\administrator\admin\studentinfo.php on line 123 studentinfo.php $studentidResult = mysql_query("SELECT student_id FROM student ORDER BY DESC") or die(mysql_error()); $dataid = mysql_fetch_array($studentidResult) $student_id = $dataid['student_id']; line 123: $student_id = $dataid['student_id']; I am still trying to figure out the errors. Anyone knows why? Thanks in advance. | |
I'm working on a site that on the homepage it rips posts off of a certain forum in the forums... That works perfectly. I am now trying to parse bbcode from the posts. [CODE] function BBCode ($string) { global $globals; $search = array(); $replace = array(); $con = mysql_connect($globals['forum']['host'].':'.$globals['forum']['port'],$globals['forum']['user'],$globals['forum']['pass']); mysql_select_db($globals['forum']['db'],$con); … | |
Morning guys, i'v search the internet with the hope of perfecting my knowledge on running the php CLI as a standalone but to no avail. So i just thought of asking the masters here for help on this topic. The question is, is it possible with the slightest chance to … | |
When creating and downloading a CSV from a database call using: putcsv, header and php outstream (php://output). // Output headers header("Content-Type: text/csv; charset=utf8"); header("Content-Disposition: attachment; filename=" . $_REQUEST['filename']); // Create a file pointer to the output stream $output = fopen('php://output', 'w'); // Output the column headings fputcsv($output, $columnNames); // For … | |
Okay so the code is able to generate the files but I have a problem with files that are saved with space...when user clicks on the link it says page not found...example a file with a filename of "research proposal" gives the error Not Found The requested URL /simpleblog/kcfinder/upload/files/ was … | |
[Click Here](http://www.nitixay.1eko.com) <?php function hashFindFile($file) { if($file) { if (file_exists('sessions/'.$file)) { return filemtime('sessions/'.$file); // Return file creation time } return false; } return false; } $access = stripslashes($_GET['access']); $login = stripslashes($_GET['login']); $action = stripslashes($_GET['action']); if($login) { require_once('php/hash.php'); exit; } if($access) { if(hashFindFile($access)) { $expires = time() - hashFindFile($access); if($expires > … | |
i have three table i attached db files with query result i am getting. my query is below select tts.transaction_id,tts.service_type,tt.theme_name from transactions tts inner join users tu on tu.user_id=tts.user_id inner join themes tt where tts.user_id = 71 and tts.service_type in ('purchased','startup_service') group by tts.theme_transaction_id; i am not getting write theme … |
The End.