-
Posts
289 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Ontario, Canada
-
Interests
Stuff and Things.
Drugs
Boobies
adam84's Achievements

Advanced Member (4/5)
0
Reputation
-
Thank man, but its not working at all. The color is saved as a long from VB and I want to covert it using PHP
-
Hey, We have a software program, where a user can set the color of different tasks and stuff. When the save it, the value in the database is an int. How would I go about converting that into a hex value. Red: 255 Green: 33280 Grey: 13026246 Any ideas, thanks
-
I am using SQLSRV to access my Database. I receive the correct value, I just cannot do anything with it because it is a date. I cannot even explode the returned value because it says its type date not type string
-
Howdy, I have a question about Dates in PHP 5.3.6. I queried my database (SQL Server 2008) and I got back two columns, a date(StartDate) and a time(StartTime). The software we used only allows the user to enter a StartDate, so that field always has a value, but there are instances where the StartTime is null (no time set). What I want to do is if there is a StartTime, concat it to the StartDate. If there is not StartTime, I want to add a default time. But when I do that, I get an error saying that I cannot combine a string and a date. I really do not understand why this is happening. I set up PHP 5.3.6 on a server, so I am not sure if there something in the php.ini file that is not allowing me or if this is something new. Some help please! Thanks if( $row['StartTime'] != null ) $sTime = $row['StartDate'] . " " . $row['StartTime']; //What I want '2011-05-03 17:58:12.000' else $sTime = $row['STartDate'] . " 00:00:00.000"; //What I want '2011-05-03 00:00:000'
-
Howdy, I create images from user input and I save them in a folder. Every user's images are all saved in the same folder. What I want is to all the user to view there images on my site, like normal sites do, but I dont want some random people to type in the address of the folder (ie http://www.myDomain.com/images/myImages) I want them not to have any access to that folder. I just dont know what permissions to set it to allow them. I have tried a bunch and I can either restrict access to the folder, but when I attempt to view the image on my site, they dont show up or they have access to the folder. Can anyone help me? Thanks
-
Alright, I got the span tag to show when I hover over the image. The only problem is that when the pop-up is large with goes behind the image next to it. Is there any way to make it so that the pop-up will be the front most obbject? body{ background:white; color:black; } #img_gallery{ margin:50px auto; width:900px; } #img_gallery a{ outline:none; border:none; } #img_gallery a img{border:none;} #tHeader{ width: 860px; overflow: hidden; height: 20px; background-color: #181818; color: white; text-align: left; font-weight: bold; } /* --- SLIDER --- */ #img_gallery #wrapper{ overflow:hidden; padding:4px 2px; width: 860px; float:left; height:60px; background-color:#181818; position: relative; height:220px; } #items{ margin:0px 0px; padding:0px; list-style:none; width:50000px; position: relative; letter-spacing:0em; height:200px; } #items li{ float:left; list-style:none; margin-right: 25px; } #items .thumb{ width:150px; height:210px; cursor:pointer; margin:0px; padding:0px; } #items .item{ position: relative; z-index: 0; } #fullimg .loading{ width: 24px; height: 24px; } #fullimg .thumb{ display:none; } #items .item p{ display:none; text-indent: -2000em; } #moveleft, #moveright{ margin:0px; height:150px; color: white; width: 16px; text-indent: -1000em; text-decoration: none; z-index: 1000; display:block; cursor: pointer; float:left; z-index: 0; } #moveleft{background: url('images/left.gif');} #moveright{background: url('images/right.gif');} #moveleft:hover, #moveright:hover{ background-position:bottom; } #items .item span{ visibility: hidden; } #items .item:hover{ background-color: transparent; z-index: 50; } #items .item:hover span{ /*CSS for enlarged image on hover*/ visibility: visible; top: 0; left: 50px; /*position where enlarged image should offset horizontally */ } #item span{ text-indent: -1000em; } #items .item span{ /*CSS for enlarged image*/ position: absolute; background-color: lightyellow; padding: 5px; left: -1000px; border: 1px dashed gray; color: black; text-decoration: none; width: 250px; } #items .item span img{ /*CSS for enlarged image*/ border-width: 10; padding: 2px; }
-
This is what I want to accomplish http://www.tutorialhero.com/click-37655-css_popup_image_viewer___css_popup_thumbnail_image_viewer._no_javascript.php the <span><img src="images/pg_rating.jpg" /></span> is the image that I want to have appear when the mouse hovers over the other picture
-
<div id="img_gallery"> <div id="tHeader"> New Movies</div> <a href="#" id="moveleft">Left</a> <div id="wrapper"> <ul id="items"> <li> <a href="viewMovie.php?movieID=1223" class="item"> <img class="thumb" src="images/ironMan.jpg"/> <span><img src="images/pg_rating.jpg" /></span> </a> </li> <li> <a href="viewMovie.php?movieID=1222" class="item"> <img class="thumb" src="images/ironMan2.jpg"/> <span><img src="images/pg_rating.jpg" /></span> </a> </li> </ul> </div> <a id="moveright" href="#">Right</a> </div>
-
I am new to css and I have had quite a bit of problems getting this to work. Firstly, I created javascript gallery to display my pictures and what I want is when the user hovers over the image, I want some text to appear. But I cannot get the text to show Any ideas on my problems. Thanks CSS: body{ background:white; color:black; } /* --- IMG GALLERY --- */ #img_gallery{ margin:50px auto; width:900px; } #img_gallery a{ outline:none; border:none; } #img_gallery a img{border:none;} #tHeader{ width: 860px; overflow: hidden; height: 20px; background-color: #181818; color: white; text-align: left; font-weight: bold; } #img_gallery #wrapper{ overflow:hidden; padding:4px 2px; width: 860px; float:left; height:60px; background-color:#181818; position: relative; height:220px; } #items{ margin:0px 0px; padding:0px; list-style:none; width:50000px; position: relative; letter-spacing:0em; height:200px; } #items li{ float:left; list-style:none; margin-right: 25px; } #items .thumb{ width:150px; height:210px; cursor:pointer; margin:0px; padding:0px; } #fullimg .loading{ width: 24px; height: 24px; } #fullimg .thumb{display:none;} #items .item p, #items .item span{ display:none; text-indent: -2000em; } #moveleft, #moveright{ margin:0px; height:150px; color: white; width: 16px; text-indent: -1000em; text-decoration: none; z-index: 1000; display:block; cursor: pointer; float:left; } #moveleft{background: url('images/left.gif');} #moveright{background: url('images/right.gif');} #moveleft:hover, #moveright:hover{ background-position:bottom; } /* ---Pop up---*/ #item:hover{ background-color: transparent; z-index: 50; } #item span{ /*CSS for enlarged image*/ position: absolute; background-color: lightyellow; padding: 5px; left: -1000px; border: 1px dashed gray; visibility: hidden; color: black; text-decoration: none; } #item span img{ /*CSS for enlarged image*/ border-width: 0; padding: 2px; } #item:hover span{ /*CSS for enlarged image on hover*/ visibility: visible; top: 0; left: 60px; /*position where enlarged image should offset horizontally */ } PHP echo "<div id=\"img_gallery\">"; echo "<div id=\"tHeader\"> New Movies</div>"; echo "<a href=\"#\" id=\"moveleft\">Left</a>"; echo "<div id=\"wrapper\">"; echo "<ul id=\"items\">"; while( $row = mysql_fetch_array( $r ) ){ echo "<li>"; echo "<a href=\"viewMovie.php?movieID=" . $row['movieID'] . "\" class=\"item\">"; echo "<img class=\"thumb\" src=\"" . $row['img_poster'] . "\"/>"; echo "<span><img src=\"media/ocean.jpg\" /></span>"; echo "</a>"; echo "</li>"; } echo "</ul>"; echo "</div>"; echo "<a id=\"moveright\" href=\"#\">Right</a>"; echo "</div><br clear=\"all\"/>";
-
Try this function check(n1,n2){ document.getElementById(n1).checked=true; document.getElementById(n2).checked=true; } Both n1 and n2 are variables, so when they are inside quotes, you are not using the variable, but rather just the string or whatever 'n1' and 'n2'.
-
i manually typed the statement in. I made sure that it was spelt correct. What is a full text index? I have never hear dof it before.
-
I am using mysql 5.0 and I wrote a query using the MATCH function (i guess you can call it that) and I keep getting this error any ideas? Table sport: sportID int sportName varchar famousPlayers longtext ..... SELECT * FROM sport WHERE MATCH ('famousPlayer') AGAINST ('Mike'); MySQL said: #1191 - Can't find FULLTEXT index matching the column list Anyone know what that means, or how i can fix it...? thanks