Hi!
i hope someone have some tips how i can code for this beacuse it take to long time so it only print a blank page
i have about 500 querys like this:
// Affärssystem
$query = "SELECT projektnr, COUNT(foretag) FROM intervjuer WHERE $leadsfraga1429 like '$utslagsfraga1429' OR ( $leadsfraga14291 like '$utslagsfraga1429' ) OR ( $leadsfraga14292 like '$utslagsfraga1429' ) GROUP BY projektnr DESC limit 1";
$result = mysql_query($query) or die(mysql_error());
// Print out result
while($row = mysql_fetch_array($result)){
echo "". $row['projektnr'] ." Affärsystem ". $row['COUNT(foretag)'] ." ";
echo "<br />";
}
// Arbetsbord
$query = "SELECT projektnr, COUNT(foretag) FROM intervjuer WHERE $leadsfraga1034 like '$utslagsfraga1034' GROUP BY projektnr DESC limit 1";
$result = mysql_query($query) or die(mysql_error());
// Print out result
while($row = mysql_fetch_array($result)){
echo "". $row['projektnr'] ." Arbetsbord ". $row['COUNT(foretag)'] ." ";
echo "<br />";
}
// Arbetsmiljöutbildning
$query = "SELECT projektnr, COUNT(foretag) FROM intervjuer WHERE $leadsfraga1446 like '$utslagsfraga1446' GROUP BY projektnr DESC limit 1";
$result = mysql_query($query) or die(mysql_error());
// Print out result
while($row = mysql_fetch_array($result)){
echo "". $row['projektnr'] ." Arbetsmiljöutbildning ". $row['COUNT(foretag)'] ." ";
echo "<br />";
}
Is there a better way to print out this ( notice that every query has a specific name like ( echo “”. $row[‘projektnr’] ." Arbetsmiljöutbildning “. $row[‘COUNT(foretag)’] .” "; ) so i need to get the same results but faster
Hope you guys understand what i mean
/Tony