38,020 Topics

Member Avatar for
Member Avatar for bwallace

Our image upload form always returns the error message, "Invalid file. Please click the 'Back' button on your browser and try again." Here are the basics. ==HTML FORM== [CODE=HTML] <form enctype=="multipart/form-data" action="phpscript.php" method="post"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="submit" value="Submit" /> </form> [/CODE] ==PHP SCRIPT== …

Member Avatar for somedude3488
0
156
Member Avatar for the_mia_team

[url]http://getagripsite.com/level_one.html[/url] that is a link to my site, an application I am working on. If you visit that site you will see an option 1, option 2, and option 3, as well as a bonus option IF the checkbox is selected it is worth points, and the bonus can ONLY …

0
75
Member Avatar for zlloyd1

I received assistance from this forum just yesterday and so I thought I would try here again. This is my code for the php file that is supposed to receive data from an external html file and manipulate it but it is not receiving anything and I do not see …

Member Avatar for nonshatter
0
98
Member Avatar for hardgamer

Hi, I´ve found a code that is exactly what I need for a POS system based on web language that I am developing. What it does is send as soon as a pop-up window is activated, the information that appears (shopping items, quantities, etc.) to my email address (so I …

Member Avatar for diafol
0
308
Member Avatar for feoperro

Hi, I'm having a problem where I set a session after checking login details, and then change the section respectively via ajax. The problem that I've noticed is that the session is only set once the page is refreshed - I was wondering if it would be possible to set …

Member Avatar for diafol
0
192
Member Avatar for Awah Mohamed

hey people . i want to start a free hosting site .i have a doamin name with unlimited sub-domains and unlimited space and email acounts and unlimited ftp accounts . what i want to do is to write a code that creates a sub-domain and a folder with the name …

Member Avatar for Awah Mohamed
-2
143
Member Avatar for ctaylo21

Hi all, I am looking to pass a javascript array that is created by the user (through checking different boxes and populating the array with id numbers) to a php script which this uses the id's in the array to make url calls. I am having difficulty passing the array …

Member Avatar for ctaylo21
0
161
Member Avatar for Awah Mohamed

hey people . i have question . i want to create a social engine like facebook but i dont know where to start from and how to do everything so please tell what do i need to create a scoial engine like elgg and if you know a website that …

Member Avatar for Awah Mohamed
0
190
Member Avatar for vingan

Hi, I am creating an order form that brings data of the items and its price from a external .txt file. I am to add the number of items and get the total price of that product. Here is the code: <form action="pay.php" method="post" name="form1"> <?php $lines = file('list.txt'); $fnames …

Member Avatar for vingan
0
142
Member Avatar for Roriomphe

Hi Plz help i'm new i want to edit a record from the database using the html form that comes with the record on the field when i click edit and be able to delete it when i click a delete i want a pop up message to ask if …

Member Avatar for richieking
0
123
Member Avatar for eliezahorre

hi, so i've been looking for a string matching algorithm that gives me a "rating" based on how close the 2 strings match.. luckily, i googled and read this article: [URL="http://www.catalysoft.com/articles/strikeamatch.html"]how to strike a match[/URL] here's the original java class code [CODE=java] package strike_a_match; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; …

Member Avatar for eliezahorre
0
993
Member Avatar for shrirang
Member Avatar for shenbagam

[CODE]<?php $con = mysql_connect("localhost","root","" ); mysql_select_db("test",$con); $sql="select image from image"; $res=mysql_query($sql) or die(mysql_error()); $i=1; while($i < mysql_num_rows($res)) { $image_id[$i] = mysql_result($res, $i); echo "<img src=\"".$image_id[$i]."\">"; $i++; } ?> [/CODE] I'm using this code to display the image from mysql but images are shown like this M¢—‡¤6n幆J1³ŒªÌF·æFLùp1 `‘ã:ÃDVNÒ–¢QSgWñg€?´‘íx3²ûEùÝ ô.l%·ËìÈŒÿAzH­'óÀËË€XƒÍ«L²GçÚ›9ást¸°äŒëŸ]˜¦21ŒÖ|¸E^®ÏJOXX&æàߣéü6bêæ¬Öò7aúQ¡·÷9;Ó-ˆ )ôdx¹cüÖlÒ'j( q1ÌnéW4Ó÷dÇå©uF …

Member Avatar for Dragonbaki
0
117
Member Avatar for mtvaran

could anyone provide code for me how to search data using column name. example: if i have 2 columns called [B]NAME,ID[/B] then i select [B]NAME or ID[/B] and enter the keyword to search. would greatly appreciate your help!

