|
- $to = "[email protected]";
- $passwd = $row['passwd'];
- $from = "[email protected]";
- $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);
Copy the Code
tempek php.ini ko!
yg pasal menu tu apa url website tu... mai aku tengok jap |
|
|
|
|
|
|
|
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() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] 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([email protected])
$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 = "[email protected]";
$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 protected]', '789789');
INSERT INTO `members` VALUES (2, 'Jame', 'Campbell', '[email protected]', '654123ddf');
INSERT INTO `members` VALUES (3, 'Mark', 'Jackson', '[email protected]', '951412dwe'); |
|
|
|
|
|
|
|
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;
- }
- -->
Copy the Code
script tu ok je bila test kat server aku.......
** aku guna postfix |
|
|
|
|
|
|
|
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... |
|
|
|
|
|
|
|
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> |
|
|
|
|
|
|
|
- <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>
Copy the Code
ko send file php.ini kat sini |
|
|
|
|
|
|
|
Originally posted by BorderManager at 11-1-2009 01:39 AM
Untitled Document
Link Address
ko send file php.ini kat sini
maksud ko?. |
|
|
|
|
|
|
|
<!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" >rofil Kaunselor</a></p>
  <p><a href="logout.php" target="_parent"  class="link" >[Keluar]</a></p>
</div>
</body>
</html>
[ Last edited by pzan213 at 11-1-2009 03:02 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...
|
|
|
|
|
|
|
|
hujung kotak tu image la
sama ada ko kat add sebagai image or sbagai background |
|
|
|
|
|
|
|
Originally posted by BorderManager at 12-1-2009 07:56 AM
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.. |
|
|
|
|
|
|
|
boardmanager..help me again...cane nak buat ni ek?..aku nak buat kire2 ader 10 mesej je dlm 1 page
|
|
|
|
|
|
|
|
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>';
- }
Copy the Code
[ Last edited by BorderManager at 18-1-2009 04:26 PM ] |
|
|
|
|
|
|
|
cane nak letak coding tu?..leh bg cth full code tak?..
[ Last edited by pzan213 at 18-1-2009 06:57 PM ] |
|
|
|
|
|
|
|
ko beri apa yg ko nak display |
|
|
|
|
|
|
|
<?
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.. |
|
|
|
|
|
|
|
sorry lambat reply.. bz sikit
|
|
|
|
|
|
|
|
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++;
?> |
|
|
|
|
|
|
|
sorry tertinggal
$sql="SELECT * FROM $tbl_name WHERE nokp = '". $_SESSION['nokp'] ."' LIMIT ". $offset .",". $rowsPerPage;
$result=mysql_query($sql); |
|
|
|
|
|
|
| |
|