39,316 Topics

Member Avatar for
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
207
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
80
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
56
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
732
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
154
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
136
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
99
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
222
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
205
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
105
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
105
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
161
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
171
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
114
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
158
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
114
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
99
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
135
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
111
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
213
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
100
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
143
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
81
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
96
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
67
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
176
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
92
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
96

The End.