Member Avatar for mtvaran
0
85
Member Avatar for scodex

I have learn to make website using php and mysql from tutorial book And I have some problem and I don't know how to do with it. :X If anyone know about solution to fix it please help.... Here is my code [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> …

Member Avatar for scodex
0
193
Member Avatar for ankit.pandey3

[CODE]<?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 Password';} elseif(empty($Password2)){echo 'Please confirm Password';} elseif($Password1!==$Password2){echo 'Password didn't …

Member Avatar for pritaeas
0
189
Member Avatar for niths

hello all, i need html table to be inserted in php code..i tried this but i am getting some problem with it so can anyone help me.. Thank u.. [CODE] $messageproper ="\n\n" . "Name: " . ucwords($_POST['name']) . "\n" . "Email: " . ucwords($email) . "\n" . "Message: " . …

Member Avatar for nonshatter
0
174
Member Avatar for shenbagam
Member Avatar for stephen_UK
0
101
Member Avatar for zlloyd1

I have recently been getting a parse error that reads : Parse error: parse error in C:\wamp\www\Jumble.php on line 20 Anytime I run an HTML program on my wamp server and it is regarding a php file called Jumble.php which is supposed to arrange the data entered into the HTML …

Member Avatar for Dragonbaki
0
171
Member Avatar for jegana

Hi I'm new in php.I have created a Form to insert data into the database its working fine. The other is to show all records from the database its too fine. I don't know where to start, Want i want is to edit one record at a time when i …

Member Avatar for Dragonbaki
0
207
Member Avatar for showman13

OK, I know this subject has been covered extensively, and I have read numerous threads on this and other forums. Problem is that the more I read, the more confused I got. I would simply like to know, for my particular application, what is the best way to handle the …

Member Avatar for macobex
0
138
Member Avatar for Obsidian_496

There are function and class templates in C++. They can operate with generic data types. There's some ifnormation on it. [URL="http://www.cplusplus.com/doc/tutorial/templates/"]http://www.cplusplus.com/doc/tutori al/templates/[/URL] This is a compile-able example from the site linked above: [CODE] #include <iostream> #include <conio.h> template <class T> T GetMax (T a, T b) { T result; result …

Member Avatar for macobex
0
127
Member Avatar for ibeginphp

Hi all, Thanks in advance. I am writing this in great detail. So dont panic looking at the length of this message. I have a page called retrievefieldex11.29.2.56.php. Fields that need to be considered for this problem here is the ID field (name = usersubmit) the Key(name = key) field. …

Member Avatar for ibeginphp
0
82
Member Avatar for dan1992

How can I make a timer that counts down from 60 seconds and after that directs me to another page Please help me Thank you ! :)

Member Avatar for R0bb0b
0
64
Member Avatar for arctushar

Hello sir(s) I m having problem with " and ' in my contect. say I hav submitted below sentence to save in mysql [B]my father's boss told me " you can join our company".[/B] I used [B]mysql_real_escape_string() [/B]. when I retriev from sql data. It shows [B]my father'\s boss told …

Member Avatar for R0bb0b
0
59
Member Avatar for nduarte

I was recently posting information and using $_GET to move between pages. However, becasue of security concerns, I have to change this. How do you pass a SESSION variable to a new page from an array. Here is what I used to have [CODE=PHP] while($data = mysql_fetch_array($result)) { echo '<a …

Member Avatar for Will Gresham
0
2K
Member Avatar for Roriomphe

Hi I'm new in php.I have created a Form to insert data into the database its worrking fine.The other is to show all records from the database in table form with Edit/Delete link in the end of each record its fine and I can delete a record but i have …

Member Avatar for cossay
0
119
Member Avatar for sickpuppy18

hello I'm trying to figure out how to compute the difference between 2 dates excluding weekends.I browsed the web on how to compute the difference between two dates and i somehow was able to understand it but i could not figure out how to compute the difference if I do …

Member Avatar for sickpuppy18
0
2K
Member Avatar for elrayyes

I have quite an issue in creating a multi level menu in php by extracting the category details for the menu from the product database. My table was created as follows: [code=php] CREATE TABLE products ( id int(11) unsigned NULL auto_increment, pid varchar(100) NULL default'', description text NULL default '', …

Member Avatar for diafol
0
504
Member Avatar for ddellostritto

Hi All. I am building a project assuming that there is a mehtod for intercepting incoming and outgoing mail from a mailserver. If it is not possible please let me know, I am new working with mail servers, so any material that you could provide would be greatly appreciated. I …

0
57

The End.