|
||||
progmania:
cuba check the sql query "SELECT * from personal WHERE emp_id=$pwd" ... ada tak salah eja table name atau column name... yg keduanya, tambahkan 'single quotes' pada $pwd dan $name, macam ni: PHP Code:
|
|
||||
ok problem solve (change whole coding).... tapi nak tanya boleh tak kalau nak buat cam coding kat atas tu
$result = mysql_query("SELECT * from personal WHERE emp_id=$pwd AND emp_name=$name"); tapi panggil sekali 2 table. contoh table personal dan company, pastu display sekali.... TQ...
__________________
Set the goal, push to the limit, reach the top and u'll be proud.. Try lah!
|
|
||||
Quote:
Code:
SELECT * FROM personal, company WHERE personal.emp_id=$pwd AND personal.emp_name=$name AND company.whatever=$ntahapapa OR company.apapa=$whatever Code:
SELECT * FROM personal, company WHERE personal.emp_id=company.emp_id ![]() link utk belajar SQL: http://www.w3schools.com/sql/default.asp |
![]() |
«
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 |
| where can i find these type of scripts! | mr_kim85 | Website Programming | 2 | 21-08-2006 06:42 AM |
| Funny cant find | davcheong | Showcase | 4 | 02-11-2005 12:33 AM |
| Internal Server Error - ASP error | ladyheart2612 | Website Programming | 0 | 21-07-2005 09:22 AM |
| How did you find your host? | Helen | Paid Hosting Discussion Forum | 10 | 29-10-2004 06:55 PM |
| vBulletin Style *Where 2 Find* | zmiey | Website Programming | 9 | 09-10-2002 05:14 PM |
All times are GMT +8. The time now is 01:40 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.





Set the goal, push to the limit, reach the top and u'll be proud.. Try lah!






memang saya ader pakai primary key pun....walaupun ader skit error tapi rasernyer boleh di modify sendiri...
Linear Mode

