|
kalo nak buat bridge cane.??..nak amik maklumat dr 2 table melalui id yg sama
... |
|
|
|
|
|
|
|
nak tny..dlm DB phpmysql leh simpan gmbr ke?..aku dah wat utk papar gmbr..boleh..tp gmbr tu aku letak dlm folder yg aku wat sistem nie..pastu rename ngan nokp je... |
|
|
|
|
|
|
|
lg 1 cane coding utk setup printer..bile masuk je page tu..trus print... |
|
|
|
|
|
|
|
banyaknya soalan....jap aku jawap satu2
kalo nak buat bridge cane.??.
- $sql = "SELECT * FROM table1, table2 WHERE table1.id = table2.id AND table1.id = ". $_GET['id'];
nak tny..dlm DB phpmysql leh simpan gmbr ke?.
- jawapannya boleh... tapi jgn di amalkan.. berat db ko nanti...just simpan nama file je
cth
- <img src="<?= $row['image_name'] ?>" />
Copy the Code
bile masuk je page tu..trus print
kat |
|
|
|
|
|
|
|
// code lagi selamat, amalkan escape
$sql = sprintf("SELECT * FROM user WHERE id = %s", mysql_real_escape_string($_GET['id']) ) |
|
|
|
|
|
|
|
untuk elakkan sql injection
kalau nak lagi lagi selamat
// kita tau $id dalam bentuk integer sahaja
If( is_int($_GET['id']) ):
$sql = sprintf("SELECT * FROM user WHERE id = %s", mysql_real_escape_string($_GET['id']) );
Else:
print 'tidak sah';
die();
EndIf; |
|
|
|
|
|
|
|
cane nak setelkan mslh SMTP tu??...nak wat forgotten password tp function SMTP xberfungsi..cane nak bolehkan ia berfungsi..?
Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\xampp\htdocs\xampp\test\send_password_ac.php on line 52
Cannot send password to your e-mail address |
|
|
|
|
|
|
|
board..kalo klik button pastu print lak cane? |
|
|
|
|
|
|
|
lor tak sudah lagi SMTP ko ke???
ko guna XP ke WinServer?
kalau print ko buat la popup... kat < body onload="print();" > tu je |
|
|
|
|
|
|
|
Originally posted by BorderManager at 2-1-2009 12:38 AM
lor tak sudah lagi SMTP ko ke???
ko guna XP ke WinServer?
kalau print ko buat la popup... kat < body > tu je
xjd lagik SMTP....gune XP.............yg pprint utk body onload tu bleh...tp kalo kite klik button pastu kuar print cane? |
|
|
|
|
|
|
|
Boardmanager..cane..dpt takk?? |
|
|
|
|
|
|
|
sorry... aku tak de workstation nak test la.........sebab pc kat rumah, office & laptop semua pakai linux |
|
|
|
|
|
|
|
boardM...cane ek nak wat link mcm niee?...taukt ak katne nak cr code dier...
|
|
|
|
|
|
|
|
tu guna ccc + javascript (kat onmouseover)
nak tau code ko tengok la source code... sure ada punya |
|
|
|
|
|
|
|
oo..sat aku nak p tgk source code dier.. |
|
|
|
|
|
|
|
hmmm..dah tgk source code dier...pening sket sbb ader yg di hide..so xberape paham sgt code dier...kat mane ye nak blaja yg menu2 tu..... |
|
|
|
|
|
|
|
ape maksud
Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\xampp\htdocs\xampp\test\forgot.php on line 33
ape yg invalid tu yee?...
ni code aku
mail($email, "Your Password", "User Name: ". $fPass1["name"] ."\nPassword: ". $fPass2["password"],"FROM: [email protected]");
echo "Your Password has been sent to ". $email ."."; |
|
|
|
|
|
|
| |
|