39,402 Topics

Member Avatar for
Member Avatar for ekSquall

Hi, I have populated a dropdown menu using php pdo from sqlite database. How would i go about reading what the user has selected in the dropdown menu. so i can do something like: $userSelected = [whatever user selected in the dropdown menu]; my code is as follows (part of …

Member Avatar for hielo
0
590
Member Avatar for dannynez

i get this Warning: Cannot modify header information - headers already sent by (output started at c:\appserv\www\conectarse.php:2) in c:\appserv\www\conectarse.php on line 61 and this warning happen in line 58 - header("Location: ".$MM_redirectLoginSuccess); and in line 61 - header("Location: ".$MM_redirectLoginFailed); pls i need somebody help me to resolve this this is …

Member Avatar for pzuurveen
0
130
Member Avatar for maxelcat

I have a client that wants a site for people who are potentailly being abused, often by partners they live with. He is under the impression that it is possible for there to be a "Button" that deletes the cache when the user presses it rather than going through the …

Member Avatar for pritaeas
0
66
Member Avatar for tonvlad

i'm trying to explode my variable but it has a single quote which is invalid in my mysql syntax. can u help me how to explode a single quote?? list($a, $b) = explode("'", $des);

Member Avatar for dddougal
0
253
Member Avatar for phpDave

Hi, Currently I am working on a site that lets users upload photos for their personal page. This page is just a prototype so some of the code is very sloppy so I really should not post all of it. Anyway, here is some: [CODE]$id =$_GET['id']; if(!isset($id) || empty($id)){ die("Please …

Member Avatar for P0lT10n
0
83
Member Avatar for sakush100

Hello everyone. This is a small php code to change password. [CODE]<?php session_start(); $oldpwd=$_POST['oldpwd']; $newpwd=$_POST['newpwd']; $conf=$_POST['conf']; $currentid=$_SESSION['email']; if($newpwd!=$conf) { echo"Passwords Do Not Match"; } else { if($oldpwd==NULL || $newpwd==NULL ||$conf==NULL) { echo"Any fields cannot be left Blank"; } else { require('../connect.php'); mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $qry="SELECT …

0
58
Member Avatar for jj.amonit

Using the above technologies, I want to create a PDF, store it in my db, and email it. All with the click of one button. I also want to call it up and have it be able to display with a hyperlink. I am very new to FPDF. Therefore, I …

Member Avatar for red_ruewei
0
1K
Member Avatar for Mahaa

Hi, I am pretty new to this scripting language. I have just installed the following s/w packages in my system via XAMPP. >php >MySQL >Apache Next,I started writing a basic script in notepad and saved it as "hello.php" My question is where to run this script, either in the Command …

Member Avatar for Mahaa
0
735
Member Avatar for leopardsag

I want to create pdf from sql result and then also mail it or save it. Kindly advise. I want any link to working example and code or simple code. Thanks. :)

Member Avatar for red_ruewei
0
157
Member Avatar for HedoBum

This is stumping me...it's probably pretty obvious, but I'm working under medication for the flu... I finally got my form submitting to my database and to separate tables from the update.php script. Problem is, (I know this sounds trivial and I shake my head as I query) I can't get …

Member Avatar for HedoBum
0
140
Member Avatar for sajohnson05

Below you will find my code for a form. I am trying to do Regular expression. I have the expression but when i enter something that is not right it will still post. I believe the reason is that i am still calling the $_POST of original not taking into …

Member Avatar for timhysniu
0
101
Member Avatar for ziaul1234

Hi I am just stucked. Would be great if someone can help me. I have created form in page1.html. User fill the form and can view it in page2.php where there is also an edit button. If they need to edit any details, page3.php comes and they they can edit …

Member Avatar for timhysniu
0
225
Member Avatar for nyler01

i need help. i am developing a webpage which is the user is able to log in,log out, register, and change password but my problem is the tutorial that i've seen so far is about mysql. i am using ms access database and i want to do this stuff using …

Member Avatar for nyler01
0
208
Member Avatar for teedoff

Hi I am very new to PHP and was working through a tutorial to learn a little about PHP. I created a simple form that passes form variables to another page to be displayed. It's a coin counter that when the user enters certain amounts of different denominations of coins, …

Member Avatar for teedoff
0
109
Member Avatar for KriBez

Hello! Finally I joined daniweb. Great stuff in here guys. Anyways lets get to the problem: I have a page where a number of topics are displayed ( they are added by admin). And to get this list I`m using this script [CODE=php] // Query the database $gettopic = mysql_query("SELECT …

Member Avatar for KriBez
0
110
Member Avatar for CasTex

Hello, When I try to mysql insert values with same names, it encourages this error. When I looked at the table column, I see that the row id is always "1" and it doesnt let to add same entry. [URL="http://img267.imageshack.us/img267/4123/sfff.jpg"]http://img267.imageshack.us/img267/4123/sfff.jpg[/URL] My question is, how can I add an auto increment …

Member Avatar for P0lT10n
0
164
Member Avatar for ujjval dave

hi every one, i need your help in php code. my error is for profile page. after implementing lots of php code in this page,my page became auto refresh in every 2secound. i don't know what happend to it. i m attaching my code pls elp me. [CODE] <?php //get …

Member Avatar for ujjval dave
0
173
Member Avatar for BzzBee

I am member of daniweb since last 2 and half years. That was very good when i joined this. But now its just rubbish here. No one try to help others. I had post 5 different threads but i didnt find any solid suggesstion, any sound solution. In my following …

Member Avatar for Ezzaral
-4
117
Member Avatar for benhowdle89

I'm sure this has been answered many times but its something i've struggled with doing, if i wanted a user login on one page, when, for example "John" logs in he goes to an area that only "John" can see, "Jill" cannot see this area and cant access it by …

Member Avatar for benhowdle89
0
161
Member Avatar for kracko

hey ppl. I have many submit buttons in a form. Each of them does its thing in different php pages. But when, for example, 'add' button goes to 'add.php' it does its work but stays there) how to redirect page back? thanks

Member Avatar for kracko
0
198
Member Avatar for pieterv

Could someone please explain why the following code works: [code=php] <html> <head> <script type="text/javascript"> function test(){ phpTest = "<?php echo 'hello'; ?>"; document.getElementById("php_code").innerHTML = phpTest; } </script> </head> <body> <a href="#" onclick="test(); return false;"> test </a> <span id="php_code"> </span> </body> <html> [/code] while this code doesn't: [code=php] <html> <head> <script …

Member Avatar for pieterv
0
2K
Member Avatar for becraig

I need to assign a variable based on its value. ie: $variable = 'value' (if value != "Session['value']" My brain is not really working atm I know there has to be a simple way to do this. I am selecting a random file from a directory and do not want …

Member Avatar for becraig
0
102
Member Avatar for curious_me

Does anybody know anything about click functions? I need ur help guys. what I wanted is that there will be 3 choices and once I clicked one of those choices it will be automatically displayed to a table in html. please help me cause google can't help me or i …

Member Avatar for P0lT10n
0
138
Member Avatar for phaedrusGhost

Hi all, I am implementing a dropdown list that finds people from a "State" and "City". The states and cities are stored in the DB when a user registers. Since there are several times "California" exists in the DB, how can I display "California" in my dropdown list once and …

Member Avatar for P0lT10n
0
115
Member Avatar for digiplaystudios

Hi There, I've got a membership script and a login using PHP and MySQL databases however when it logs in it simply displays a PHP page - the same one for all users. I want to be able to customise the members page so it says things like: Hello, <username>. …

Member Avatar for P0lT10n
0
215
Member Avatar for ←Guybrush→

Ahoy Sailors! So I'm scripting a socket based project in PHP, And now I've got to the stage where I'm needing to start accepting user input, What worries me is that PHP can't do two things & once (I.E Spawning & waiting for input from an interface & listening for …

Member Avatar for diafol
0
104
Member Avatar for pokiaman

I m trying to get it work in php but i cant, since i m new in PHP :( i was wondering if someone can help and i would really appreciate it!! :* Description: In a php page i want to choose from a drop down menu (Houses) a choise …

Member Avatar for vaibhav1983
0
146
Member Avatar for houston3000

i am trying to write a code in php in which user select state on that selection user able to choice city which are retive as array from the table, on that selection retieve set of final data. i am confused how to handle and send data for query depanding …

Member Avatar for vaibhav1983
0
83
Member Avatar for segiboy

Dear Friend, I'm new here, and new in PHP... I'm trying to build a Resume Database Management Website, Where i can enter all candidates recode with my designed form on DB, And my client can search candidate with my given drop list , and keywords. But my problem how can …

Member Avatar for vaibhav1983
-1
97
Member Avatar for aldm

Hi, I have a problem with importing special slovenian characters (č, ć, š, đ, ž etc) from excel to mysql database. I changed database coding to utf-8 in phpmyadmin and in php editor (Eclipse). Adding articles (to table) from html form works fine (with special characters: č, đ etc), but …

0
69
Member Avatar for slap01

i do believe my code in update is wrong because saving it is working but having trouble with the "Edit". help anyone? [CODE]<?php include 'conn.php'; $flag=$_GET["flag"]; if ($flag=="1") { $id = $_GET["id"]; $lname = $_GET["lname"]; $fname = $_GET["fname"]; $mname = $_GET["mname"]; $age = $_GET["age"]; $sex = $_GET["sex"]; $course = $_GET["course"]; …

Member Avatar for Nyight
0
181
Member Avatar for crazyboy

Hi ... Friends ... I have to develop one project in php for my project work. Our college has said that we have to use any one framework of php to develop our project. I am going to develop forum. Which frame will suits best for my development. I dont …

Member Avatar for aquilax
0
96
Member Avatar for raul8

In PHP, how can I print the list of directories and their sub-directories? Files should not be printed.

Member Avatar for mschroeder
0
99
Member Avatar for segiboy

I'm fetching data from database but problem is if i leave my field blank then result is shown like attached file... I want that if field is empty then auto value set into "N/A" . Is it possible from phpMyAdmin-2.11.10. Please reply Thanks Farhan.

Member Avatar for Nyight
0
110
Member Avatar for charvie

Hi, i have this HTML page that contains an image, some text, and a save button. Now what I want is, when i click on the save button, the image on my site, and all the text will be saved as a PDF file. is that possible using PHP?

Member Avatar for chrishea
0
103
Member Avatar for chintan@dani

Hello Readers I am trying to create Categorytree.In which i want to display subcategories under its parent category.I got the code to develop category tree that display using <ul><li> but i want to display it in dropdown. How can i do that? For Example Parent1 __Child1-Parent1 __Child2-Parent1 __|__Child1-Child2-Parent1 Parent2 __Child1-Parent2 …

Member Avatar for chintan@dani
0
1K
Member Avatar for harapanahallipr
Member Avatar for chintan@dani
-1
55
Member Avatar for babydol

Hi I am trying to learn Joomla - a tool for web development using php.My problem is I keep getting warnings such as [QUOTE]Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In …

0
54
Member Avatar for phpDave

Hi, I'm trying to build a site that lets users contact each other through the site. Like an email system in the site only. I'm just looking for some keywords to do research on my own. Thanks!

Member Avatar for phpDave
0
71
Member Avatar for carensuizon

hi! can someone could give me a hand how to make a infomation.php with javascript, it include input name, address, age, gender and religion and the attach and reset command. thank you in advance. caren (^_~)>

Member Avatar for accountholder
0
71
Member Avatar for BzzBee

hi, I am trying to upload picture using PHP. I made this title because if the thread contains title with tough problem, no one even open thread and try to help. Actualy i have problem in picture uploading, but critic part is that my code is at one site and …

Member Avatar for accountholder
0
155
Member Avatar for Indirect

Hey. So i was working on a shopping cart that didn't focus much on having a database to support the information. I have a snippet of code that checks to make sure there is no dublicates. if there is it just changes the quantity to the right one. but if …

Member Avatar for Indirect
0
87
Member Avatar for nick3592

Hi i have a membership system on my site and i noticed a problem that is on my site. The user can change the a cookie information which holds the users id, after that the user can be logged in as a different user by changing the id, i was …

Member Avatar for brandonrunyon
0
256
Member Avatar for suncica2222

I have this simple code and I want it running all the time on the server,AND NOT ONLY WHEN IT IS OPENED IN BROWSER TAB. I dont know exactly what is happening in http header but i guess that there is a way to keep it running non stop. Is …

Member Avatar for suncica2222
0
173
Member Avatar for Tommy.b

Hey, so I've tried like 50 different guides and so on with how to validate this form, and so far nothing works. When the user hits submit, I would very much like to validate if a button in each row has been selected, ideally it would be nice to have …

Member Avatar for Tommy.b
0
75
Member Avatar for andydeans

hi guys, need some urgent help from you. i need 2 things to work out, looked around on net and found some scripts but wondered if someone could help point me to a good way of doing this. i need to be able to mail merge to word/wordpad whatever the …

Member Avatar for andydeans
0
74
Member Avatar for andydeans

hi, i have installed xammp on my win 7 pc, i have a static ip address and wondered if i could use this to host my website? is there any disadvatanges of using a win 7 pc rather than linux server to host it? should i use windows server to …

Member Avatar for andydeans
0
140
Member Avatar for dan1992

can i make the radically operation in php if yes , please tel me if no thx 4 attention :D

Member Avatar for dan1992
-1
102
Member Avatar for HedoBum

Ok...this is my "HELP ME! HELP ME!" thread.:D I finally got my code to work...almost. The form posts to my database but only the first query data inserts and the last value of the third query. All the form fields are correct and the problem appears to be with my …

Member Avatar for HedoBum
0
208
Member Avatar for joelimboo

New to PHP, Need help Guys. Anyone got a Quick Code. Here is what I am trying To do. I have email ids where subscriber subscribes for newsletters. That is good! Subscribers often change their company in our profession and the email which is subscribed bounces back lets say about …

Member Avatar for Lsmjudoka
0
128

The End.