39,320 Topics
| |
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 … | |
i have two postcodes entered by user. i format them validate and check if they do exist then i get postcode1's postal city name from mysql server. i have two districts both arrays one called innerLondon array and the second outterlondon array i fetch postal city name with my script … | |
Please tell me the best way to hash password in CMS.. I've seen Crackstation's hashing : https://crackstation.net/hashing-security.htm And phpass : http://www.openwall.com/phpass/ Please tell me which one is the best or tell me if there is another good hash method for password.. | |
I have a user registration script that includes image upload. Everything works, but each time a user registers, the image he/she uploads replaces the image (userimage) of every other user. What I need is to only update the userimage of that user based on ID. Any help would be much … | |
Hey everyone i have a little problem with the navigation bar, i have created the design of the menu but i want to be in one file (menu.html) and to show on all pages in the website... here is my code for `menu.html` <html> <body> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <style> form.position-and-style … | |
Hi, I'm trying test some WSDL url and got the same error as mentioned [here](http://stackoverflow.com/questions/14384515/). As I've no prior knowledge with WSDL, after doing some search, I found that this is because the location url in the `soap:address` tag is not reachable. Am I correct? Is this a possibilty to … | |
Hi all, it's been awhile... my prob. I have a form to order drinks in a bar, as below. <div class="col_left"> <h2> Order Your Drinks And Food</h2><br /> <form action="process.php" method="post" name="orders"> <table border="1" class="trapezi"> <tr> <th>Drink</th><th>Qty</th> </tr> <tr> <td><input type="checkbox" name="drink[]" value="p/c">Carlsberg 50cl</td> <td><input type="text" name="drinkno[]" size="2"></td> </tr> <tr> … | |
hi in my project i am almost done for deployment but i am afraid about ppl who disabled cookies in there browser, what should i do if they disable cookies how we get there data(i mean user) i am think about if they disable cookies we use session function for … | |
when i try to call my joomla with localhost i get this: [b]Error displaying the error page: Application Instantiation Error[/b] my db name, my user and pass are correct, i dont see any problem in configuration page, they r correct |
The End.