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
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Nov 7, 2026
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 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
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom