|
||||
waalaikumsalam...
follow up questions: 1) kalau run script tu, ada keluar error tak? kalau ada, apa error yang dikeluarkan? 2) version PHP apa yg anda gunakan? daripada coding yg telah di-copy-paste-kan, saya tidak dapat mengenal pasti sebarang error atau masalah besar (masalah2 kecil adalah). mungkin ada tapi tak nampak... ini dia pembetulan kepada beberapa masalah kecil: viewall.php: PHP Code:
delete.php: PHP Code:
$id = $_GET["id"]; (untuk PHP 4.1.0 ke-atas), atau $id = $HTTP_GET_VARS["id"]; (untuk PHP 4.1.0 ke-bawah) |
|
||||
beberapa tips...
masalah2 kecil ni mungkin tak ada kena-mengena langsung dengan kenapa dia tak delete... tapi try dulu, mana tau
![]() kpd sesiapa yg berminat, ini dia beberapa tips kalau script anda tak berjalan dgn lancar:[list=1][*]tengok kalau ada apa-apa mysql/php error [*]pastikan semua reference kepada assiociative array di-quote-kan (cth: $myrow["id"], bukan $myrow[id])[*]guna $_GET["??"] atau $HTTP_GET_VARS["??"] utk access variable dari 'luar', cth: form atau url(delete.php?id=xx).[*]periksa semua ejaan dan case(huruf besar/kecil) mysql table/field[/list=1] |
|
||||
aku rasa elok lagi kalau guna single quote or whatever its called
i) $_GET['bleh'] ii) $_GET["bleh"] laju lagi i) $foo = 'yay'; i) and string $var = "hoo $foo"; ii) and string $var = 'hoo'.$foo; laju lagi ii) sebab " akan parse kan string tu. tak silap aku aa ![]() i may be wrong ![]()
__________________
Munzir + "/^[Hh](a)(z)\1\2[iI]$/" |
|
||||
kalau nak laju lagi guna 'Output Buffering'
<?php ob_start(); echo ("Hue heuhwew ewewuehwe"); ob_end_flush(); ?> hik hik... more better speed use cache scheme! =)
__________________
I hate when: vBulletin Message: Sorry! The administrator has specified that users can only post one message every 60 seconds |
|
||||
aku rasa html lagi laju....
... melawak je.... apa yang zaimlah ngan MHR taip tu betul... nampak mudah je, padahal kalau silap sket yang tu, habis la...
__________________
<form name="jump"> <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" style="border:1px #393F31 solid;color:#393F31;font:10px Verdana;font-weight:bold;" > <option value="0" style="background: #9CC8FE" selected>*SELECT-LINKS</option> <option value="http://www.gengturbo.org/" style="background: #FF0000">GENGTURBO</option> <option value="http://www.phixelgrafix.com/" target="new" style="background: #C6D607">PHIXELGRAFIX</option> <option value="http://dailydigital.phixelgrafix.com/" style="background: #FCBC45">OLD-BLOG</option> <option value="http://www.mesrahosting.net/" style="background: #FF99CC">WEBHOSTING</option> </select> </form> |
|
||||
boleh gak... tp still samer... php kena proses... alaaa.. takde per2
samer jer... korang buat jer mana2 pun.. bg aku kalau seperate lg elok... sbb kalau bukak fail php dlm dreamweaver ker golive ker.... kiter bleh tgk interface web kiter.. tu jer.. tp kalau pakai echo print semua.. kalau bukak php guna dreamweaver, nanti kat interface tu cam kosong jer.. so lambat skit development ![]() any way result biler run benda tuh still the same...
__________________
^_^ <== stay happy |
![]() |
«
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 |
| Add, Update and Delete using ASP | prompter46 | Website Programming | 6 | 25-04-2007 06:12 PM |
| Cara.com.my & Cara Local - Malaysian Web & Local Search | caracom | Websites Review and Suggestion | 0 | 30-11-2006 02:02 PM |
| Disable Delete & upload? how? | Zapgirl | Webmaster Tools | 2 | 19-11-2005 12:21 AM |
| kalau insert or delete lak camner | adique_7 | Website Programming | 2 | 03-05-2002 12:28 AM |
All times are GMT +8. The time now is 03:06 PM.
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.










[*]pastikan semua reference kepada assiociative array di-quote-kan (cth: $myrow["id"], bukan $myrow[id])[*]guna $_GET["??"] atau $HTTP_GET_VARS["??"] utk access variable dari 'luar', cth: form atau url(delete.php?id=xx).[*]periksa semua ejaan dan case(huruf besar/kecil) mysql table/field[/list=1]



Linear Mode

