39,320 Topics

Member Avatar for
Member Avatar for ingeva

I have written this small test script: [CODE]<html> <body> <?php if ($_POST['amount']) { foreach ($_POST as $key => $in) { echo $key; echo "="; echo $in; echo "<br />"; } exit ('</body></html>'); } ?> Form output: <form id='transfer' method='POST' action='transfer.php'> <input type='hidden' name='touser' value="inge"> <input type='hidden' name='amount' value="1000"> <input type='hidden' …

Member Avatar for swatK
0
860
Member Avatar for bangla

Hi, i am having problem uploading. [B]1.[/B] [CODE]<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> [/CODE] [B]2. [/B][CODE]<?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo …

Member Avatar for bangla
0
262
Member Avatar for jorjah

is there a code that will add the two values,just like membership fee plus activity payment and i want to appear the total in the total payment.thank u

Member Avatar for Wraithmanilian
0
58
Member Avatar for dahi_man

Hi All, I am seeing that there is no way to retrieve more than 1 image from a mysql table? I have googled it, looked into 10's of websites.. no solution. How can i simply retrieve many pictures from a table,with the other columns if possible, please? and i also …

Member Avatar for dahi_man
0
106
Member Avatar for manishbq

[CODE]1 2 3 8 9 10[/CODE] i want pass the value in 1 node and find the left node ex 2 then find left node 8 then find the left node 10 ..! how to possible bcoz i use the recursive function find the left node 10 but problem is …

0
34
Member Avatar for Nahiyan

I have coded some ajax recently but whenever I click the 'register' button, nothing actually happens. I worked about about an hour to check what's wrong with the code but I failed to find any error. My php file just displays out an echo and runs some code if required …

Member Avatar for Nahiyan
0
114
Member Avatar for youvi

Hello, I am working in a joomla component.i have some uploaded videos in my PC and the name od the video in the database.how can i add a flow player and fetch the videos from the folder and play those videos in my joomla website ??

0
60
Member Avatar for l0ns008

I am having an issue with the WHILE LOOP variable being past via POST to the next page. The first page provides the query results for all the categories in which a user has provided a referral. When the user selects one of the listed categories, it is supposed to …

Member Avatar for klemme
0
982
Member Avatar for klemme

Hey! I have this script for Uploading PDF's to the DB. I tjecks if the document ends on .pdf - and excludes everything that doesnt - which is fine. [B]BUT I have set a size limit on 1 MB for uploading, and it seems to be working. BUT if I …

0
91
Member Avatar for ahasan_al_rabbi
Member Avatar for glycerine
0
59
Member Avatar for DariusG

Hello. I have a small problem. I am working on a small website where people will be able to take quizzes for driving lessons. I take my questions and answers from a database. The problem is that i get the first questions and after i submit the answers, the next …

Member Avatar for DariusG
0
201
Member Avatar for clems31

Hi, My problem is that I'm recovering data (which depend on what the user selected on a first page) from a SQL database for several language checked (also on that 1st page). I would like to create files for each one of the language selected. For now, I tried to …

Member Avatar for clems31
0
116
Member Avatar for gonidelux

