CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

1234
Return to list New
Author: ainun_sweet

leh tolng x para expert php

[Copy link]
Post time 2-1-2010 11:22 AM | Show all posts
aku try coding ni
Reply

Use magic Report


ADVERTISEMENT


Post time 2-1-2010 11:32 AM | Show all posts
code explode("","") nih sapa penah pakai?
nak kuarkan value dia memang kena pakai code print_r($explode("",""))?
kalau pakai echo tak boleh ek?
Reply

Use magic Report

Post time 2-1-2010 12:46 PM | Show all posts
explode nk tukar string ke array

cth $str = "bas,basikal,motosikal";
$ar = explode(",", $str);
print_r($ar) // result array(bas,basikal,motosikal);
Reply

Use magic Report

Post time 11-1-2010 11:36 AM | Show all posts
Salam...nk tnya.....cmner nk get value from checkbox...maksudnye kita dh pilih,dh checked n submit..
pastu nk edit balik dalam keadaan checkbox tu dh checked....
sy wat x jd la...dh google x phm konsep....helpp...
Reply

Use magic Report

Post time 11-1-2010 04:29 PM | Show all posts
ok got new problems and my brain jammed..
so here there problem...

aku ada textarea,
aku nak textarea itu dipost (taknak "get"),
dan perkataan yang ada boleh didetect by row..
any idea?

meh  ...
dune1989 Post at 31-12-2009 20:58


ada cara lain gak..
guna function nl2br()..

e.g:
$ayatpawer = $_POST['ayatpawer'];
echo nl2br($ayatpawer);

nak test kopipes camni je..

<?php

$ayatpawer = "Nama saya Muhammad Hafiz Bin Hussin
umur saya 20 tahun,
saya suka bermadah cinta dengan PHP dan MySQL";

echo nl2br($ayatpawer);
?>

tak kisah nak boh brape byk line break pun..
dia akan tetap harcoded ayat2 tu..
ikut sesuka peng'key in'...
Reply

Use magic Report

Post time 11-1-2010 04:39 PM | Show all posts
64# tokma

memula pastikan value checkbox tu dipanggil..

e.g:

$sql= mysql_query("SELECT * FROM table
        WHERE id = $id")or die (mysql_error());
        
  $row=mysql_fetch_assoc($sql);
  $cetak   = $row['cetak'];

<input type="checkbox" name="cetak" size="63" value="1" <?php if ($row['cetak'] =="1") { echo "checked";} else {} ?>

penerangan:

akak setkan if ($row['cetak'] =="1")
sebab dlm database simpan value 1 sebagai dah cetak..
so tepulang pd tokma utk set value sebagai apa..
tp pastikan ianya adalah value dr dlm database..
Reply

Use magic Report

Follow Us
Post time 11-1-2010 11:57 PM | Show all posts
terror akak n... hehe dah jadi cikgu
Reply

Use magic Report

Post time 12-1-2010 12:24 PM | Show all posts
64# tokma

memula pastikan value checkbox tu dipanggil..

e.g:

$sql= mysql_query("SELECT * FROM table
        WHERE id = $id")or die (mysql_error());
        
  $row=mysql_fetch_assoc($sql ...
ana_una Post at 11-1-2010 16:39



salam..akak...
kalu cam gini...
first select * table1.........n slpas tu kite tick box insert into table2.......
jadi kite nak amik value from table2.....


misal.....
table1
<input name="list[]" type="checkbox" value="<? echo $idHItem;?>"<? if ($rowItem['flagWajib'] == 'Y'){?> onClick="return readOnlyCheckBox()" checked <? }?> >
<input name="amItem[]" type="text" value="<?=$amItem;?>" />

table2
select * table2 ...
checkbox tu tick dr table2 pulak..

ala...camner nk explain...akak paham?
Reply

Use magic Report


ADVERTISEMENT


Post time 12-1-2010 02:34 PM | Show all posts
66# ana_una

salam kak..xpe laa..dh fhm mane silap..ok thanks....
Reply

Use magic Report

Post time 13-1-2010 10:52 AM | Show all posts
hehehe...
tak sempat akak nak kabo yg akak tak paham...

gud.. troskan tau..
Reply

Use magic Report

Post time 14-1-2010 12:29 PM | Show all posts
70# ana_una

Hehe...dh jadi..tengah truskan ni wat sistem..ade error lain plk..tp insyaallah leh wat..:pompom:
thanks akak..
Reply

Use magic Report

Post time 14-1-2010 05:40 PM | Show all posts
70# ana_una ehh..akak pon tau php ek...kak ajar saya buat login kak
Reply

Use magic Report

Post time 14-1-2010 05:58 PM | Show all posts
yup... bila ko enter ada \n tu...but kalau view kat phpmyadmin tak nampak \n, tu pasal replace dgn < br>
BorderManager Post at 2-1-2010 11:08 AM


thanks bro..menda tu jadi
Reply

Use magic Report

Post time 15-1-2010 12:04 PM | Show all posts
70# ana_una ehh..akak pon tau php ek...kak ajar saya buat login kak
dune1989 Post at 14-1-2010 17:40


dah jadik ke page login tu?
kalo tak mo jadi..
pm akak..
akak bg contoh skrip tros..
yg ada redirect ke different pages..
kalo nak main page ke... member page ke...
Reply

Use magic Report

Post time 15-1-2010 12:04 PM | Show all posts
70# ana_una

Hehe...dh jadi..tengah truskan ni wat sistem..ade error lain plk..tp insyaallah leh wat..:pompom:
thanks akak..
tokma Post at 14-1-2010 12:29


ur welkam
Reply

Use magic Report

Post time 17-1-2010 09:40 AM | Show all posts
Guna html dan NVU lagi senang
pegi kat web ni : http://tinyurl.com/yd53gfy
Reply

Use magic Report


ADVERTISEMENT


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

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


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

27-1-2025 09:18 PM GMT+8 , Processed in 0.215963 second(s), 27 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list