ok this is the best I could come up with....it works but don't think it makes sense running a query against the DB for every loop...I am sure it can be done with arrays and foreach...been up too long and just can't get my head around it...maybe someone can clean my code...
ok solved prob no 1...maybe not the best way of doing it but it works...
echo "<table width=\"50%\" border=\"1\" cellpadding=\"0\" cellspacing=\"1\"><tr>";
$rowNum=0;
$start = 7*60+0;
$end = 13*60+0;
for($time = $start; $time<=$end; $time += 15)
{
if($rowNum > 3)
{
$rowNum = 0;
echo...
Hi group
I am playing with a small scheduling app and am getting slightly stuck...
Basically I have a table showing different time blocks for every 15mins filled in from mysql..at the moment is coded really ugly and works slow as each <td> runs a query..now I am trying to fix it and have got...
I have a simple math function
i query mysql and get a result such as 024 or 003
now i am getting the resultent variable and adding to it
by simply doing $newresult=$result +1
the thing is I get the newresult as 25 or 3 but I want them as 025 or 004 as I have further procesing to run on this...
need some suggestions here
have a php script doing a search using post with various options in a dropdown and a query in a textbox
now I would like that when a specific option is selected (only 1) in the dropdown, the textbox changes into another dropdown with pre-defined options
how would...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.