39,323 Topics

Member Avatar for
Member Avatar for drewpark88

Hey Guys, I have downloaded the [url]http://www.swis.nl/ga/[/url] google analytics class and it is working just fine. It shows a graph of things like pageviews and visitors in a graph per day. What I want is just a solid number like: Visitors Last 30 days: 1,2043 | Visitors This Month: 1,434 …

Member Avatar for pritaeas
0
104
Member Avatar for d3rck

Hi everyone, I strongly believe that this topic will not just help me but everyone else using php. My question is how to manually change the settings where in the storage of the sessions is set to the database tables that we will create in the phpmyadmin (mysql)? I have …

Member Avatar for d3rck
0
108
Member Avatar for william604

Hi im new to php, so can some body help me out with this code? "Parse error: syntax error, unexpected $end in E:\EasyPHP-5.3.2i\www\Survey\register.php on line 79" [CODE]<html> <?php if (isset($_POST['button'])) { if ($button) { // get data $username = $_POST['username']; $password = $_POST['password']; $retypepassword = $_POST['password']; $email = $_POST['email']; if($username …

Member Avatar for diafol
0
198
Member Avatar for nyler01

Hi Guys. Please help me.. I am familiar in passing form values to another page using submit button.. But what i need now is to pass the values of the form using the href link. please help me. thanks a lot. <form name="pass" action="validate.php" method="post"> <input type="text" name="Form1"> <a href"revalidate.php">revalidate</a> …

Member Avatar for Shanti C
0
820
Member Avatar for luweegee

i have a forum wherein a user can create a topic,delete and edit a topic. and i have a admin panel that can delete a topic,edit and locked a topic or closed. I'm done in delete,edit and create what I'm looking for is how can i lock the topic if …

Member Avatar for floatingDivs
0
104
Member Avatar for systray

Hello, I want to ask how to retrieve the value of javascript variable in PHP, like this: [code]<script type="text/javascript"> var data = "12345"; </script> <?php $phpVar = $data; ?>[/code] thanks

Member Avatar for happytogether
0
155
Member Avatar for yellowfeet

Hi, I've finished fixing a website for a client. However, he has a form that is not validating and I'm not exactly sure why. Here are some of the errors - Missing Fields Your form located at does not work because you forgot to include the required "rec_mailto" field within …

Member Avatar for yellowfeet
0
265
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
983
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
245
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
62
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

The End.