39,326 Topics

Member Avatar for
Member Avatar for rjusman90

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

Member Avatar for diafol
0
187
Member Avatar for nikunjgupta01

Write a function that outputs all the words ending in a "s", in a sentence sent to it as a parameter.

Member Avatar for diafol
0
138
Member Avatar for santunu23

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 …

Member Avatar for peeyush.budhia
0
92
Member Avatar for davy_yg

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.

Member Avatar for cereal
0
163
Member Avatar for davy_yg

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

Member Avatar for pritaeas
0
218
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
295
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
202
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
290
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
191
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
362
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
161
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
554
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
184
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
272
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
131
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
146

The End.