Jump to content

king arthur

Members
  • Posts

    335
  • Joined

  • Last visited

    Never

About king arthur

  • Birthday 06/14/1967

Profile Information

  • Gender
    Not Telling
  • Location
    UK HQ

king arthur's Achievements

Member

Member (2/5)

0

Reputation

  1. You will need the ftp details for the site you are uploading to. Then upload the files via ftp using an ftp client. I actually use IE for ftp without any problems.
  2. Usually when stuff like that happens it means you've got a missing closing tag somewhere, but I wouldn't like to say where.
  3. Put a die statement after your queries, e.g. $query3 = mysql_query($querysql3) or die(mysql_error()); and see if it is getting an error there.
  4. You can get the same page to behave differently depending on if the form has already been submitted or not. When a form is submitted by POST method for example, there will be $_POST variables containing the values from the form fields. So you can check to see if these exist. if(isset($_POST["your_form_field_name"])) { .....do something with the submitted form values... } else { ....output the form as it has not yet been submitted... }
  5. You can also just do $tNum = mysql_result($techMatch, 0);
  6. Ok I'll explain it again. I have an overlay that appears when you move the mouse over a thumbnail picture. The overlay shows you the full size picture along with some text. This overlay consists of a div which is positioned absolutely relative to the document body. I position it by finding the offset position of the thumbnail and adding that with a certain amount of offset etc to the div's style.left and style.top properties. Inside the div are the img, and some spans of text. Now, that all works fine. I don't need to know how to make the div appear and so on, that's all done. I just wanted to make it look nicer by having the div translucent, by setting its opacity to 0.8. Well that works fine too, so I get a slightly faded white box on a black background, with some of the text and so on underneath showing through slightly. That's the effect I want. But a side effect, that I can't seem to get rid of, is that the img within the div also has opacity 0.8, even if I try to set it to 1.0. No matter how or where I set the opacity of the image, it still refuses to take on anything other than the opacity value of the div that contains it. That is what I need help with.
  7. Ok now try putting a containing div around that image element, and set the opacity of the div to one value and see if you can set the opacity of the image independently of that. Because that is what I am having a problem doing. Nothing to do with hover properties as my img is not a link.
  8. Hover property? I don't see how that relates to my problem, please explain. I put styles inline while I am developing a page, it's only after all styles are set for good that it's worth moving them to an external sheet.
  9. king arthur

    Opacity

    On my page I have some thumbnail photos. I have an overlay div which I position near the thumbnail on an onmouseover event, inside this div is the full size photo and some text. I thought it would look nice if I made the div slightly transparent using opacity, and it does - but I can't get the photo to lose the opacity. I've tried just setting the opacity property back to opaque in the local style setting for the img tag, I've tried putting another div around it and setting that to opaque, I've tried setting it explicitly in the javascript function that positions the overlay and sets the img's src property, but it just doesn't seem to want to lose the opacity value that I've given the containing div. Is it not possible to do this? For example I have: <div id="overlaybox" style="color:black;background-color:white;position:absolute;top:0px;left:0px;filter:alpha(opacity=80);opacity:.80;z-index:10;text-align:center;width:100px;height:100px;margin:0px;padding:20px;visibility:hidden;"> <img id="overlay_img" src="blah" alt="Blah" style="filter:alpha(opacity=99);opacity:1.0;" /> </div> and the img just ignores its own style setting and inherits it from the overlay div seemingly no matter what I do.
  10. Not sure that you're quite understanding how an if statement works. The only results you can get from an if are true or false. E.g. if(this statement is true) { run this block of code } else { run this block of code instead }
  11. Try doing print_r($_SESSION); after the session_start() on your search page to see what is actually getting set.
  12. Just add $id = $_GET["id"] at the start of your php.
  13. BTW your code as it stands, appears to produce six variables $match1 - $match6 all the same.
  14. The only way that can be happening is if the second or third if statements are executing in each case. So there must be something going wrong with if(!empty($Subtopic)) or if(!empty(Theswords)). I.e. the strings are not empty but contain a space perhaps. Or maybe the comma is already appended to the string $Topic?
  15. There are several ways you could fix this. $match1 = ""; if (!empty($Topic)){ $match1 = ($Topic); } if (!empty($Subtopic)){ $match1 .= ($match1=="") ? $Subtopic : ", " . $Subtopic; } if (!empty($Theswords)){ $match1 .= ($match1=="") ? $Subtopic : ", " . $Subtopic; } or you could do $match1 = ""; if (!empty($Topic)){ $match1 = $Topic; } if (!empty($Subtopic)){ $match1 .= ", " . $Subtopic; } if (!empty($Theswords)){ $match1 .= ", " . $Subtopic; } if(substr($match1, 0, 1) == ",") $match1 = substr($match1, 2); In the first, I have switched it around so the comma gets added at the start in the second and third cases, but only if the string is not empty. In the second, I have again added the comma at the start and then checked to see if the string has a comma at the start and if so, take the string from the third character onwards thus removing the comma and space.
×
×
  • 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.