php - Results and timing table -


so far i've done google spreadsheets, issues import range , desire make better , more beautiful. before looked this: link google spreadsheet

i want mysql , php. i've done various tables in database (tables: user, class, team, time, country).

now i's far, web form got finish time mysql table updating status in time table , finish time = on update current_timestamp, think have working ranking system well. stuck "time", "differ. leader","diff.rev", , "speed"

code far:

$results = $mysqli->query("    select klass, nimi, synd, teamnimi, start, time('finish') finish bc2014 t1     inner join bc2014aeg t2 on t1.bc2014_id = t2.bc2014_id    klass = 'ds1 (1 koera toukerattavedu al.14 a.)' "); 

and:

print '<table class="mytable7">'; echo "<tr><th>  klass ds1 $total_tvp1  </th></tr>"; print '</table>';  print '<table class="mytable7">'; echo "<tr><th>koht </th><th>klass </th><th>liikme nimi </th><th>synniaeg</th><th>tiim</th><th>start</th><th>finish</th><th>time</th><th>dif.leader</th><th>dif.previous</th><th>km/h</th></tr>"; while($row = $results->fetch_array()) {     $timestamp = strtotime($row['synd']);     print '<tr>';     print '<td>' .$row["ranking"].'</td>';     print '<td>'.removeparanthesis($row["klass"]).'</td>';     print '<td>'.$row["nimi"].'  '.$row["perekonnanimi"].'</td>';     print '<td>'.$date = date('d-m-y', $timestamp).'</td>';     print '<td>'.$row["teamnimi"].'</td>';     print '<td>'.$row["start"].'</td>';     print '<td>'.$row["finish"].'</td>';     print '<td>'.$row["sum('finish'-'start'something that"].'</td>';     print '<td>'.$row["difleader"].'</td>';     print '<td>'.$row["difprev"].'</td>';     print '<td>'.$row["speed"].'</td>';     print '</tr>'; 

and visual:

enter image description here

i'm trying time, difeerences speed , place work.

basically can see code, use print commands instead of them can use 1 print of them, in way reduce load time. question want display time dif.leader , rest of them in page?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -