MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.
Login PHP&SQL Error
ကျနော် Login form လေးရေးနေတာဗျ တခြားအပိုင်းတွေလိုက်လျှောက်ရေးပြီးမှ ဒီအပိုင်းကိုရောက်လာတော့ အယ်ယာက တတ်နေပြီ ဘယ်လိုရှင်းရမလဲး ဆိုတာလည်း မူးနောက်နေပြီး မသိတော့ဘူး မလုပ်တာကြာပြိဖြစ်တဲ့ ကိုကြိုက်နှစ်သက်တဲ့ ဟာမို့ပြန်နွေးကြည့်တာ နှဖူးတွေ့ ဒူးတွေပြန်တွေ့ချိန်မှာ အယ်ယာက တတ်နေပြိ ကူညီပေးပါဥိးဗျာ ဘယ်လိုရှင်းထုပ်ရမလဲဆိုတာကို
<pre lang="php">
<?php
session_start();
require("conf/config.php");
if(isset($_SESSION) == TRUE) {
header("Location: " . $config_basedir);
}
if($_POST){
$loginsql = "SELECT * FROM logins WHERE username = '" . $_POST. " 'AND password = '" . sha1($_POST) ."'";
$loginres = mysql_query($loginsql) or die (mysql_error());
$numrows = mysql_num_rows($loginres) or die (mysql_error());;
if($numrows == 1){
$loginrow = mysql_fetch_assoc($loginres);
session_register("SESS_LOGGEDIN");
session_register("SESS_USERNAME");
session_register("SESS_USERID");
$_SESSION = 1;
$_SESSION = $loginrow;
$_SESSION = $loginrow;
$ordersql = "SELECT id FROM orders WHERE customer_id = " . $_SESSION . " AND status < 2";
$orderres = mysql_query($ordersql);
$orderrow = mysql_fetch_assoc($orderres);
session_register("SESS_ORDERNUM");
$_SESSION = $orderrow;
header("Location: " . $config_basedir);
}else {
header("Location: http://" .$_SERVER. $_SERVER . "?error=1");
}
}else {
require("conf/header.php");
?>
<h1>Login</h1>
Please enter your username and password to log into the websites. If you do not have an account, you can get one for free by <a href="register.php">registering</a>.
<br></a>
<?php
if(isset($_GET)) {
echo "<strong>Incorrect username/password</strong>";
}
?>
</pre>
FORM FORM
<pre lang="php">
<?php
}
require("conf/footer.php");
?>
</pre>
<pre lang="php">
<?php
session_start();
require("conf/config.php");
if(isset($_SESSION) == TRUE) {
header("Location: " . $config_basedir);
}
if($_POST){
$loginsql = "SELECT * FROM logins WHERE username = '" . $_POST. " 'AND password = '" . sha1($_POST) ."'";
$loginres = mysql_query($loginsql) or die (mysql_error());
$numrows = mysql_num_rows($loginres) or die (mysql_error());;
if($numrows == 1){
$loginrow = mysql_fetch_assoc($loginres);
session_register("SESS_LOGGEDIN");
session_register("SESS_USERNAME");
session_register("SESS_USERID");
$_SESSION = 1;
$_SESSION = $loginrow;
$_SESSION = $loginrow;
$ordersql = "SELECT id FROM orders WHERE customer_id = " . $_SESSION . " AND status < 2";
$orderres = mysql_query($ordersql);
$orderrow = mysql_fetch_assoc($orderres);
session_register("SESS_ORDERNUM");
$_SESSION = $orderrow;
header("Location: " . $config_basedir);
}else {
header("Location: http://" .$_SERVER. $_SERVER . "?error=1");
}
}else {
require("conf/header.php");
?>
<h1>Login</h1>
Please enter your username and password to log into the websites. If you do not have an account, you can get one for free by <a href="register.php">registering</a>.
<br></a>
<?php
if(isset($_GET)) {
echo "<strong>Incorrect username/password</strong>";
}
?>
</pre>
FORM FORM
<pre lang="php">
<?php
}
require("conf/footer.php");
?>
</pre>
Tagged:
မှတ်ချက်များ
}else {
header("Location: http://" .$_SERVER. $_SERVER . "?error=1");
}
/$loginsql = "SELECT * FROM logins WHERE username = 'myo' AND password = 'myo123'";
Second, I found extra space after username parameter >>> '" . $_POST. " '
Third, actually error breaking is no need at this line mysql_num_rows($loginres) or die (mysql_error());;