Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
php help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="imeshSJ" data-source="post: 2488242" data-attributes="member: 42161"><p><?php</p><p></p><p>//This is the directory where images will be saved</p><p>$target = "images/";</p><p>$target = $target . basename( $_FILES['photo']['name']);</p><p></p><p>//This gets all the other information from the form</p><p>$name=$_POST['name'];</p><p>$email=$_POST['email'];</p><p>$phone=$_POST['phone'];</p><p>$pic=($_FILES['photo']['name']);</p><p></p><p>// Connects to your Database</p><p>mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error()) ;</p><p>mysql_select_db("Database_Name") or die(mysql_error()) ;</p><p></p><p>//Writes the information to the database</p><p>mysql_query("INSERT INTO `employees` VALUES ('$name', '$email', '$phone', '$pic')") ;</p><p></p><p>//Writes the photo to the server</p><p>if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))</p><p>{</p><p></p><p>//Tells you if its all ok</p><p>echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";</p><p>}</p><p>else {</p><p></p><p>//Gives and error if its not</p><p>echo "Sorry, there was a problem uploading your file.";</p><p>}</p><p>?></p><p></p><p>(mata mekata photos 5 k upload karanna onnee. mama code eka wenas kala eth hariyannee naaa. meka wenas wenne komada kiyanawada<img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="imeshSJ, post: 2488242, member: 42161"] <?php //This is the directory where images will be saved $target = "images/"; $target = $target . basename( $_FILES['photo']['name']); //This gets all the other information from the form $name=$_POST['name']; $email=$_POST['email']; $phone=$_POST['phone']; $pic=($_FILES['photo']['name']); // Connects to your Database mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error()) ; mysql_select_db("Database_Name") or die(mysql_error()) ; //Writes the information to the database mysql_query("INSERT INTO `employees` VALUES ('$name', '$email', '$phone', '$pic')") ; //Writes the photo to the server if(move_uploaded_file($_FILES['photo']['tmp_name'], $target)) { //Tells you if its all ok echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory"; } else { //Gives and error if its not echo "Sorry, there was a problem uploading your file."; } ?> (mata mekata photos 5 k upload karanna onnee. mama code eka wenas kala eth hariyannee naaa. meka wenas wenne komada kiyanawada:( [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom