39,316 Topics

Member Avatar for
Member Avatar for Phaelax

I have a simple contact form for a restaurant that's then emailed when submitted. What are some things I can do to ensure the form isn't abused? Such as a user sending multiple emails over and over, or it being hijacked to send spam elsewhere. Here's the php script: <? …

Member Avatar for Atli
0
502
Member Avatar for hemanshurpatel

Hi I have a mysql table in which 3 columns are of main interest. I want to final output like, if two columns matches(of different rows) then third columns should be sum of two columns. Example column1 column2 column3 abc hiren 5 bcd host 10 cde ketan 13 abc hiren …

Member Avatar for hemanshurpatel
0
133
Member Avatar for Priti_P

I have an application (Developed in DRUPAL -> php) Here my problem is , I want to terminate the session of application as you close the browser. How to do this? because PHP sessions work exactly like ordinary cookies! The server doesn't know which instance is being using. So I …

Member Avatar for almostbob
0
148
Member Avatar for PriteshP23

I would like to get Type, Id and Height values in database table. It is not working. There is no error message. Objective is to get RESPECTIVE "Type" from Catalaog which has same Reference from Installed. Well, I have 850 Mb XML file and i just would like to present …

Member Avatar for PriteshP23
0
270
Member Avatar for atiqur_29

im very newbie in both php and ajax & i was trying to create a form where if i insert the contact id then the rest of the form field will automatically filled by retriving data from database. to get help from a tuitorial, this what i already done but …

Member Avatar for minitauros
0
2K
Member Avatar for devianleong

Hi, how can I group sessions value? Example I have session 1,2,2,3,3,3,4 .Now I want to get sessions 1,2,3,4 only

Member Avatar for devianleong
0
154
Member Avatar for thuku

Hi, I have a wordpress site, which has 2 back ends for the admin to administer content. -The wordpress admin login -a php content management software. My question is, how can I add this php cms to a wordpress dashboard? What options are available and how can I do it.

Member Avatar for thuku
0
186
Member Avatar for dean.ong.14

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\registration\r­egistration.php on line 66 i already tried mysqli_error() and does not fix this problem <html> <head> <title>Registration Form</title> </head> <body> <form method='post' action='registration.php'> <table width='400' border='5' align='center'> <tr> <td><h1>Registration Form</h1></td> </tr> <tr> <td>User Name:</td> <td><input type='text' name='name'/></td> </tr> <tr> …

Member Avatar for dean.ong.14
0
1K
Member Avatar for Sanjay_6

Hi guys... I want to install xdebug for profiling and debugging php application. But something i miss so that phpinfo file not shows xdebug.some basic info about my php confihuration PHP Version 5.4.7 Apache 2.4 what steps i have followed: i have download latest version of `xdebug.dll` and move this …

Member Avatar for Sanjay_6
0
309
Member Avatar for aVar++

