Jump to content

fooDigi

Members
  • Posts

    250
  • Joined

  • Last visited

About fooDigi

  • Birthday 05/05/1981

Profile Information

  • Gender
    Male
  • Location
    Duluth, Mn
  • Interests
    drunken puppy dog frisbee golf

fooDigi's Achievements

Member

Member (2/5)

1

Reputation

  1. Oh, this is with html divs? Sorry, can't help further... maybe html5 and canvas? good luck!
  2. found the 'drawStar' function below from stack overflow user licson, made this script draw random stars... is this more of what you need? Edit: sorry, misread what you said.... this draws stars. still a good function though, lol. How do you plan to determine the boundaries, or the dynamics of each polygon? // function grabbed from user "licson" on stackoverflow.com function drawStar($img,$x,$y,$radius,$sides,$color,$spikness=0.5) { $point =array(); $t = 0; for($a = 0;$a <= 360;$a += 360/($sides*2)) { $t++; if($t % 2 == 0) { $point[] = $x + ($radius * $spikness) * cos(deg2rad($a)); $point[] = $y + ($radius * $spikness) * sin(deg2rad($a)); }else{ $point[] = $x + $radius * cos(deg2rad($a)); $point[] = $y + $radius * sin(deg2rad($a)); } } return imagefilledpolygon($img,$point,$sides*2,$color); } $im = imagecreate(500, 500); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); for($i=0; $i<10; $i++) { drawStar($im, rand(0,500), rand(0,500), rand(20,50), rand(5, , $white); } // output image to browser header('Content-Type: image/jpeg'); imagejpeg($im,"",100); // destroy the image imagedestroy($source); imagedestroy($im);
  3. If you are working within an image you can use the GD functions to draw lines... http://php.net/manual/en/function.imageline.php you would have to figure out exactly where each line begins and ends (x,y coordinates), and you can specify color. hope this helps.
  4. assuming you are trying to use jquery and you have the libraries included already.... $(.linkclick).click(function(){ window.location.href = "/MainPage.php?value=" + $("#searchvalue").val(); }); <input type="text" id="searchvalue" /> <a href="javascript:;" Class="linkclick">click</a>
  5. fooDigi

    PHP Query

    but you can use the '%' like WHERE Department LIKE '%:dept%'
  6. fooDigi

    PHP Query

    Might have better luck posting this in the mysql forum http://forums.phpfreaks.com/forum/15-mysql-help/
  7. Because that would be too easy... lol, You had very good suggestions, and OP should listen to you. I shouldn't be clogging up the flow. first time i've used this site in years.
  8. I could be wrong, but I was assuming the issue was with the join of the tables... the date filter can be added later. well, let's see if he fixed it...
  9. SELECT r.roomID R, rb.roomID RB FROM rooms r LEFT OUTER JOIN roomsbooked rb ON r.roomID = rb.roomID WHERE rb.roomID IS NULL should query all room records that are not booked.... i think thanks psycho, for the correction.
  10. You should probably try joining the tables more like this... SELECT * FROM rooms r LEFT OUTER JOIN roomsbooked rb ON r.roomID = rb.roomID where rb.roomID = NULL if that makes any sense... I threw this out there, and obviously havent tested...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.