Jump to content

thisagain

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

thisagain's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I need help with some CSS drop down code. I am working on a horizontal drop down menu which works fine. The code creates a horizontal list that produces a drop down horizontal menu just below. What I don't know how to do is to make a third horizontal drop down just below it (there must be a way). I would like the first two rows to be a static list (they don't disappear when there is no hover). The third row would function like a regular horizontal drop down. This is my css: div#nava { float:left; font-size:11pt; font-weight:bold; margin:0px 0px 20px 0px; padding:0px 150px 0px 150px; width:100%; } #nav { list-style:none; margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; white-space:nowrap; } #nav ul { list-style:none; height:40px; margin:-10px 0px 0px -115px; padding:13px 0px 0px 0px; white-space:nowrap; } #nav a { color:#45591c; display:block; margin:0px 21px 0px 21px; text-decoration:none; width:auto; } #nav li { float:left; width:auto; } #nav li ul { color:#45591c; display:inline; font-size:9.5pt; font-weight:normal; left:-999em; position:absolute; width:100%; } #nav li ul a { margin:0px 5px 0px 15px; } #nav li:hover ul, #nav li.sfhover ul { left:auto; } #nav a:hover, #nav a.sfhover { color:#000000; } This is the html: <div id="nava"> <ul id="nav"> <li><a href="firstrow_first.php">1ST ROW 1ST</a></li> <ul> <li><a href="secondrow_first.php">2ND ROW 1ST</a></li> <li><a href="secondrow_second.php">2ND ROW 2ND</a></li> <li><a href="secondrow_third.php">2ND Row 3RD</a></li> </ul> </li> <li><a href="firstrow_second.php">1ST ROW 2ND</a></li> <li><a href="firstrow_third.php">1ST ROW 3RD</a> </ul> </div> What is the best way to do what I would like to do? Any help is appreciated.
  2. I am looking for a voting script or some help how to get one made up that will allow me to do the following: I have a page with about 30 images.  I would like a visitor to be able to click on the image and place a 'yes' vote for that image.  I will need the usual voting restrictions such as voting only once per so many time units etc. Could someone kindly point me in the right place to look?  I've been looking and all I find are survey scripts that don't really do what I need.  Any help is greatly appreciated. Thanks
  3. I've managed to make my webform email form information and one attachment file but I want to make it add more than one file attachments. Can someone please help get me started on how to do this? My code is: [code] <?php $to = 'myemail@someplace.com'; $from = 'My Webform'; $subject = 'Webform Submission - ALERT'; // Read POST request params into global vars $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $email = $_POST['email']; $phone = $_POST['phone']; $message = "Someone has submitted something via webform"; // Obtain file upload vars $photo1      = $_FILES['photo1']['tmp_name']; $photo1_type = $_FILES['photo1']['type']; $photo1_name = $_FILES['photo1']['name']; $headers = "From: $from"; if (is_uploaded_file($photo1)){ // Read the file to be attached ('rb' = read binary) $file1 = fopen($photo1,'rb'); $data1 = fread($file1,filesize($photo1)); fclose($file1); // Generate a boundary string $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" .             "Content-Type: multipart/mixed;\n" .             " boundary=\"{$mime_boundary}\""; // Add a multipart boundary above the plain message $message = "This is a multi-part message in MIME format.\n\n" .             "--{$mime_boundary}\n" .             "Content-Type: text/plain; charset=\"iso-8859-1\"\n" .             "Content-Transfer-Encoding: 7bit\n\n" .             $message .             "\n\n"; // Base64 encode the file data $data1 = chunk_split(base64_encode($data1)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" .             "Content-Type: {$photo1_type};\n" .             " name=\"{$photo1_name}\"\n" .             //"Content-Disposition: attachment;\n" .             //" filename=\"{$photo1_name}\"\n" .             "Content-Transfer-Encoding: base64\n\n" .             $data1 .             "\n\n" .             "--{$mime_boundary}--\n"; } // Send the message $ok = @mail($to, $subject, $message, $headers); if ($ok){ echo '<p>Thank you for sending your Model Submission.</p>'; } else{ echo '<p>Mail could not be sent.</p>'; } ?> [/code] Any help would be great.  Thanks
  4. This query string works: $query = 'SELECT * FROM `models` WHERE `fname` = CONVERT(_utf8 \'[color=red]Trains[/color]\' USING latin1) COLLATE latin1_swedish_ci'; ...but I want to make [color=red]Trains[/color] a variable called $fname; however when I  try and change Trains to $fname, the query show up empty if it helps, the variable $fname is passed onto the page by $fname=$_GET['name']; If anyone can help me with this, it would be greatly appreciated.  Thanks
  5. Thanks akitchin!  I really appreciate the help. Everything works except $empties gives me the wrong amount but I can figure that out.
  6. Hello.  I'm new to this forum and new to PHP so please forgive me for my amature code. I am trying to generate a 4 column table that is filled with data from a database.  I have the following code which allows me to fill the table with one row and infinite columns (until I have no more data).  I want to close every row at 4 columns and start a new row and continue showing the data until I have no more data. [hr] <table> <tr> <?php if($results){ while ($row = mysql_fetch_array($results)){ $key = $row["key"]; $name = $row["name"]; $photo = $row["photo"]; ?>   <!-- <?php echo($key); ?> -->   <td>   <a href="items.php?name=<?php echo("name"); ?>"><img src="<?php echo($photo); ?>" height="150" width="100"><br><?php echo($name); ?></a>   </td> <?php } } ?> </tr> </table> [hr] Am I using the wrong type of loop?  I haven't been able to put a count in the loop that actually increases every time it loops.  I hope someone can help me with this.  Would really appreciate it.
×
×
  • 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.