I have two files this is the file included: <?php if (@mysql_connect("localhost","****", "**************") || @mysql_select_db("a_database")) { echo "Connected"; } else { die("Not connected."); } ?> Then this is the main file: <?php require "connect.inc.php"; $query = "SELECT `food`, `calories` FROM `food` ORDER BY `id`"; if ($query_run = mysql_query($query)) { echo …

Member Avatar for cereal
0
191
Member Avatar for satbir4

Hi all, I have more than 50 pages in a site. suppose, in every page i want to write "ABC" and edit every some days. Please anybody tell me the code how i can call ajax file in php. And complete code for both files.

Member Avatar for almostbob
1
291
Member Avatar for best4earn

1 . How to make a captcha code unhack able ? I have make a captcha with numeric & alphabits in 4 digits , if i use captcha in signup & login form than how much chances to hack web ? I already used md5 hash and salt in my …

Member Avatar for jkon
0
151
Member Avatar for best4earn

i want to add some restriction to my form . i want to generate a code my self , with out putting that code form can't be submited successful . Give me some ideas to take step , how to build a script such like that

Member Avatar for best4earn
0
76
Member Avatar for VNexus

Hi everyone, I really haven’t found much that would be fitting in a half decent or secure way on this issue, but... Let’s say I have a website called mysupportsystem.com and I've incorporated a third party cloud based ticketing system which is fed into the index page via iframe at …

Member Avatar for VNexus
0
500
Member Avatar for Raju_3

Hello sir iam trying to upload the image in database..this is my code <html> <head> <body> <form action="" method="POST" enctype="multipart/form-data"> <input type="file" name="image" accept="image/jpeg"> <input type="Submit" name="submit"/> </form> <?php if(isset($_POST['submit'])) //connecting to database $db = mysql_connect("localhost:3306","root","") or die(mysql_error()); //selecting our database $db_select = mysql_select_db("tutorial",$db) or die(mysql_error()); $imageName = mysql_real_escape_string($_FILES["image"]["name"]); $imageData …

Member Avatar for Raju_3
0
1K
Member Avatar for ozstylo

Hi fellows i want to know how can i update all products once by using sql querry in opencart

Member Avatar for pritaeas
0
124
Member Avatar for best4earn

Notice: Undefined index: uname in E:\xampp\htdocs\test.php on line 4 . This error accourd Data Base CREATE DATABASE IF NOT EXISTS `cms_project` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `cms_project`; -- -------------------------------------------------------- -- -- Table structure for table `user_info` -- CREATE TABLE IF NOT EXISTS `user_info` ( `id` int(10) NOT NULL …

Member Avatar for iamthwee
0
181
Member Avatar for crag0

I am new to both html and php and I am trying to create a form that you have one text box with buttons that allow you to search for the item in the text box in the last 24, 48,72 hours. One the html side of things my form …

Member Avatar for JorgeM
0
192
Member Avatar for best4earn

I have created my binary tree as , It Shows in List Perfectly but i want to show in Genealogy , how can we do this ..I have Pasted My Total Nodes Script Here with HTML & java script for making tables & draw lines btwn nodes . When I …

Member Avatar for best4earn
1
3K
Member Avatar for duna44
Member Avatar for renierdbruyn

Hi there.... I need help with a regex, I need a regex to check if the qualification types are valid, e.g. Bachelor's degree, Honours degree, National Diploma, B.Tech(BACHELOR OF TECHNOLOGY), etc... I have to check if the user's qualification matches the reqiured qualification. I have: if($user_qualification == $required_qualification){ //do something …

Member Avatar for pritaeas
0
443
Member Avatar for divyakrishnan

Hi..I have a problem on database insertion:( How to prevent duplicate record insertion on database while refreshing a webpage? I had tried the following code,but it also resubmitting the form data. [CODE] if(isset($_REQUEST['add_cat'])) { //code for db insertion } [/CODE] Thanks in advance

Member Avatar for Szabi Zsoldos
0
775
Member Avatar for nigelhow

The query is return an empty value on the frist row which means that the supposed value in the first row is in the second row , etc etc . How do i correct this? $query1 = "SELECT * FROM opentrades"; //You don't need a ; like you do in …

Member Avatar for stevie.whalen
0
193
Member Avatar for satbir4

case 'forward': $id = $_REQUEST['id']; $con = mysql_connect('localhost', 'root', '') or die("error in mysql connect"); mysql_select_db('database', $con) or die ("error in select db"); if ($con) { $query = "select * from signup1"; $runQuery = mysql_query($query, $con) or die("abc"); while ($abc = mysql_fetch_assoc($runQuery)); { echo "<div>$abc[ID] $id</div>"; } } break; ------------------------------------------------------------------------ …

Member Avatar for kaustavbanerjee
0
196
Member Avatar for nigelhow

Okay i have 2 variable named bid price and offer price . I need to fill in the values into the variables through cases. For each row of data ,i want to retrieve the rates for the currency pairs (eg. eur/usd,audusd) . I have 2 values for each currency for …

Member Avatar for broj1
0
236
Member Avatar for Rachael_1

I am trying to allow my users to update their own profile info. Yet, the query is empty(Nothing recorded into the database though it states "Your profile has been updated!") What did I do wrongly? **userlist.php is where my list of users are displayed** <?php include ('connect.php') ?> <!DOCTYPE html …

Member Avatar for glycerine
0
294
Member Avatar for asaidi

Hi i m trying to save a file pdf to a location : xampp\htdocs\cake\app\webroot\files or any where in my pc i have this code... public function upolad() { $filename = ''; if ($this->request->is('post')) { // checks for the post values $uploadData = $this->data['Pod']['pod']; if ( $uploadData['size'] == 0 || $uploadData['error'] …

Member Avatar for cereal
0
220
Member Avatar for websponge

I have the below code that grabs all the data I need, but as there are duplicate names in each row, I only want to display this once as a heading, and then display the array. <?php echo "<h1>Results Summary</h1>"; //TABLE RESULTS $psba = $_POST['psba']; $con = mysql_connect("localhost","root",""); mysql_select_db('project', $con) …

Member Avatar for minitauros
0
179
Member Avatar for aVar++

My teacher needs to be able to view my databases in PHPMyAdmin however I am running on local host. How could I make it so he can connect to my localhost on another computer?

Member Avatar for broj1
0
277
Member Avatar for vicky one

Hello every one i am seeking a user of joomla to help me a little. During joomla webinstaller database mssql is not connected it gives number error, now what to do??? Why mssql is not connected m using xammp server...

Member Avatar for BadManSam
0
70

The End.