Terima Kasih
skrip saya sbb: (databisa tersimpan di Client, but tdk dapat di sempan di Server)
/* make connection to database */
mysql_connect("$hostname", "$username", "$password") OR DIE("Unable to connect to database");
/* select the database */
@mysql_select_db( "$dbName") or die( "Unable to select database");
/* Insert the info into radcheck */
$query_radcheck = "INSERT INTO Server VALUES('','$UserName','Password','$Password')";
$result_radcheck = MYSQL_QUERY($query_Server);
$query_Clients = "INSERT INTO Clients VALUES('$FirstName','$LastName','$UserName','$Password','$Address','$City','$State','$Zip','$Country','$Email','$Phone')";
$result_Client = MYSQL_QUERY($query_Clients);
echo $query_Clients;
echo $query_Server;
/* Close the database connection */
MYSQL_CLOSE();
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Fri Sep 5, 2003 7:23 am
Show Message Info
#2024 of 14572
Msg List
View Source
Use Fixed Width Font
Unwrap Lines
Ruzmana Ruzmana
anamzur@...
Send Email Send Email
Forward < Prev Message | Next Message >
Expand Messages Author Sort by Date
Menulis data ke 2 tabel bersamaan?
Bagaimana cara menulis data (insert data) ke dalam dua tabel yang berlainan? saya sudah mencobanya but gak bisa nulis... Mohon pencerahannya. Terima Kasih ... Ruzmana Ruzmana
anamzur@...
Send Email Sep 5, 2003
7:23 am
Re: Menulis data ke 2 tabel bersamaan?
$query_radcheck = "INSERT INTO Server VALUES('','$UserName','Password','$Password')"; jumlah fieldnya sudah bener ada 3 ? kok ada 2 password ya, memang sengaja...
ardi@...
ziten2001
Offline Send Email Sep 5, 2003
7:57 am
Re: Menulis data ke 2 tabel bersamaan?
Terima kasih atas pencerahannya: Ternyata jumlah fieldnya nggak sama, saya kurang teliti.... Thanks a lot... ardi@... wrote: $query_radcheck = "INSERT...
Tidak ada komentar:
Posting Komentar