|
||||
script
ini file : admin.approve.member.php
<?php include ('Connections/star.php');// file yg ada conn to dbase nyer script. $sql_check = mysql_query ("SELECT * FROM user_mgt_temp"); $num_rows = mysql_num_rows ($sql_check); if ($num_rows == 0) { echo 'Tiada permohonan yang perlu disahkan'; } else { while($row = mysql_fetch_array($sql_check)) { $user_id = $rows["user_id"]; $user_name = $row["user_name"]; $user_pword = $row["user_pword"]; $user_hint_pword = $row["user_hint_pword"]; $user_fullname = $row["user_fullname"]; $user_email = $row["user_email"]; $user_startdate = $row["user_startdate"]; $user_finishdate = $row["user_finishdate"]; $user_status = $row["user_status"]; } } ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <p align="center">Borang Pengesahan Ahli allSTARian.net</p> <table width="350" border="0" align="center" cellpadding="0" cellspacing="1"> <form name="approveform" action="../approvedmembership.parse.php" method="post"> <tr> <td width="192">Nama Pengguna</td> <td width="182"><?php echo $user_name; ?> </td> </tr> <tr> <td>Katalaluan</td> <td><?php echo $user_pword; ?> </td> </tr> <tr> <td>Katakunci bagi Katalaluan</td> <td><?php echo $user_hint_pword; ?> </td> </tr> <tr> <td>Nama Penuh</td> <td><?php $user_fullname; ?> </td> </tr> <tr> <td>Emel Pengguna</td> <td><?php echo $user_email; ?> </td> </tr> <tr> <td>Tahun Masuk</td> <td><?php echo $user_startdate; ?> </td> </tr> <tr> <td>Tahun Keluar</td> <td><?php echo $user_finishdate; ?> </td> </tr> <tr> <td>Status STAR</td> <td><?php echo $user_status; ?> </td> </tr> <tr> <td> </td> <td><input name="mohon" type="submit" id="mohon" value="Sah"></td> </tr> </form> </table> </body> </html> ini plak file approvedmembership.parse.php <?php require_once('Connections/star.php'); $user_name = $_POST['user_name']; $user_pword = $_POST['user_pword']; $user_hint_pword = $_POST['user_hint_pword']; $user_email = $_POST['user_email']; $user_fullname = $_POST['user_fullname']; $user_startdate = $_POST['user_startdate']; $user_finishdate = $_POST['user_finishdate']; $user_status = $_POST['user_status']; /* Strip any slashes in case user entered any esacped char */ $user_name = stripslashes($user_name); $user_pword = stripslashes($user_pword); $user_hint_pword = stripslashes($user_hint_pword); $user_email = stripslashes($user_email); $user_fullname = stripslashes($user_fullname); $user_startdate = stripslashes($user_startdate); $user_finishdate = stripslashes($user_finishdate); $user_status = stripslashes($user_status); //Check in the dbase whether username exist , if does user must enter other username $insert_value = mysql_query("INSERT INTO user_mgt (user_id, user_name, user_pword, user_hint_pword, user_email, user_fullname, user_startdate, user_finishdate, user_status) VALUES ('', '$user_name', '$user_pword', '$user_hint_pword', '$user_email', '$user_fullname', '$user_startdate', '$user_finishdate', '$user_status')") or die (mysql_error()); if(!$insert_value) { echo 'Cannot insert to dbase'; } else { echo 'Value Added into user_mgt!'; $userid = mysql_insert_id(); $subject = "Your Membership at allSTARian.net"; $message = "Dear $fullname, Thank you for registering at allSTARian.net, http://www.allstarian.net! You are two steps away from logging in and accessing our exclusive members area. To activate your membership, Please click here : http://www.allstarian.net /activate.php?id=$userid&code=$user_pword Once you activate your membership, you will be able to login with the following information, Username : $user_name Password : $user_pword Thanks! The Webmaster This is automated response, please do not reply!"; mail($user_email,$subject,$message); } $del_user_temp = mysql_query("DELETE FROM user_mgt_temp WHERE user_id = $userid"); ?> error yg kuar plak : Fatal error: Failed opening required 'Connections/star.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\star\admin\admin.approve.member.php on line 2 |
|
||||
betul ke nama file connection tuh star.php? bintang.php?
aku rasa.. ada kebarangkalian benarnya lebih kepada "START.php". agaknya camtuh laa logiknya ![]() PHP Code:
Fatal error: Failed opening required 'Connections/star.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\star\admin\admin.approve.member.php on line 2 ---------------------------------------- fail star.php gagal dibuka. dir tak kena. selain tuh penggunaan slash dan dot syntax = example : ../../file.php ../file.php here.. aku pun selalu jadi camnih.. tambah plak kalau file tuh berada difolder yang berlainan antara satu sama lain.. jadi ada baiknya setkan var utk $rootdir contohnya.. then masukkan full url. tah ler.. lama dah tak menghadap php.. tanya MHR.. tiap2 hari dia makan php. :P |
|
|||
huk aloh ko nie...
...aku takleh tulung ler...koz aku b'ngap bab php...ihik2 |
|
||||
pasal probaku tu.. aku dah discover dah.. aku nyer mysql corrupt. thanks to moderator bazet.geo sbb tulong aku... neway, thanks gak sbb korg berusaha nak bgth aku apa solution to my prob tu.. syukran!
__________________
To follow the path: Look to the master, Follow the master, Walk with the master, See through the master, Become the master. |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for MLM Php script | masrule | Website Programming | 0 | 24-01-2007 01:56 PM |
| Need Help With My Script | marukochan | Website Programming | 1 | 07-12-2006 04:52 PM |
| Help Me With My First Php Script !!!! | mya | Website Programming | 17 | 24-01-2004 06:12 PM |
| my script can't run..why? | therion | Website Programming | 7 | 23-10-2003 05:14 PM |
| cgi script | Seman | Website Programming | 6 | 16-09-2003 05:46 PM |
All times are GMT +8. The time now is 10:23 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.















Linear Mode

