CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

Author: bender

tumpang tanye psl html n php

[Copy link]
Post time 30-1-2009 11:37 AM | Show all posts
thanks boardmanager..dah boleh..u r my hero..hehehe...lagi 1 kalo nak buat mcm inbox email kite tu..bile ader email bru masuk dier akan kuar bilangan kat tepi ader berape email yg bru masuk..cane ek..?
Reply

Use magic Report


ADVERTISEMENT


Post time 30-1-2009 12:55 PM | Show all posts
tu ko kena buat 1 field dlm database utk status email (unread,read)

lepas tu count ler $sql = "SELECT COUNT(*) FROM table WHERE email_status = 'unread'";
Reply

Use magic Report

Post time 31-1-2009 03:26 AM | Show all posts
Originally posted by BorderManager at 30-1-2009 12:55 PM
tu ko kena buat 1 field dlm database utk status email (unread,read)

lepas tu count ler $sql = "SELECT COUNT(*) FROM table WHERE email_status = 'unread'";



hmm..kene create table baru or selitkan status email tu kat table yg tmpt simpan email tu?...so nanti mase kite send email ke org tu..kite simpan status tu as unread la ye..set default dier...pastu bile org tu dah bukak email tu dier akan set read ke?..kalo nak setkan unread tu retila sbb just masukkan default unread tu dlm code insert..tp bila user dah bace email n dier akan tukar status kepada read tu buat cane?..update status ke?
Reply

Use magic Report

Post time 31-1-2009 09:54 AM | Show all posts

Balas #82 BorderManager\ catat

boleh aku tambah...
kalau nak bagi query tu laju sket... buat cenggini

$sql = "SELECT COUNT(email_status) FROM table WHERE email_status = 'unread'";

--> kita amik apa yang perlu je.. so nanti kalau data banyak... performance tak la teruk sangat..

sorry border.. menyampuk
Reply

Use magic Report

Post time 31-1-2009 07:34 PM | Show all posts
Originally posted by i212 at 31-1-2009 09:54 AM
boleh aku tambah...
kalau nak bagi query tu laju sket... buat cenggini

$sql = "SELECT COUNT(email_status) FROM table WHERE email_status = 'unread'";

--> kita amik apa yang perlu je.. so na ...



ooo..it's ok...tq....tapi cane nak wat tu?...tul ke aper yg aku kate kat post 83 tu?
Reply

Use magic Report

Post time 31-1-2009 08:46 PM | Show all posts
boardmanager...yg pasal popup dulu kan...kenape bile aku nak panggil data utk kuar kat popup dier tak kuar ek..tp bila aku xgune popup data tu ader plak..nape ek?
Reply

Use magic Report

Follow Us
Post time 31-1-2009 09:25 PM | Show all posts

Balas #85 pzan213\ catat

macam tu la...
nak bagi ok lagi.. just buat flag dgn 1 char je utk represent unread/read

cth:
U = unread
R = read
Reply

Use magic Report

Post time 31-1-2009 09:59 PM | Show all posts
tak pun ko letak as binary je 1 0

popup yg mana n
Reply

Use magic Report


ADVERTISEMENT


Post time 31-1-2009 11:01 PM | Show all posts
tol ke coding ni?..penggunaan AND..

$Query="UPDATE temujanji  SET status='$status' WHERE nokp = '$nokp' AND bil ='$bil' ";
Reply

Use magic Report

Post time 31-1-2009 11:03 PM | Show all posts

Balas #89 pzan213\ catat

btul la tu

nape.. tak jalan ka?
Reply

Use magic Report

Post time 31-1-2009 11:03 PM | Show all posts
betul la tu
Reply

Use magic Report

Post time 31-1-2009 11:03 PM | Show all posts
Originally posted by BorderManager at 31-1-2009 09:59 PM
tak pun ko letak as binary je 1 0

popup yg mana n



aku ader wat satu popup...

page 1 - page biase
page 2 - aku wat popup...

so data2 yg aku masukkan nak dipaparkan pada popup..kirenye aku post la data tu...tp apesal data tu tak kuar ek kat popup....

tp kalo aku gantikan page 2 tu kpd page biase...data tu kuar plak..
Reply

Use magic Report

Post time 1-2-2009 11:20 AM | Show all posts
mendap ka thread nih?
Reply

Use magic Report

Post time 1-2-2009 11:40 AM | Show all posts
Originally posted by i212 at 31-1-2009 11:03 PM
btul la tu

nape.. tak jalan ka?



jalan tu jln...tp dier xupdate dlm database..tp bile aku buang bil tu..dier update...tp dier update smua skali status yg punya ic yg sama...
Reply

Use magic Report

Post time 1-2-2009 01:05 PM | Show all posts
cuba check $bil tu ada value ke tak...
Reply

Use magic Report

Post time 1-2-2009 06:58 PM | Show all posts
dah post dah value tu dr page sblm tu...
Reply

Use magic Report


ADVERTISEMENT


Post time 2-2-2009 10:08 AM | Show all posts

Balas #96 pzan213\ catat

value tu sampai ke tak?...
cuba try test uji bubuh echo $bil tgk... ada value tak...
Reply

Use magic Report

Post time 2-2-2009 12:38 PM | Show all posts
dah isi pun bil tu...tp tu yg pelik dier tak update...hmmm...
Reply

Use magic Report

Post time 2-2-2009 02:24 PM | Show all posts
bil tu type ape?
Char ke atau Integer?

cuba buang tanda (') tu utk bil... ..

$Query="UPDATE temujanji  SET status='$status' WHERE nokp='$nokp' AND bil=$bil ";
Reply

Use magic Report

Post time 2-2-2009 02:35 PM | Show all posts
ha'a..lupe lak..kalo bil tu integer xyah isi ' ' kan?
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:47 PM GMT+8 , Processed in 0.070470 second(s), 30 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list