![]() |
# 1 |
Permanently Banned
|
בעיה בפקודה
אני לומד PHP ואני מנסה כבר כמה ימים להצליח להכניס למס נתונים
ולהוציא אני קצת נתקעתי שמה ויש לי בעיה בפקודה <?php $host="localhost"; $user="ali_user"; $password="password"; $db="ali_base"; $table="ali_base"; //your default table/course name mysql_connect($host,$user,$password) or die("<BR><BR><B>ERROR:</B> cannot connect to MySQL server.<BR>");/* במקרה של כשלון בנסיון ההתחברות, הסקריפט ידפיס הודעת שגיאה והתוכנית תעצר. */ $query = mysql_query("insert into gb(fild1,fild2,fild3]) values('123','234','345')") or die("<BR><BR><B>ERROR:</B> problem.<BR>"); $select_query = "mysql_query(select * from table) or die(mysql_error())"; while(@($query = mysql_fetch_array($select_query))) { $fild1 = $query[fild1]; $fild2 = $query[fild2]; $fild3 = $query[fild3]; echo "ðúåðéí<br><BR> "; echo "$fild1"; echo "<br>"; echo "$fild2"; echo "<br>"; echo "$fild3"; } echo "<BR><BR>"; ?> זה כל הפקודה שיש בדף האם יש בעיות בזה? כי ז הלא עובד |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
כלים לאשכול | |
תצורת הצגה | |
|
|