Quotes'; $q = "select * from quote"; $r = mysqli_query($dbc, $q); echo '
Quote | Person | Created By | Date | Delete |
" . $row['quote'] . " | "; //person $q2 = "select name from people where person_id='" . $row['person_id'] . "'"; $r2 = mysqli_query($dbc, $q2); while($row2 = mysqli_fetch_array($r2)) { echo "" . $row2['name'] . " | "; } //created by $q2 = "select user_name from users where user_id='" . $row['user_id'] . "'"; $r2 = mysqli_query($dbc, $q2); while($row2 = mysqli_fetch_array($r2)) { echo "" . $row2['user_name'] . " | "; } //date $c = Carbon::createFromTimestampUTC(strtotime($row['creation_date'] . ' UTC')); echo '' . $c->format('l jS \of F Y') . ' | '; //del echo ''; echo ''; echo ' | '; echo '