Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: 9h1lo
  • Order by date
  1. 9h1lo

    Table with schedule from mysql

    updated again...had to add some other minon stuff...it explains itself.... mysql_select_db("intranet", $con); echo "<table width=\"50%\" border=\"1\" cellpadding=\"0\" cellspacing=\"1\"><tr>"; $rowNum=0; $start = 7*60+0; $end = 19.80*60+0; for($time = $start; $time<=$end; $time += 15) {...
  2. 9h1lo

    Table with schedule from mysql

    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...
  3. 9h1lo

    Table with schedule from mysql

    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...
  4. 9h1lo

    Table with schedule from mysql

    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...
  5. 9h1lo

    PHP math addition

    or better $newidno=sprintf("%03s\n", $lastid+1); to set as variable
  6. 9h1lo

    PHP math addition

    solved it: printf("%03s\n", $lastid+1);
  7. 9h1lo

    PHP math addition

    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...
  8. 9h1lo

    Dropdown appears on selection from first dropdown

    thanks for the tip...is this javascript or php ?
  9. 9h1lo

    Dropdown appears on selection from first dropdown

    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...

Part and Inventory Search

Back
Top