CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

Author: bender

tumpang tanye psl html n php

[Copy link]
Post time 10-1-2009 03:02 AM | Show all posts
  1. $to = "[email protected]";
  2. $passwd = $row['passwd'];
  3. $from = "[email protected]";
  4. $subject = "Your Password";
  5. $headers = "From: $from\r\n";
  6. $headers.= "Content-type: text/html\r\n";
  7. $message = "Your password is $password";
  8. $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
Reply

Use magic Report


ADVERTISEMENT


Post time 10-1-2009 04:18 PM | Show all posts
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');
Reply

Use magic Report

Post time 10-1-2009 11:59 PM | Show all posts
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

  1. <style type="text/css">
  2. <!--
  3. a:link {
  4.     color: #FF0000;
  5.     text-decoration: none;
  6. }
  7. a:visited {
  8.     text-decoration: none;
  9.     color: #0000FF;
  10. }
  11. a:hover {
  12.     text-decoration: underline;
  13.     color: #00FF00;
  14. }
  15. a:active {
  16.     text-decoration: none;
  17.     color: #FFFF00;
  18. }
  19. -->
Copy the Code


script tu ok je bila test kat server aku.......
** aku guna postfix
Reply

Use magic Report

Post time 11-1-2009 12:14 AM | Show all posts
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...
Reply

Use magic Report

Post time 11-1-2009 12:37 AM | Show all posts
ni aku dah wat..pastu cane nak selitkan dlm hyperlink tu??

<style type="text/css">
<!--
.link {
&#160;   color: #FF0000;
&#160;   text-decoration: none;
}
.visited {
&#160;   text-decoration: none;
&#160;   color: #0000FF;
}
.hover {
&#160;   text-decoration: underline;
&#160;   color: #00FF00;
}
.active {
&#160;   text-decoration: none;
&#160;   color: #FFFF00;
}
--></style>

<body bgcolor="#FFFFFF">
<p align="center"><a href="maklumatdiripelajar.php" target="mainFrame" class="link" >Maklumat Peribadi </a></p>
Reply

Use magic Report

Post time 11-1-2009 01:39 AM | Show all posts
  1. <html>
  2. <head>
  3. <title>Untitled Document</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" c>
  5. <style type="text/css">
  6. <!--
  7. a:link {
  8.     color: #FF0000;
  9.     text-decoration: none;
  10. }
  11. a:visited {
  12.     text-decoration: none;
  13.     color: #FF0000;
  14. }
  15. a:hover {
  16.     text-decoration: underline;
  17.     color: #0033FF;
  18. }
  19. a:active {
  20.     text-decoration: none;
  21.     color: #FF0000;
  22. }
  23. -->
  24. </style></head>

  25. <body>
  26. <a href="#">Link Address</a>
  27. </body>
  28. </html>
Copy the Code


ko send file php.ini kat sini
Reply

Use magic Report

Follow Us
Post time 11-1-2009 02:37 PM | Show all posts
Originally posted by BorderManager at 11-1-2009 01:39 AM


Untitled Document






Link Address



ko send file php.ini kat sini



maksud ko?.
Reply

Use magic Report

