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
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Saturday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Wednesday at 4:58 AM
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Ad icon
Express VPN PC - 1 Year Rs. 600.00
Sanathbh
Updated:
Sep 19, 2026
Ad icon
Capcut Pro 7 Days Team Plan - Rs. 3️⃣0️⃣0️⃣
Sanathbh
Updated:
Sep 19, 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
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom