Programming
Casual
350

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 


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 comment and discussion.
Login Here
Sponsored

Oppss... No sponsors yet

Popular Posts
Complete Basic Course in Kali...
Djie sam soe Djie sam soe
Linux
9817
2
Top

Gps Tracker Seccodeid Free Too...
Djie sam soe Djie sam soe
General
6127
167
Top

Free Proxy List
Sandidi Sandidi
Networking
3047
3
Top

Mass Reverse IP Unlimited
ImamWawe ImamWawe
Tools Hacking
2330
11
Top

Report McAfee Antivirus Hurrri...
Indrasp Indrasp
Windows
1682
93
Top

Related Post

Youtube Video

Subscribe