Post time 11-1-2009 02:53 PM | Show all posts
<!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 {
&#160;&#160; &#160;color: #FF0000;
&#160;&#160; &#160;text-decoration: none;
}
.visited {
&#160;&#160; &#160;text-decoration: none;
&#160;&#160; &#160;color: #0000FF;
}
.hover {
&#160;&#160; &#160;text-decoration: underline;
&#160;&#160; &#160;color: #00FF00;
}
.active {
&#160;&#160; &#160;text-decoration: none;
&#160;&#160; &#160;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&#160;
&#160; 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>&#160;
&#160; </font></div>
<p align="center"><font color="#000000"><strong>Status Kaunselor 2</strong></font></p>
<div align="center">
&#160; <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>&#160;
&#160; </p>
&#160; <p><a href="profilkaunselor.php" target="mainFrame" class="link" >rofil Kaunselor</a></p>
&#160; <p><a href="logout.php" target="_parent"&#160;&#160;class="link" >[Keluar]</a></p>
</div>
</body>
</html>

[ Last edited by  pzan213 at 11-1-2009 03:02 PM ]
Reply

Use magic Report


ADVERTISEMENT


Post time 11-1-2009 04:16 PM | Show all posts
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...

Reply

Use magic Report

Post time 12-1-2009 07:56 AM | Show all posts
hujung kotak tu image la
sama ada ko kat add sebagai image or sbagai background
Reply

Use magic Report

Post time 12-1-2009 09:50 AM | Show all posts
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..
Reply

Use magic Report

Post time 18-1-2009 03:07 AM | Show all posts
boardmanager..help me again...cane nak buat ni ek?..aku nak buat kire2 ader 10 mesej je dlm 1 page

Reply

Use magic Report

Post time 18-1-2009 04:24 PM | Show all posts
ooo n guna LIMIT
  1. $rowsPerPage = 20;

  2. $pageNum = $_GET['page'] ? $_GET['page'] : 1;

  3. $offset = ($pageNum - 1) * $rowsPerPage;

  4. $query = " SELECT * FROM table LIMIT $offset, $rowsPerPage";
  5. $result = mysql_query($query) or die('Error, query failed');
  6. while($row = mysql_fetch_array($result))
  7. {
  8.       echo $row['field'] . '<br>';
  9. }
Copy the Code

[ Last edited by  BorderManager at 18-1-2009 04:26 PM ]
Reply

Use magic Report

Post time 18-1-2009 06:50 PM | Show all posts
cane nak letak coding tu?..leh bg cth full code tak?..

[ Last edited by  pzan213 at 18-1-2009 06:57 PM ]
Reply

Use magic Report

Post time 18-1-2009 11:00 PM | Show all posts
ko beri apa yg ko nak display
Reply

Use magic Report

Post time 19-1-2009 12:35 AM | Show all posts
<?
session_start();
if(!session_is_registered(nokp)){
header("location:loginpelajar.php");
exit();
}
&#160;?>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" c>
&#160;<link rel="stylesheet" type="text/css" href="style2.css" />
</head>
<script type="text/javascript">
function check()
{
&#160;
&#160;        alert("No data to delete");
&#160;&#160;
}
</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'])){
&#160;   if(sizeof($_POST['chkbx'])){
&#160;       foreach($_POST['chkbx'] AS $val){
&#160;           $sql = mysql_query("DELETE FROM $tbl_name WHERE bil=".(int)$val)or die(mysql_error());
&#160;       }
&#160;   }
&#160;  &#160;
&#160;   // if successful redirect to delete_multiple.php
&#160;   if($sql){
&#160;       echo "";
&#160;   }
}
$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">&#160;
&#160; <br>
&#160;<table width="587" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
&#160;         <table width="584" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
&#160;           <tr bgcolor="#FEF6E2">&#160;
&#160;             <td width="83" align="center"><font color="#000000"><strong>Del</strong></font></td>
&#160;             <td width="139" align="center"><font color="#000000"><strong>Perkara</strong></font></td>
&#160;             <td width="225" align="center"><font color="#000000"><strong>Pengirim</strong></font></td>
&#160;           </tr>
&#160;           <?php
$x = 0;
while($rows=mysql_fetch_array($result)){
$x++;
?>
&#160;           <tr bgcolor="#FEF6E2">&#160;
&#160;             <td align="center"><input name="chkbx[]" type="checkbox" id="checkbox_<? echo $x; // you need a unique id per checkbox ?>" value="<? echo $rows['bil']; ?>"></td>
&#160;             <td align="center"><a href="petimasukpelajar2.php?perkara=<? echo $rows['perkara']; ?>"><? echo $rows['perkara'] ?></td>
&#160;             <td align="justify"><? echo $rows['pengirim2'] ?></td>
&#160;           </tr>
&#160;           <?php
}
?>
&#160;           <tr bgcolor="#FEF6E2">&#160;
&#160;             <td colspan="5" align="center"><input name="delete" type="submit" id="delete" value="Delete"></td>
&#160;           </tr>
&#160;           <?
mysql_close();
?>
&#160;         </table>
</form>
</td>
</tr>
</table></div>


ni code yg aku nak display..
Reply

Use magic Report


ADVERTISEMENT


Post time 21-1-2009 01:19 AM | Show all posts
board..dptt ak?
Reply

Use magic Report

Post time 23-1-2009 12:33 AM | Show all posts
sorry lambat reply.. bz sikit

  1. <?

  2. session_start();

  3. if(!session_is_registered(nokp)){

  4. header("location:loginpelajar.php");

  5. exit();

  6. }

  7. ?>



  8. <html>

  9. <head>

  10. <title>Untitled Document</title>

  11. <meta http-equiv="Content-Type" c>

  12. <link rel="stylesheet" type="text/css" href="style2.css" />

  13. </head>

  14. <script type="text/javascript">

  15. function check()

  16. {



  17.          alert("No data to delete");

  18.   

  19. }

  20. </script>

  21. <body>

  22. <?php

  23. $host="localhost"; // Host name

  24. $username="root"; // Mysql username

  25. $password="1234"; // Mysql password

  26. $db_name="nurani"; // Database name

  27. $tbl_name="inboxpelajar"; // Table name



  28. // Connect to server and select databse.

  29. mysql_connect($host, $username, $password)or die("cannot connect");

  30. mysql_select_db($db_name)or die("cannot select DB");



  31. // Check if delete button active, start this

  32. if(isset($_POST['delete'])){

  33.     if(sizeof($_POST['chkbx'])){

  34.         foreach($_POST['chkbx'] AS $val){

  35.             $sql = mysql_query("DELETE FROM $tbl_name WHERE bil=".(int)$val)or die(mysql_error());

  36.         }

  37.     }

  38.    

  39.     // if successful redirect to delete_multiple.php

  40.     if($sql){

  41.         echo "";

  42.     }

  43. }

  44. /******************/
  45. //yg kena tambah //

  46.     $rowsPerPage = 10;
  47.     $pageNum = $_GET['page'] ? $_GET['page'] : 1;
  48.     $offset = ($pageNum - 1) * $rowsPerPage;

  49.     $sql = "SELECT COUNT(*) AS total FROM $tbl_name";
  50.     $result = mysql_query($sql) or die('Error, query failed');
  51.     $row = mysql_fetch_array($result);
  52.     $total = $row['total']; //jumlah kesemua rekod
  53.     $maxPage = ceil($total/$rowsPerPage); // jumlah page
  54.         
  55. /******************/
  56. $sql="SELECT * FROM $tbl_name WHERE nokp = '". $_SESSION['nokp'] ."'";

  57. $result=mysql_query($sql);



  58. ?>

  59. <div id="Layer4" style="position:absolute; left:420px; top:88px; width:603px; height:211px; z-index:4">

  60.   <br>

  61. <table width="587" border="0" cellspacing="1" cellpadding="0">

  62. <tr>

  63. <td><form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">

  64.           <table width="584" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">

  65.             <tr bgcolor="#FEF6E2">

  66.               <td width="83" align="center"><font
  67. color="#000000"><strong>Del</strong></font></td>

  68.               <td width="139" align="center"><font
  69. color="#000000"><strong>Perkara</strong></font></td>

  70.               <td width="225" align="center"><font
  71. color="#000000"><strong>Pengirim</strong></font></td>

  72.             </tr>

  73.             <?php

  74. $x = 0;

  75. while($rows=mysql_fetch_array($result)){

  76. $x++;

  77. ?>

  78.             <tr bgcolor="#FEF6E2">

  79.               <td align="center"><input name="chkbx[]"
  80. type="checkbox" id="checkbox_<? echo $x; // you need a unique id per
  81. checkbox ?>" value="<? echo $rows['bil']; ?>"></td>

  82.               <td align="center"><a
  83. href="petimasukpelajar2.php?perkara=<? echo $rows['perkara'];
  84. ?>"><? echo $rows['perkara'] ?></td>

  85.               <td align="justify"><? echo $rows['pengirim2'] ?></td>

  86.             </tr>

  87.             <?php

  88. }

  89. ?>

  90. /******************/

  91. //yg kena tambah //

  92.     <tr bgcolor="#FEF6E2">
  93.       <td colspan="5" align="center">Page
  94.       <?
  95.           for($page = 1; $page <= $maxPage; $page++)
  96.           {
  97.             if($page == $pageNum)
  98.                 echo $page;
  99.             else
  100.                 echo " <a href="$self?page=$page">$page</a> ";
  101.           }
  102.       ?>
  103.       </td>
  104.     </tr>
  105.         

  106. /******************/

  107.            <tr bgcolor="#FEF6E2">

  108.               <td colspan="5" align="center"><input
  109. name="delete" type="submit" id="delete" value="Delete"></td>

  110.             </tr>

  111.             <?

  112. mysql_close();

  113. ?>

  114.           </table>

  115. </form>

  116. </td>

  117. </tr>

  118. </table></div>
Copy the Code
Reply

Use magic Report

Post time 29-1-2009 08:59 PM | Show all posts
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++;

?>
Reply

Use magic Report

Post time 30-1-2009 08:03 AM | Show all posts
sorry tertinggal

$sql="SELECT * FROM $tbl_name WHERE nokp = '". $_SESSION['nokp'] ."' LIMIT ". $offset .",". $rowsPerPage;
$result=mysql_query($sql);
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

25-1-2025 01:30 PM GMT+8 , Processed in 0.667350 second(s), 28 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list