Programming
Casual
541

Php eror in line 9






  11-Sep-2020 20:47:17



Bang gw lagi belajar crud di php pas gw run eror di line 9 dah gw cek database bener,file koneksi.php udah bener juga,database juga udah terhubung tapi kok eror ya gak bisa nampilin data dari isi tabel database?

Bimbinganya bang 

<?php 

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'] ?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

  <td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a> |

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php 

*Beware click the link!


DISCUSSION



11-Sep-2020 20:49:15

Kurang tanda titik koma itu kak dibagian name




Reply


11-Sep-2020 20:55:12



Iya gw baru liat kurang tanda titik koma kwkw


Reply




11-Sep-2020 20:53:51

Tutup loopingnya gak ada lo teliti lagi bagian ini

while($data = mysql_fetch_array($query_mysql)){

}

Itu lo kurang tutup } sama tutup php





Reply


11-Sep-2020 20:54:33



Bentar bang wa teliti dulu


Reply


11-Sep-2020 21:00:50



Dia lupa tutup phpnya itu


Reply




11-Sep-2020 20:54:45

Ngopi dulu bro




Reply

Lo copas ini aja 

<?php 

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'];?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

  <td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a> 

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php } ?>

Lu teliti lagi lu gak konsentrasi bro banyak yang salah




Reply


11-Sep-2020 21:01:59



<?php

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'];?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

<td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a>

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php } ?>

Gini bang?


Reply


11-Sep-2020 21:03:08



Lu coba bisa ga?

Copas aja komen gw


Reply




11-Sep-2020 21:00:08

Gmn udh kelar?




Reply

<?php

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'];?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

<td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a>

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php } ?>



Reply


11-Sep-2020 21:04:15



Bener tuh lo coba run lagi


Reply

Dah bisa bang




Reply


11-Sep-2020 21:05:31



Sip klo dah bisa


Reply


11-Sep-2020 21:06:01



Lain kali lu cek lebih teliti bro 


Reply


11-Sep-2020 21:06:20



Namanya jga masih belajar bang


Reply


11-Sep-2020 21:06:42



Okee lanjut 


Reply


11-Sep-2020 22:47:46



Mantoel ๐Ÿ”ฅ


Reply




11-Sep-2020 21:15:48

Baru mau bantu jawab udah solve ternyata




Reply




11-Sep-2020 21:28:33

Tutup kurung sama php ?> bagian bawah 




Reply

Ehem, btw butuh jasa buat web ?

Menggunakan php native, CI, heheh

Nb : Laravel, Vue, node js, etc sorry belum bisa๐Ÿ™๐Ÿป. Harga ? Email saya saja hehehe




Reply

Login for report, comment and join discussion
Login Here
Sponsored

Popular Posts
Gps Tracker Seccodeid Free Too...
General
21946
208
Top


Djie sam soe Djie sam soe
Complete Basic Course in Kali...
Linux
14816
4
Top


Djie sam soe Djie sam soe
Free Proxy List
Networking
3745
3
Top


Sandidi Sandidi
Need ida pro crack anyone have...
Reverse Engineering
2669
29
Top


Member Seccodeid Rei
Xampp msyql error cant running
Web Development
2394
25
Top


Karno si kribo Karno si kribo

Related Post

Youtube Video

Subscribe