39,323 Topics

Member Avatar for
Member Avatar for Ritesh_4

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 …

Member Avatar for Ritesh_4
0
111
Member Avatar for sivaindani
Member Avatar for sivaindani
Member Avatar for bops

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 …

Member Avatar for jstfsklh211
0
230
Member Avatar for Khadim_2

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)

Member Avatar for almostbob
0
124
Member Avatar for santunu23

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 …

Member Avatar for santunu23
0
189
Member Avatar for fheppell

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 …

Member Avatar for DJBirdi
0
294
Member Avatar for davy_yg

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 …

Member Avatar for DJBirdi
0
244
Member Avatar for tabia

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()) …

-2
119
Member Avatar for Web_2

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.

Member Avatar for mattster
0
177
Member Avatar for kovacsdev

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 …

0
70
Member Avatar for hanspeare_1

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 …

Member Avatar for RAPIDFIRE0311
0
201
Member Avatar for accra

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...

Member Avatar for accra
0
287
Member Avatar for davy_yg

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 …

Member Avatar for rtrethewey
0
190
Member Avatar for blueguy777

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 …

Member Avatar for almostbob
0
361
Member Avatar for JohnIV

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 …

Member Avatar for veedeoo
0
160
Member Avatar for infoitmanoj

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)

Member Avatar for pritaeas
0
72
Member Avatar for mbarandao

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 =" …

Member Avatar for mbarandao
0
553
Member Avatar for davy_yg

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.

Member Avatar for veedeoo
0
183
Member Avatar for Arrorn

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); …

Member Avatar for anjali.munish.chauhan
0
1K
Member Avatar for Olyboy16

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 …

Member Avatar for rubberman
0
271
Member Avatar for SC7639

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 …

Member Avatar for ziaurehman
0
275
Member Avatar for RonKevinT.Manuela

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 …

Member Avatar for RonKevinT.Manuela
0
130
Member Avatar for u676522226

[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 > …

Member Avatar for mattster
0
96
Member Avatar for mangel.murti

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 …

Member Avatar for Taywin
0
144
Member Avatar for Ehsan_4

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 …

Member Avatar for Ehsan_4
0
2K
Member Avatar for terryds

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..

Member Avatar for Taywin
0
184
Member Avatar for mexabet

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 …

0
113
Member Avatar for Stefce

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 …

Member Avatar for mattster
0
291
Member Avatar for v1shwa

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 …

Member Avatar for pritaeas
0
147

The End.