Blank Screen on Step 2 of the Checkout Process in my PLAINTCART project ! checkout.php [CODE]<?php require_once 'library/config.php'; require_once 'library/cart-functions.php'; require_once 'library/checkout-functions.php'; if (isCartEmpty()) { // the shopping cart is still empty // so checkout is not allowed header('Location: cart.php'); } else if (isset($_GET['step']) && (int)$_GET['step'] > 0 && (int)$_GET['step'] …

Member Avatar for gonidelux
0
225
Member Avatar for Pann Ei
Member Avatar for Kratos-s-

i have created a html form page(1) and php page(2) to insert records into a database from the html form, when i insert the records from the html form and press the submit button the records don't get into the database but a page open with the php code i …

Member Avatar for rpv_sen
0
253
Member Avatar for decade

I have a problem in display or echo in php. what method should i follow if i the problem is with like this: example code: $email = trim($_REQUEST["email"]); if(strlen($email) < 1){ echo "0__notice__Email is empty."; } but the output should display only this part "Email is empty." only and not …

Member Avatar for decade
0
137
Member Avatar for l0ns008

I'm a NEWBIE and I have been stuck on this for days. I have one table that has the following rows: rid = Referral ID category = Category subcategory = Subcategory rbusiness = Referred Business Name rcontact = Referred Contact Name etc.. I have created the form (referral_input.php) that allows …

Member Avatar for l0ns008
0
2K
Member Avatar for Pann Ei

Example...First table (category table) Ands Second table (sub category table).Drop down list is 2 box.1st drop down list in choose "Fruit Category" ,and then Fruit result show.2nd drop down list in choose "Banana subcategory",and then Fruit-->Banana--> Result show. These problem solve with ajax and php. These problem no press submit …

0
49
Member Avatar for uselessninja

what is the difference between foreign key and joins? when to use foreign key? How foreign key works? and Is it better to use join rather than foreign key?.. can someone explain me this?...

Member Avatar for uselessninja
0
102
Member Avatar for davy_yg

I have the following code in send_email.php [CODE] <body> <?php // send mail code $name=$_GET["name"]; $email=$_GET["email"]; $message=$_GET["message"]; ?> Name : <?php echo $name; ?><br> email : <?php echo $email;?><br> message : <?php echo $message;?><br> <?php //$to = 'david_yg20@yahoo.com'; $to = 'garudamedia@localhost'; $subject = 'e-mail feedback'; ini_set('sendmail_from', 'admin@localhost'); ini_set('SMTP', 'localhost'); //ini_set('SMTP', …

Member Avatar for ddymacek
0
191
Member Avatar for bangla

Hi, i am trying to open a file in php but its not. 1. i saved a txt file, called welcome.txt welcome.txt content "welcome to PHP file" 2. then i wrote another file, "file.php". content is: [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] 3. "file.php" and "welcome.txt" on the …

Member Avatar for ddymacek
0
161
Member Avatar for Nahiyan

The title says it all. I want to include a file outside the current working directory. Suppose my file is in the address "localhost/directory1/directory2" and I want to include 'core.inc.php' located in "localhost/directory1". In this case is requiring that file possible? If so then how can I achieve this?

Member Avatar for ddymacek
0
89
Member Avatar for jacksantho

Hi, Any body please help me out: [CODE][B] while loop { $val=mysql_num_rows($result14); $blnk=array(); array_push($blnk,$val); } $blnkarraysum=array_sum($blnk); [/B][/CODE] Values are not at all getting add up. why ? thanks in advance

Member Avatar for cereal
0
323
Member Avatar for megachip04

I'm hoping there is a simple solution to this. I am using a form to submit some information. One of the boxes is a textarea. When i submit the form it runs this line of code: [CODE] if (!isset($_POST['textarea']) [/CODE] it seems to register that there is type there regardless …

Member Avatar for ddymacek
0
3K
Member Avatar for jacksantho

Hi, In my home page, i had one submit button(form action $_SERVER[PHP_SELF]). By clicking submit button,(by some action), its shows me the "Accept" and "Reject" button. My "Accept" button(data should save in my database) is not at all working for me .(i pointed this also to form action $_SERVER[PHP_SELF]).But if …

Member Avatar for ddymacek
0
100
Member Avatar for msowards

I'm trying to allow members to upload a picture to the my website. I In my php code I test the uploaded files for type. For some files it works fine, but I've discovered there are .jpg files that don't seem to have the internal type headers and the php …

Member Avatar for ddymacek
0
893
Member Avatar for praset

Hello i have problem in my software, i want to read file excel and compare data. If i use file excel with small size it run succesfully, but if i use large file i have fault. Please some body help me

Member Avatar for madCoder
0
106
Member Avatar for maemaumeow

[CODE] <select name="year"> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> </select> <input type="submit" name="sub" value="Search"/> </div> <?php if(isset($_REQUEST['sub'])){ $year=$_REQUEST['year']; $con=mysql_connect("localhost","root","")or die( "Unable to connect"); mysql_select_db("mydb",$con) or die( "Unable to select database"); $query="SELECT * FROM student WHERE EnrolledYear='$year'"; $result=mysql_query($query)or die(mysql_error());; $num=mysql_numrows($result); mysql_close(); ?> <table> <tr> <th>Student ID No.</font></th> <th>Name</font></th> <th>Enrolled …

Member Avatar for ddymacek
0
151
Member Avatar for rahulvramesh
Member Avatar for IIM
0
99
Member Avatar for codeorder

Hello everyone. I'm new to this forum and PHP in general. I finally got the nerve to tackle a mySql Database on my website's server, added columns and a few values, although I cannot seem to find any online help to retrieve the values from the database table. Here is …

Member Avatar for codeorder
0
178

The End.