Like SystemiConnectFri 15 Oct 2021, 04:50
Auto Save MessagesLGforumFri 26 Feb 2021, 13:31
New tutorial questionTheCrowMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)LGforumSun 14 Feb 2021, 01:25
LGforum (2806)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Mr.Easybb (1587)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Bloodbath (745)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Rukiafan (533)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Dom (513)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
puppycheese (446)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
pedro (330)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Neymar (301)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Hitsu (281)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 
Flora (275)
insert data from mySQL database into a table Vote_lcapinsert data from mySQL database into a table Voting_barinsert data from mySQL database into a table Vote_rcap 


insert data from mySQL database into a table

avatarW3SCHOOLSFAN
Status : No status yet...

Posts : 2
Join date : 2013-09-22
Fri 17 Jun 2016, 15:16
(sorry for the bad post, i'm not on my laptop. I'll make sure to edit it asap when i'm on laptop)

If

ok so i have this code
Code:
// SOME CODES HERE
INSERT INTO "mydb"
VALUES "db1"
echo SELECT * from mydb

i know it's a mess. i'm on phone now, the version of the code was not like that.
i want to ask. How to print the data fromb with a table?
Master TrollMaster Troll
Status : No status yet...

Posts : 9
Join date : 2016-06-18
Sun 19 Jun 2016, 08:59
You want to wrap data loaded from mySQL inside a table? Here it goes.

Code:
[panda=html]<?php
# some codes
echo "<table>
<tr>
<th>Some data</th>
<th>Data 2</th>
<th>Data 3</th>
// continue writing if you have data bigger than 3
</tr>";

while($row=mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['firstData'] . "</td>";
// keep continuing the above line as much as you wish
echo "</tr>";

There you go