BorderManager
Publish time 10-1-2009 03:02 AM
$to = "member@domain.com";
$passwd = $row['passwd'];
$from = "webmaster@domain.com";
$subject = "Your Password";
$headers = "From: $from\r\n";
$headers.= "Content-type: text/html\r\n";
$message = "Your password is $password";
$mail = mail($to, $subject, $message, $headers);
tempek php.ini ko!
yg pasal menu tu apa url website tu... mai aku tengok jap
pzan213
Publish time 10-1-2009 04:18 PM
yg gmbr atas tu aku amik dr http://torrent.jiwang.cc/
lagi 1 cane ek nak wat link tp xde underline kat bwh n leh tukar warna bila mouse over...cth kat sini...
www.syok.org
cube boardmanager try this code kat board punyer..tgk jadi ke tak..sbb kat aku xjadi..dier kuar nie..
Warning: mail() : SMTP server response: 550 5.7.1 Unable to relay for pzan213@yahoo.com in C:\xampp\htdocs\xampp\test\send_password_ac.php on line 39
Cannot send password to your e-mail address
ni code utk forgot_password.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" c>
</head>
<body>
<table width="380" border="0" cellpadding="3" cellspacing="1" >
<tr>
<td width="33%"><strong>Enter your email : </strong></td>
<td width="67%"><form name="form1" method="post" action="send_password_ac.php">
<input name="email" type="text" id="email" size="25">
<input type="submit" name="Submit" value="Submit">
</form>
</td>
</tr>
</table>
</body>
</html>
ni code utk send_password_ac.php
<?
$host="localhost"; // Host name
$username="root"; // Mysql username
$password="1234"; // Mysql password
$db_name="test"; // Database name
$tbl_name="members";
//Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect to server");
mysql_select_db("$db_name")or die("cannot select DB");
// value sent from form
$email_to=$_POST['email'];
// retrieve password from table where e-mail = $email_to(mark@phpeasystep.com)
$sql="SELECT password FROM $tbl_name WHERE email='$email_to'";
$result=mysql_query($sql);
// if found this e-mail address, row must be 1 row
// keep value in variable name "$count"
$count=mysql_num_rows($result);
// compare if $count =1 row
if($count==1){
$rows=mysql_fetch_array($result);
// ---------------- SEND MAIL FORM ----------------
$to = $email_to;
$password = $row['password'];
$from = "webmaster@domain.com";
$subject = "Your Password";
$headers = "From: $from\r\n";
$headers.= "Content-type: text/html\r\n";
$message = "Your password is $password";
$mail = mail($to, $subject, $message, $headers);
}
// else if $count not equal 1
else {
echo "Not found your email in our database";
}
// if your email succesfully sent
if($mail){
echo "Your Password Has Been Sent To Your Email Address.";
}
else {
echo "Cannot send password to your e-mail address";
}
?>
ni utk create table
CREATE TABLE `members` (
`id` int(4) NOT NULL auto_increment,
`name` varchar(65) NOT NULL default '',
`lastname` varchar(65) NOT NULL default '',
`email` varchar(65) NOT NULL default '',
`password` varchar(65) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `test_mysql`
--
INSERT INTO `members` VALUES (1, 'Billly', 'Blueton', 'email_1@somewhere.com', '789789');
INSERT INTO `members` VALUES (2, 'Jame', 'Campbell', 'email_2@somewhere.com', '654123ddf');
INSERT INTO `members` VALUES (3, 'Mark', 'Jackson', 'email_4@somewhere.com', '951412dwe');
BorderManager
Publish time 10-1-2009 11:59 PM
lagi 1 cane ek nak wat link tp xde underline kat bwh n leh tukar warna bila mouse over...cth kat sini...
www.syok.org
<style type="text/css">
<!--
a:link {
color: #FF0000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0000FF;
}
a:hover {
text-decoration: underline;
color: #00FF00;
}
a:active {
text-decoration: none;
color: #FFFF00;
}
-->
script tu ok je bila test kat server aku.......
** aku guna postfix
pzan213
Publish time 11-1-2009 12:14 AM
kirenye script utk forgot password yg aku kasi tu xde mslh la yee?...hmmm...aku dah try gak install ArGoSoft Mail Server ...tp dpt gak..kuar error tu gak..hmm...:( :(
pzan213
Publish time 11-1-2009 12:37 AM
ni aku dah wat..pastu cane nak selitkan dlm hyperlink tu??
<style type="text/css">
<!--
.link {
color: #FF0000;
text-decoration: none;
}
.visited {
text-decoration: none;
color: #0000FF;
}
.hover {
text-decoration: underline;
color: #00FF00;
}
.active {
text-decoration: none;
color: #FFFF00;
}
--></style>
<body bgcolor="#FFFFFF">
<p align="center"><a href="maklumatdiripelajar.php" target="mainFrame" class="link" >Maklumat Peribadi </a></p>
BorderManager
Publish time 11-1-2009 01:39 AM
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" c>
<style type="text/css">
<!--
a:link {
color: #FF0000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF0000;
}
a:hover {
text-decoration: underline;
color: #0033FF;
}
a:active {
text-decoration: none;
color: #FF0000;
}
-->
</style></head>
<body>
<a href="#">Link Address</a>
</body>
</html>
ko send file php.ini kat sini
pzan213
Publish time 11-1-2009 02:37 PM
Originally posted by BorderManager at 11-1-2009 01:39 AM http://eforum5.cari.com.my/images/common/back.gif
Untitled Document
Link Address
ko send file php.ini kat sini
maksud ko?.
pzan213
Publish time 11-1-2009 02:53 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" c>
</head>
<style type="text/css">
<!--
.link {
color: #FF0000;
text-decoration: none;
}
.visited {
text-decoration: none;
color: #0000FF;
}
.hover {
text-decoration: underline;
color: #00FF00;
}
.active {
text-decoration: none;
color: #FFFF00;
}
--></style>
<body bgcolor="#FFFFFF">
<p align="center"> </p>
<p align="center"><a href="maklumatdiripelajar.php" target="mainFrame" class="link" >Maklumat Peribadi </a></p>
<p align="center"><a href="temujanjipelajar.php" target="mainFrame" class="active">Temujanji</a></p>
<p align="center"><a href="statustemujanji.php" target="mainFrame" class="visited" >status temujanji</a></p>
<p align="center"><a href="mesejpelajar.php" target="mainFrame" class="hover" >Compose</a></p>
<p align="center">Inbox</p>
<p align="center"><font color="#FFFFFF"><strong><font color="#000000">Status Kaunselor
1</font></strong></font></p>
<div align="center"><font color="#000000"><a href="ymsgr:sendIM?aku&m=YOUR+MESSAGE"><img border="0" src="http://opi.yahoo.com/online?u=feezy_84&m=g&t=2"/></a>
</font></div>
<p align="center"><font color="#000000"><strong>Status Kaunselor 2</strong></font></p>
<div align="center">
<p><a href="ymsgr:sendIM?pzan&m=YOUR+MESSAGE"><img border="0" src="http://opi.yahoo.com/online?u=pzan213&m=g&t=2"/></a>
</p>
<p><a href="profilkaunselor.php" target="mainFrame" class="link" >;Profil Kaunselor</a></p>
<p><a href="logout.php" target="_parent" class="link" ></a></p>
</div>
</body>
</html>
[ Last edited bypzan213 at 11-1-2009 03:02 PM ]
pzan213
Publish time 11-1-2009 04:16 PM
cane ek nak wat kotak mcm nie...yg bahagian ujung dier not sharp..kalo dlm word ader la kat object2..tp kat dreamweaver katne ye boardmanager...
http://e.imagehost.org/0454/cari.jpg
BorderManager
Publish time 12-1-2009 07:56 AM
hujung kotak tu image la
sama ada ko kat add sebagai image or sbagai background
pzan213
Publish time 12-1-2009 09:50 AM
Originally posted by BorderManager at 12-1-2009 07:56 AM http://eforum5.cari.com.my/images/common/back.gif
hujung kotak tu image la
sama ada ko kat add sebagai image or sbagai background
image?...hmm...yg rounded kat bucu2 pakai imej...cane tu..
pzan213
Publish time 18-1-2009 03:07 AM
boardmanager..help me again...cane nak buat ni ek?..aku nak buat kire2 ader 10 mesej je dlm 1 page
http://a.imagehost.org/0601/next.jpg
BorderManager
Publish time 18-1-2009 04:24 PM
ooo n guna LIMIT$rowsPerPage = 20;
$pageNum = $_GET['page'] ? $_GET['page'] : 1;
$offset = ($pageNum - 1) * $rowsPerPage;
$query = " SELECT * FROM table LIMIT $offset, $rowsPerPage";
$result = mysql_query($query) or die('Error, query failed');
while($row = mysql_fetch_array($result))
{
echo $row['field'] . '<br>';
}
[ Last edited byBorderManager at 18-1-2009 04:26 PM ]
pzan213
Publish time 18-1-2009 06:50 PM
cane nak letak coding tu?..leh bg cth full code tak?..
[ Last edited bypzan213 at 18-1-2009 06:57 PM ]
BorderManager
Publish time 18-1-2009 11:00 PM
ko beri apa yg ko nak display
pzan213
Publish time 19-1-2009 12:35 AM
<?
session_start();
if(!session_is_registered(nokp)){
header("location:loginpelajar.php");
exit();
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" c>
<link rel="stylesheet" type="text/css" href="style2.css" />
</head>
<script type="text/javascript">
function check()
{
alert("No data to delete");
}
</script>
<body>
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password="1234"; // Mysql password
$db_name="nurani"; // Database name
$tbl_name="inboxpelajar"; // Table name
// Connect to server and select databse.
mysql_connect($host, $username, $password)or die("cannot connect");
mysql_select_db($db_name)or die("cannot select DB");
// Check if delete button active, start this
if(isset($_POST['delete'])){
if(sizeof($_POST['chkbx'])){
foreach($_POST['chkbx'] AS $val){
$sql = mysql_query("DELETE FROM $tbl_name WHERE bil=".(int)$val)or die(mysql_error());
}
}
// if successful redirect to delete_multiple.php
if($sql){
echo "";
}
}
$sql="SELECT * FROM $tbl_name WHERE nokp = '". $_SESSION['nokp'] ."'";
$result=mysql_query($sql);
?>
<div id="Layer4" style="position:absolute; left:420px; top:88px; width:603px; height:211px; z-index:4">
<br>
<table width="587" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table width="584" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FEF6E2">
<td width="83" align="center"><font color="#000000"><strong>Del</strong></font></td>
<td width="139" align="center"><font color="#000000"><strong>Perkara</strong></font></td>
<td width="225" align="center"><font color="#000000"><strong>Pengirim</strong></font></td>
</tr>
<?php
$x = 0;
while($rows=mysql_fetch_array($result)){
$x++;
?>
<tr bgcolor="#FEF6E2">
<td align="center"><input name="chkbx[]" type="checkbox" id="checkbox_<? echo $x; // you need a unique id per checkbox ?>" value="<? echo $rows['bil']; ?>"></td>
<td align="center"><a href="petimasukpelajar2.php?perkara=<? echo $rows['perkara']; ?>"><? echo $rows['perkara'] ?></td>
<td align="justify"><? echo $rows['pengirim2'] ?></td>
</tr>
<?php
}
?>
<tr bgcolor="#FEF6E2">
<td colspan="5" align="center"><input name="delete" type="submit" id="delete" value="Delete"></td>
</tr>
<?
mysql_close();
?>
</table>
</form>
</td>
</tr>
</table></div>
ni code yg aku nak display..
pzan213
Publish time 21-1-2009 01:19 AM
board..dptt ak?
BorderManager
Publish time 23-1-2009 12:33 AM
sorry lambat reply.. bz sikit
<?
session_start();
if(!session_is_registered(nokp)){
header("location:loginpelajar.php");
exit();
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" c>
<link rel="stylesheet" type="text/css" href="style2.css" />
</head>
<script type="text/javascript">
function check()
{
alert("No data to delete");
}
</script>
<body>
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password="1234"; // Mysql password
$db_name="nurani"; // Database name
$tbl_name="inboxpelajar"; // Table name
// Connect to server and select databse.
mysql_connect($host, $username, $password)or die("cannot connect");
mysql_select_db($db_name)or die("cannot select DB");
// Check if delete button active, start this
if(isset($_POST['delete'])){
if(sizeof($_POST['chkbx'])){
foreach($_POST['chkbx'] AS $val){
$sql = mysql_query("DELETE FROM $tbl_name WHERE bil=".(int)$val)or die(mysql_error());
}
}
// if successful redirect to delete_multiple.php
if($sql){
echo "";
}
}
/******************/
//yg kena tambah //
$rowsPerPage = 10;
$pageNum = $_GET['page'] ? $_GET['page'] : 1;
$offset = ($pageNum - 1) * $rowsPerPage;
$sql = "SELECT COUNT(*) AS total FROM $tbl_name";
$result = mysql_query($sql) or die('Error, query failed');
$row = mysql_fetch_array($result);
$total = $row['total']; //jumlah kesemua rekod
$maxPage = ceil($total/$rowsPerPage); // jumlah page
/******************/
$sql="SELECT * FROM $tbl_name WHERE nokp = '". $_SESSION['nokp'] ."'";
$result=mysql_query($sql);
?>
<div id="Layer4" style="position:absolute; left:420px; top:88px; width:603px; height:211px; z-index:4">
<br>
<table width="587" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table width="584" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FEF6E2">
<td width="83" align="center"><font
color="#000000"><strong>Del</strong></font></td>
<td width="139" align="center"><font
color="#000000"><strong>Perkara</strong></font></td>
<td width="225" align="center"><font
color="#000000"><strong>Pengirim</strong></font></td>
</tr>
<?php
$x = 0;
while($rows=mysql_fetch_array($result)){
$x++;
?>
<tr bgcolor="#FEF6E2">
<td align="center"><input name="chkbx[]"
type="checkbox" id="checkbox_<? echo $x; // you need a unique id per
checkbox ?>" value="<? echo $rows['bil']; ?>"></td>
<td align="center"><a
href="petimasukpelajar2.php?perkara=<? echo $rows['perkara'];
?>"><? echo $rows['perkara'] ?></td>
<td align="justify"><? echo $rows['pengirim2'] ?></td>
</tr>
<?php
}
?>
/******************/
//yg kena tambah //
<tr bgcolor="#FEF6E2">
<td colspan="5" align="center">Page
<?
for($page = 1; $page <= $maxPage; $page++)
{
if($page == $pageNum)
echo $page;
else
echo " <a href=\"$self?page=$page\">$page</a> ";
}
?>
</td>
</tr>
/******************/
<tr bgcolor="#FEF6E2">
<td colspan="5" align="center"><input
name="delete" type="submit" id="delete" value="Delete"></td>
</tr>
<?
mysql_close();
?>
</table>
</form>
</td>
</tr>
</table></div>
pzan213
Publish time 29-1-2009 08:59 PM
boardmanager...aku dah try...aku dah try masuk 20 data...n dier display yg page tu ader 2 page 1 n page 2...tp naper dier papar kesemua 20 data tu dlm page 1...n bile aku klik page 2 pun dier display 20 data tu......nape ye?..ke sebab code ni...
<?php
$x = 0;
while($rows=mysql_fetch_array($result)){
$x++;
?>
BorderManager
Publish time 30-1-2009 08:03 AM
sorry tertinggal
$sql="SELECT * FROM $tbl_name WHERE nokp = '". $_SESSION['nokp'] ."' LIMIT ". $offset .",". $rowsPerPage;
$result=mysql_query($sql);
Pages:
1
2
3
[4]
5
6
7
8
9
10
11