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
Pure VPN - Up to 27 Months
vgp
Updated:
Today at 8:10 AM
එක පැකේජ් එකයි මාසෙටම 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
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
PHP help pls....
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="Theekshana vimukthi" data-source="post: 17089262" data-attributes="member: 309931"><p><span style="font-size: 18px"><?php</span></p><p><span style="font-size: 18px">$name=$_POST["username"];</span></p><p><span style="font-size: 18px">$email=$_POST["email"];</span></p><p><span style="font-size: 18px">$password=$_POST["password"];</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">$con=mysqli_connect("localhost","root","","aaa");</span></p><p><span style="font-size: 18px">// Check connection</span></p><p><span style="font-size: 18px">if (mysqli_connect_errno()) {</span></p><p><span style="font-size: 18px"> echo "Failed to connect to MySQL: " . mysqli_connect_error();</span></p><p><span style="font-size: 18px">}</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">$result=mysqli_query($con,"INSERT INTO students (fname,email,password )</span></p><p><span style="font-size: 18px">VALUES ('$name', '$email','$password')");</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">mysqli_close($con);</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">if ($result == 1){</span></p><p><span style="font-size: 18px"> header("Location:../../view/students/login.php");</span></p><p><span style="font-size: 18px">}else{</span></p><p><span style="font-size: 18px"> header("Location: ../../view/students/registration.php");</span></p><p><span style="font-size: 18px">}</span></p><p><span style="font-size: 18px">?></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">mata one db eke email eka already exist nam eka check karala $get use karala html page eke error msg ekak print karanna..danna aya help ekak dennako...</span></p></blockquote><p></p>
[QUOTE="Theekshana vimukthi, post: 17089262, member: 309931"] [SIZE="5"]<?php $name=$_POST["username"]; $email=$_POST["email"]; $password=$_POST["password"]; $con=mysqli_connect("localhost","root","","aaa"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result=mysqli_query($con,"INSERT INTO students (fname,email,password ) VALUES ('$name', '$email','$password')"); mysqli_close($con); if ($result == 1){ header("Location:../../view/students/login.php"); }else{ header("Location: ../../view/students/registration.php"); } ?> mata one db eke email eka already exist nam eka check karala $get use karala html page eke error msg ekak print karanna..danna aya help ekak dennako...[/SIZE] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom