39,316 Topics

Member Avatar for
Member Avatar for saimaz

Hi iam using CI 1.7 and doctrine 1.2 and trying to make some search. But default search with indexes for me is not enough, because search keywoard must exect with indexed word. Is there any chance to make that more flexible where doctrine will detect with similar meanings not the …

0
86
Member Avatar for rajeesh_rsn

Hi friends, In one of my project I had a text box and I want to store its content to database. I blocked mysql injection with "mysql_real_escape_string" command. But I need to add some formating button in that field. ie italics, bold, font size and link field. From a site …

Member Avatar for rajeesh_rsn
0
182
Member Avatar for raffiq_eddy

Dear ajax expert, [URL="http://www.w3schools.com/php/php_ajax_php.asp"]http://www.w3schools.com/php/php_ajax_php.asp[/URL] Refer to the link, using the sample, I'm able to use php ajax to populate 1 text box which I've already pre-define (not using "echo '<input type='text'..") -- the info came from a table e.g. Search: [jo ] Name: [John doe] sql --- select name from …

Member Avatar for raffiq_eddy
0
982
Member Avatar for sayakyi

Dear All, I have a question again with my very old PHP project code(it was very dirty code) :-). It is a simple Dictionary Search program. Currently when the Search Data not found in the mysql database, it just show the blank result. How can i add some String for …

Member Avatar for sayakyi
0
216
Member Avatar for agriz

Hi, I am trying fsockopen in localhost. I am trying to access live server file. I have created two files in live server. 1) Dynamic PHP file which produce XML 2) Static XML file Now, Once the fsockopen connection is success and i am trying to get the dynamic xml …

0
56
Member Avatar for anirban1087

Hi, I have two questions 1. Is it possible to add short cut keys in my php application, show that the user can access different menu items using them? 2. How can I print something directly to a printer without showing them on screen using php?

Member Avatar for diafol
0
86
Member Avatar for anirban1087

Hi, I am having some problem to integrate my PHP & JS codes. The PHP code - [CODE] <?php for($i=1;$i<=3;$i++) { ?> <input type="text" id='rate<?php echo $i; ?>' /> * <input type="text" id='quantity<?php echo $i; ?>' onChange="updateValues(THIS);" /> = <span id='amount<?php echo $i; ?>' style="border: 2px solid black;padding:2px;"></span><br /><br /> …

Member Avatar for anirban1087
0
137
Member Avatar for klemme

Hi everyone! I am new to PHP and aat the moment trying to create a login to an admin area of a website with a simple CMS backend. I have found this code whicj I have tried to look at/learn from and implement into my own website, but I am …

Member Avatar for klemme
0
218
Member Avatar for JANNAT123

Hi i have my php search code,i got result in hte other page i want to see my result in the same page below the search button where i insert the field to submit that query.plz give me as possible as soon.... And i make a search page on this …

Member Avatar for JANNAT123
0
97
Member Avatar for AndreRet

I can validate the captcha successfully, but when I set the button property 'Action' to 'Submit form, the captcha does not work, nor does the validation on username and password. When I set it back to 'None", Captcha works, Data not validated. The code below is quite long, but it …

Member Avatar for AndreRet
0
157
Member Avatar for masterjiraya

this is the whole code where in I got a problem [CODE=php] <?php //get the value of the selected radio value from webpage1.html $n=$_POST['company']; $dbhost="localhost"; $dbuser="root"; $dbpass=""; $dbname; ?> <html><head><title>web page1</title></head><body> <?php // logical selection for $n if($n==1){ echo"You selected Company <font color=red>bhagis portal</font> <br>"; $dbname="bhagis_portal"; } elseif($n==2){ echo"You selected …

Member Avatar for urtrivedi
0
61
Member Avatar for ankit.pandey3

[CODE]<html> <title>Micro Elite Brigade - Registration</title><LINK REL="SHORTCUT ICON" HREF="images/favicon.png"><?php require_once('upper.php'); require_once('database.php'); echo $error_msg=''; if(isset($_POST['submit'])) { $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Password1=mysqli_real_escape_string($dbc,trim($_POST['Password1'])); $Password2=mysqli_real_escape_string($dbc,trim($_POST['Password2'])); $Name=mysqli_real_escape_string($dbc,trim($_POST['Name'])); $Age=mysqli_real_escape_string($dbc,trim($_POST['Age'])); $BloodGroup=mysqli_real_escape_string($dbc,trim($_POST['BloodGroup'])); /*if(!isset($_POST['Sex'])) { echo 'Please enter Sex<br>'; }*/ //else{ $Sex= mysqli_real_escape_string($dbc,trim($_POST['Sex'])); //} $Qualification=mysqli_real_escape_string($dbc,trim($_POST['Qualification'])); $ContactNumber=mysqli_real_escape_string($dbc,trim($_POST['ContactNumber'])); $Email=mysqli_real_escape_string($dbc,trim($_POST['Email'])); $Address=mysqli_real_escape_string($dbc,trim($_POST['Address'])); $AboutYourself=mysqli_real_escape_string($dbc,trim($_POST['AboutYourself'])); //$countCheck=count($_POST['checkbox']); //echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Password1)){echo 'Please enter …

Member Avatar for qazplm114477
0
969
Member Avatar for RMelnikas

I have created a contact form for a website but it doesn't seem to email when I submit a form. here is the form code [CODE] <form action="email_contact.php" method="post"> <input type="text" name="name" value="" placeholder="Your Name"/><br> <input type="text" name="email" value="" placeholder="Your Email"/> <br> <textarea name="projectDetails" placeholder="Your Project Details."></textarea> <br> <button> Submit! …

Member Avatar for qazplm114477
0
233
Member Avatar for oliver10

hi, can you help me how to update record in database? here's my code, i don't know whats wrong in my code. nothing happened every time, I want to update my records. [CODE]<?php mysql_query ("UPDATE from registration SET firstname ='$firstname_x', lastname ='$lastname_x', MI ='$MI_x', address ='$address_x', gender ='$gender_x', age ='$age_x', …

Member Avatar for happytogether
0
76
Member Avatar for Awah Mohamed

hi people. i am building a simple social network for my CAS (i am doing IB diploma) and when i came to the home page where i all the friends statuses are viewd i got a problem here is my home page's code: [CODE] <?php if(!isset($_COOKIE['ln'])) { header("location : index.php"); …

Member Avatar for happytogether
0
256
Member Avatar for katarey

Hi, I have developed a web application using PHP + MySQL on Apache 2.2.17 what should be the recommended server specification application if +10000 users access at same time. I am looking for recommendation on these points Server specifications: Software: • Server Type: Apache/2.0.52 (Red Hat) • Apache 2.2.x • …

Member Avatar for katarey
0
174
Member Avatar for kgizo

hi i'm new to php, i already have a database called msansi its table called provinces i've already created a drop down list of all my nine provinces now what i want to do is, i want the cities associated with the provinces to display on the same page as …

Member Avatar for kgizo
0
140
Member Avatar for newbie14

Dear All, I would like to have a page to store previous employement history. So first I would just have two text both one the company name and the other number of years working there. Beside that I would like to have add button to add more text box for …

0
47
Member Avatar for nelamurugan

Hi, Am new to here, and i cam here with problem that can be easily solved by you guys, Please help me out. I have got sqlite3 db dump as dbname.db3, So then i tried to connect this sqllite from php. Here is my sample code which i got it …

0
84
Member Avatar for newbiecoder

Hello I am trying to write a form that checks user mail address by existence of "@" character. I wrote these codes below but when I enter information at the html file I get this warning: Notice: Use of undefined constant mail - assumed 'mail' in C:\xampp\test\send_simpleform.php on line 2 …

Member Avatar for newbiecoder
0
144
Member Avatar for vijiglad

[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Validate Image</TITLE> <META NAME="Author" CONTENT="Bit Repository"> <META NAME="Keywords" CONTENT="validate, extensions, file, javascript"> <META NAME="Description" CONTENT="A JavaScript Extension Validator for Images"> <SCRIPT LANGUAGE="JavaScript"> <!-- function validate() { var extensions = new Array("jpg","jpeg","gif","png","bmp"); var image_file = document.form.image_file.value; var image_length = document.form.image_file.value.length; var pos …

Member Avatar for vijiglad
-1
2K
Member Avatar for oree

my problem is when i compose an email in html i get mail@127.0.0.1 as a sender. if i take off the HTML format then everything is ok. Here is the headers: [CODE]$headers = " From: mywebsite.ca" . "\n" . "Replay-To: Do Not Replay". "\n" . "X-Mailer: PHP/" . phpversion(); $headers …

Member Avatar for oree
0
149
Member Avatar for ruchit

Warning: filesize() [function.filesize]: stat failed for 1.jpg wht is wrong wth this code for($index=0; $index < $indexCount; $index++) { if (substr("$dirArray[$index]", 0, 1) != "."){ // don't list hidden files print("<tr><td><a href='./pics/$dirArray[$index]'>$dirArray[$index]</a></td>"); print("<td>"); print(findexts($dirArray[$index])); print("</td>"); print("<td>"); print(filesize($dirArray[$index])); print("</td>"); print("</tr>\n"); } }

Member Avatar for smantscheff
0
73
Member Avatar for Akay2

I need some help. I want to make a secure loginsystem and here is my script for the system that checks how many times you tried to login ($try). db.php is the script for connecting with my database. The system isn't in connecton with the loginsystem it is only the …

Member Avatar for Akay2
0
98
Member Avatar for tcollins412

i am using the following code to submit a form: [CODE] <script> function marktaskcomplete(){ document.forms["markcomplete"].submit(); } </script> <? if ($_POST['markcompletevalue']=='yes'){ include "dbconnect.php"; $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } mysql_close; } ?> [/CODE] and when i try to submit more …

Member Avatar for tcollins412
0
241
Member Avatar for raghujosh

I want to pass the checkbox values from my form to another PHP file upon clicking the next hyperlink. But I am unable to do so. I have javascript in my form which checks that only one checkbox is selected. To use this javascript, I need to name all my …

Member Avatar for raghujosh
0
1K
Member Avatar for gazzy1

i want to create a login page in php that use the login id and password from my mysql database table as i want the user id 001 and password 001 go to the page 01.php after successful login. and user id 002 and password 002 go to the 02.php …

Member Avatar for smantscheff
0
84
Member Avatar for BleepyE

I have a list of say 15 images. How can I make it so that in each page refresh they all change to a random position? Thanks

Member Avatar for BleepyE
0
121
Member Avatar for wali mohammad
Member Avatar for jakizak
-3
188
Member Avatar for xxreenaxx1

I have created a checkbox using while loop and posting this to another page but I am not sure on how to add these ticked check box as 1 and non ticked one as 0 to the database. Can someone help me? <form action="Test_Completed.php" method="post"> include '../Database/take_an_exam.php'; $intNumber = 1; …

Member Avatar for qazplm114477
0
409

The End.