39,402 Topics

Member Avatar for
Member Avatar for benk1

I'm relatively new to session variables, and have been trying to use them in the following way: [CODE]session_start(); $daddr1=$_SESSION["daddr1"]; $daddr2=$_SESSION["daddr2"]; $daddr3=$_SESSION["daddr3"]; $daddr4=$_SESSION["daddr4"]; $daddr5=$_SESSION["daddr5"]; $iaddr1=$_SESSION["iaddr1"]; $iaddr2=$_SESSION["iaddr2"]; $iaddr3=$_SESSION["iaddr3"]; $iaddr4=$_SESSION["iaddr4"]; $iaddr5=$_SESSION["iaddr5"]; $notes=$_SESSION["notes"]; $purch=$_SESSION["purch"]; echo "<form name='form1' action='view_order.php' method='get'>"; echo "<table border='0' width='100%'>"; echo "<tr align='center'>"; echo "<td width='16%'> </td>"; echo "<td width='16%'>Your purchase …

Member Avatar for benk1
0
85
Member Avatar for senthilleo

i want to create static website for my project using wordpress anybody guide me plz or give me nice web site to learn

Member Avatar for hireaprogrammer
0
86
Member Avatar for SuntechWebsites

I am looking for a way to display all images from a folder using php. And if possible select the folder that matches the user with a session. [B]My example:[/B] I have a session that starts when a user loggs in called "MM_Username" Each user has a directory that is …

Member Avatar for whiteyoh
0
85
Member Avatar for codeblock

Hello all, I have a set of IF ELSE validation code ECHOING onto a php web page through a SWITCH staement. Everything works fine all error messages show up correctly. The problem is, after going through 3 conditons it starts to allow entry into my DB(mysql) all other entries goes …

Member Avatar for codeblock
0
185
Member Avatar for shyami

Hello there, i created a webservice in php using SOAP. Now i need to invoke that in my python. Here is my php code soapserver.php [CODE] <?php function getSessionData($sid) { mysql_connect('localhost','root',''); mysql_select_db('database'); $query = "SELECT Uname FROM tablename"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); return $row['Uname']; } require('nusoap.php'); $server = …

0
59
Member Avatar for phpuser

Hi All, I want url rewrite for my page.i having idea about how to rewrite for querystring and for other some cases. but i have something new at this time and i cant able to find solution for same this time. see my URL is like search.php?q=brand:Bosch:price:100to200:search:14.4~cordless~Hammer And I want …

0
79
Member Avatar for InnocentVamp

Hello all... I am currently pursuing my Master in IT and we are assigned a small individual project of creating online Scrabble game for multiplayers using php, javascript and ajax. I am a noob in the field of Web Development. I know Javascript in detail and Ajax and PHP in …

0
47
Member Avatar for ronaldpaul

Friends, in my project(i'm using php and mysql & i'll be getting all the detail from th user) I've to create a seperate ID for each family. For each family I've to maintain the family members details and the contact details.Now wats the problem is how can I add or …

Member Avatar for urtrivedi
0
168
Member Avatar for tryphy

Hi friends, I have a major doubt: Could you please help me with this... I have a create company form, create project form.. In the create company form, it creates the company name and a company code for it..and in the project form, i have one field as option value, …

Member Avatar for tryphy
0
148
Member Avatar for MxDev

Hi guys, how to add news columns in my site which could changed dynamically?? Any help appreciated. Thanks

Member Avatar for webexpertzhere
0
79
Member Avatar for Bhoot

I am working on an assignment to host a website. I am using LAMP architecture for that. What I am confused at this point is to where to store my website folder(s). What I thought was to put it in /srv/www/ : /srv/www/MyWebsite. But then I was advised that I …

Member Avatar for JRM
0
106
Member Avatar for Mouse1989

I have a login script in an iframe and after you've successfully logged in, it brings up the index page of the member [code]header("location: member-index.php;[/code] On my main page (_parent) I have an AJAX include with the ID of 'regBox'. How would I cross the iframe and make the 'member-index.php' …

Member Avatar for Mouse1989
0
182
Member Avatar for Liles13

[CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/l/i/l/liles13/html/main/libraries/joomla/database/database/mysql.php on line 344[/CODE] Im trying to get a new portfolio site up and running, and I'm very new to PHP. I've read various topics about queries and dropping tables, but I still can't resolve the issue. [CODE]<?php …

Member Avatar for JRM
0
260
Member Avatar for newtojsp

Hello, How can I run a PHP file in Tomcat server? I know it works fine in Apache. Please help Thanks

Member Avatar for Ezzaral
0
66
Member Avatar for biebel

HI, i'am an newbie and have following question I have two tables 1. repair_details with fields partnumber, quantity, Pn_id 2. Parts with fields Pn_id, price, partnumber.... I would like to fill in repair_details the Pn_id automaticly after I input the partnumber and quantity. Any suggestions? thanks

Member Avatar for biebel
0
98
Member Avatar for falconga

Hello everyone, Confused with the title of the thread? Well, I guess that`s because my brain is completly fried from trying to find the correct way to do something that seems impossible without your help. Here is the story, I have 8 questions, each containing 5 answers. I have a …

0
94
Member Avatar for ym_chaitu

Hai i am building a site for validation of the RSS feeds and adding it in the database. When a user enters a rss web address i need to validate the address and if it contains a rss then i need to enter it into the site or else i …

Member Avatar for Canaan_moore
0
75K
Member Avatar for preetg

hello dr.......... i m trying to store a text file into database below format of text file i hv text file like this: 0100102001110271 0409141151I1476201 0100102001110125 0409141351O1476301 0100101300000030 0409141630O1476401 0100102001110271 0409141631O1476501 0100102001110126 0409141632O1476601 how can store it into my database table att0310 my table fileds: cardno date time IO(in-out) and …

Member Avatar for urtrivedi
0
173
Member Avatar for veledrom

Hi guys, I opened this threat in here because unfortunately our Linux forum hasn't been supported well. I am sorry for the inconvenience caused by me. Problem: I cannot download a file (index.php) from a particular folder (/var/www/teams/team1) via Filezilla. I am sure that it is related to the permissions. …

0
55
Member Avatar for colweb

Have written a simple PHP program to get data from a database to an accounting program. Therefore I need to do some calculations. And one of them goes completely wrong. [CODE]<?php $prijs = 480.00; $nvh = 432.00; $prov = 40.34; $btw = 7.66; $over = $prijs - ($nvh + $prov …

Member Avatar for colweb
0
133
Member Avatar for kuteinheart

Hi ppl, I have a mail function as follows: [CODE]mail($mail_to,$mail_sub,$mail_mesg,$headers);[/CODE] Now, for $mail_mesg i want the message to be in html format as follows: [CODE]$mail_mesg="You have received a message from ur boss... <a href=Login.php>Click here to view it.... </a>"[/CODE] But this is not working... the code b/w <a> </a> is …

Member Avatar for liamfriel
0
86
Member Avatar for nathan2oo3

Hey, just signed up to this forum so first of all would like to say Hi . I am currently working on a review website building from code I had written previously. The problem I am having is with my login script. I Have three pages set out index.html, login.html …

Member Avatar for nathan2oo3
0
100
Member Avatar for fuggles

For some reason the post is not getting inserted into my database. [code=PHP] if($_SESSION['permissions']>=1) { $query="INSERT INTO news (id, title, poster, posterid, body) VALUES ('$id','$title','$poster','$posterid','$body')"; $result=mysql_query($query,$con); header("location:index.php"); } [/code]

Member Avatar for liamfriel
0
87
Member Avatar for letlet_pogs

Hello good day. I just want to ask those who know how to save values without submitting yet to database. I am trying to save it, but it wont work out. What i want is that, I am filling up a form, then I will go to the next page, …

Member Avatar for liamfriel
0
78
Member Avatar for kiranbvsn

i got 2 html pages with the following data index.php (buttons: SAVE, EDIT) update.php (buttons: UPDATE,DELETE) Employee ID (primary key), Employee Name (here i putting 2 buttons Edit,Save) when i entered the empid and click the Edit button, the page has to go from index.php to update.php and at the …

Member Avatar for kiranbvsn
0
117
Member Avatar for muralibobby2015

hello..... i am fetching text from database. i want to restrict 400 characters from that after "readmore". it redirects to total page. i was used substring but i want to total validate what means after 400 characters there is '.' is there then not appear '.........'like this. otherwise appear after …

Member Avatar for pushpakalpana
0
139
Member Avatar for sai.sriparasa

Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example …

Member Avatar for jino
0
185
Member Avatar for missMira

hi....can i ask something? i need to set a default password for a sign up form... so when new user sign up, they will get a default password and for the first time they log in, they will received a prompt or a msessage asking them to change their password. …

Member Avatar for missMira
0
122
Member Avatar for alla87

Hi all, Im relatively new to PHP, and i have come across a brick wall. What im trying to do is pass two variables $factid and $pathid to another PHP page and from there insert them into SQL Table. The only problem is that the $pathid is inside a while …

Member Avatar for cwarn23
0
3K
Member Avatar for alla87

What im trying to do is this. I have created a fact repository frame which holds facts for the use to look for. The user looks for facts through a search text field in which they submit. The search variable brings up on the page anything which matches the search …

Member Avatar for pbcomput
0
219
Member Avatar for kuteinheart

Hey ppl, I am using wampserver for my Website development... Now, I want to send mail to a particular user from mysql table... when i use the mail function for PHP code [CODE]mail($mail_to,$mail_sub,$mail_mesg,$headers)[/CODE] I am getting the error as follows [CODE]Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" …

Member Avatar for kuteinheart
0
346
Member Avatar for xuexue

hi there, i have a webpage which is divided into three frames, left frame, main frame and the bottom frame. all the buttons are in the left frame, hence, once a button is clicked, the data will be displayed in the bottom frame, now my problem is that, how could …

Member Avatar for kvprajapati
0
109
Member Avatar for SMHouston

Hi all. I'm having an issue that I CAN NOT figure out for the life of me. The program is to get user input about there paycheck , then calculate the answer. What my problem is I can not get the php part to print anything inside the <?php?> tags. …

Member Avatar for JRM
0
195
Member Avatar for whitestream6

This is my code, which displays either an image, or message depending on the time: [CODE]<?php $b = time(); $hour = date("g",$b); $m = date ("A", $b); if ($m == "AM") { if ($hour == 12) { echo "Good Evening!"; } elseif ($hour < 4) { echo "Good Evening!"; } …

Member Avatar for JRM
0
145
Member Avatar for SuntechWebsites

Ok..I have a database with clients and their information. They can login using their own assigned username and password. I am looking for a way I can access/edit their info from my admin side without having to enter individual user info to access them. On another note I am looking …

Member Avatar for JRM
0
108
Member Avatar for bahman2216

Dear all. how can I put my output array into file exactly as it appear below: [CODE]Array ( [0] => Array ( [0] => a [1] => b ) [1] => Array ( [0] => c [1] => d ) [2] => Array ( [0] => e ) ) [/CODE]

Member Avatar for Wraithmanilian
0
84
Member Avatar for newcountry
Member Avatar for diafol
-1
75
Member Avatar for Zagga

Hi again folks. I have a PHP member registration script that collects registration details from the user, encodes the password (with RIJNDAEL_256) and emails the user a URL containing all the variables so I can verify the email address is correct. The user clicks on the URL, the correct page …

Member Avatar for Zagga
1
170
Member Avatar for codeblock

Hello everyone, I have a problem with my drop down list box on my edit page in php. I would like my drop down list box to show what the user has selected, then if the user wishes to, change their selection updating the DB(mysql) at the same time. I …

Member Avatar for Wraithmanilian
0
243
Member Avatar for azegurb

Hi i have taken news script with image upload feature it works fine. but when i added news without image instead of image it displays red X sign you can see script from here [URL="http://www.daniweb.com/forums/thread258095.html"][CODE]http://www.daniweb.com/forums/thread258095.html[/CODE][/URL] and you may see demo from here [URL="http://aziko.6te.net/yukle/haber_ekle"]aziko.6te.net/yukle/haber_ekle[/URL] here you may add news and from …

-1
87
Member Avatar for ryy705

Hello, Is there a way to verify the validity of a credit card when user submits in his/her credit card number? Many thanks in advance.

Member Avatar for Wraithmanilian
0
188
Member Avatar for venus_me11

i dont know how to get the value in this table.. i have there a table with an image.. if a user click on one of it, and click reserve the letter of that table (ex. S) must be printed... please help... [CODE] <?php if ($_POST) { if ($_POST['submit'] == …

0
96
Member Avatar for techhelpforme

I think I've done what's necessary to install mod_php in Apache, but this code fails: ----------modtest.php <?php echo $PHP_SELF?> ------------------------ When I display modtest.php in a browser, I get: Notice: Undefined variable: PHP_SELF in C:\Program Files\Apache Group\Apache2\htdocs\modtest.php on line 1 I've read in docs that this env var doesn't exist …

Member Avatar for thinnakornzhang
0
953
Member Avatar for tryphy

I have a multi form... I searched online and found this link... [url]http://www.html-form-guide.com/php-form/php-order-form.html[/url] so i was doing a test, but it didnt work for me.. Can some1 help me, where i have gone wrong. Here are my codes.... [COLOR="red"][U]Form1.php[/U][/COLOR] [CODE] <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar for FlashCreations
0
240
Member Avatar for ElegantElephant

Any way to change the formatting of the text and what is displayed after a die() command? I'm currently coding all my errors using die() but I'd like to have more control over how the error message is formatted and what is displayed afterwards (like a return link for example)

Member Avatar for Jerail
0
120
Member Avatar for itisnot_me

ok so i am taking a list of numbers and stashing them i an array by going $total[]. then i try to use array_sum($total) and i dont get the last added number instead i get numbers that keep adding up to the final number EX: 10,15,5 output: 102530 i have …

Member Avatar for ashiqin
0
112
Member Avatar for motters

hi all i want to do is hide links when the user is not login in. i thought i could do it this way but it gave me a error [CODE] <?php if $_SESSION['MM_Username'] isset { echo 'members area'; // i would put a link here } else { echo …

Member Avatar for motters
0
942
Member Avatar for whiteyoh

Hi, Ive posted this in a mysql forum, but the more i think about it i think php is really where i think the solution lies. When i call a row, how could i count the number of empty entries? so say its an address with 5 lines, and ive …

Member Avatar for whiteyoh
1
88
Member Avatar for Exploded Fiber

Hello all, I'm pretty new to PHP & SQL. I am having some trouble with a web voting page I'm creating. I have a PHP loop which is displaying data from SQL table A. Beside it, a small text box linked to SQL table B to allow users assign numeric …

Member Avatar for diafol
0
199
Member Avatar for shyami

Hi, Is it possible to include php file in python? in my application already header and left menu and footer are existing in php. i want to include those files in my new python script. Plz tell me how to do this? Thanks in advance -Shyami

Member Avatar for slate
0
77

The End.