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:
Saturday at 3:51 PM
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
General
ElaKiri Talk!
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="EHDEHD" data-source="post: 11914883" data-attributes="member: 57610"><p><span style="font-size: 22px">mata podi help ekak oneeeeee</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">me thiyenne login page eka php code eke</span></p><p></p><p><span style="font-size: 18px"><span style="color: Blue"></span></span></p><p><span style="font-size: 18px"><span style="color: Blue"><?php</span></span></p><p><span style="font-size: 18px"><span style="color: Blue"> $username = "you_asha";</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$password = "19950103";</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$hostname = "localhost";</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$con=mysql_connect($hostname,$username,$password) ;</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$select = mysql_select_db("you_good", $con);</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$result = mysql_query("select CreateUser,CreatePassword FROM gayan");</span></span></p><p> <span style="font-size: 18px"><span style="color: Blue">while ($row = mysql_fetch_array($result)) {</span></span></p><p><span style="font-size: 18px"><span style="color: Blue"></span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$u1= $row{'CreateUser'};</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$p1=$row{'CreatePassword'};</span></span></p><p><span style="font-size: 18px"><span style="color: Blue"></span></span></p><p><span style="font-size: 18px"><span style="color: Blue">}</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$user=$_POST['CreateUser'];</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">$pass=$_POST['CreatePassword'];</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">if ($user == $u1 && $pass ==$p1 )</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">{</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">echo "Welcome " . $user;</span></span></p><p><span style="font-size: 18px"><span style="color: Blue"></span></span></p><p><span style="font-size: 18px"><span style="color: Blue">}</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">else</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">{</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">header("Location: invalid.php");</span></span></p><p><span style="font-size: 18px"><span style="color: Blue">}</span></span></p><p><span style="font-size: 18px"><span style="color: Blue"></span></span></p><p><span style="font-size: 18px"><span style="color: Blue">?></span></span></p><p></p><p><span style="font-size: 18px"><span style="color: Black">meka hadala server ekata dala test karahama... user name eka harita gahuwama annawa waradiyata gahuwahama anne hadala thiyenne header("Location: invalid.php"); metethenta athe mehema error ekak anwa</span></span></p><p></p><p><span style="font-size: 22px"><span style="color: Red">Warning: Cannot modify header information - headers already sent by (output started at /home/Youuser/public_html/register/welcom.php:6)</span></span></p></blockquote><p></p>
[QUOTE="EHDEHD, post: 11914883, member: 57610"] [SIZE="6"]mata podi help ekak oneeeeee me thiyenne login page eka php code eke[/SIZE] [SIZE="5"][COLOR="Blue"] <?php $username = "you_asha"; $password = "19950103"; $hostname = "localhost"; $con=mysql_connect($hostname,$username,$password) ; $select = mysql_select_db("you_good", $con); $result = mysql_query("select CreateUser,CreatePassword FROM gayan"); while ($row = mysql_fetch_array($result)) { $u1= $row{'CreateUser'}; $p1=$row{'CreatePassword'}; } $user=$_POST['CreateUser']; $pass=$_POST['CreatePassword']; if ($user == $u1 && $pass ==$p1 ) { echo "Welcome " . $user; } else { header("Location: invalid.php"); } ?>[/COLOR][/SIZE] [SIZE="5"][COLOR="Black"]meka hadala server ekata dala test karahama... user name eka harita gahuwama annawa waradiyata gahuwahama anne hadala thiyenne header("Location: invalid.php"); metethenta athe mehema error ekak anwa[/COLOR][/SIZE] [SIZE="6"][COLOR="Red"]Warning: Cannot modify header information - headers already sent by (output started at /home/Youuser/public_html/register/welcom.php:6)[/COLOR][/SIZE] [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom