Jump to content

dan_t

Members
  • Posts

    137
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

dan_t's Achievements

Member

Member (2/5)

0

Reputation

  1. "you're asking for clairvoyance" Interesting.. Actually I thought it may have been a comman eclipse problem. No matter, It's all working now, just took a whole lot of trial and error. Whether it was coding or not it seemed to go away. And normally I like to let sarcasm go over my head, keeps me from having to "up my dosage".
  2. I am trying to figure out how to make tabbed panes, or just tabs in general. I have attached a picture of the type of tabs I am needing to make. Also, if anyone might know I need to figure out how to add them. As in, does each tab need to be a separate pane or panel, or how exactly is the best way to get that to work? Thanks [attachment deleted by admin]
  3. No, I'm serious. Here is the weird part, I just discovered if I put my cursor on the top of the frame where the cursor becomes a double-sided arrow, and I click it the entire thing shows up! Does that make any sense?
  4. I am using eclipse to build my program in Java. When I run it, sometimes it will run good, the next only one or two labels may show up. It seems as though at times it doesn't complete the running of the GUI. One run may show two labels and one text area, another may show the entire interface. Would anyone have any idea why it is doing this? Thanks
  5. It seems like you would still have to use some kind of loop for the mysql_num_rows function to work.
  6. atDescription,) Try removing the comma at the end of "atDescription" It might help. Not sure though.
  7. dan_t

    whlie loop

    "This assume that the values of $username & $password have been properly sanitized" What do you mean by sanitized?
  8. dan_t

    whlie loop

    I did have code sending it to one page or another printing the content and username on the one page, but it printed everything multiple times so now I'm just trying to fix that problem first.
  9. dan_t

    whlie loop

    This is on of the hundred ways I have tried it: $query = "SELECT username, password FROM userTable"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { $logged = (($row['username'] == $username) && ($row['password'] == $password)); if(!$logged){ echo "Sorry"; } else { echo "Good!"; } I also tried a switch statement, but have become frazzled.
  10. This is probably a simple question, but if you are looping through a while loop using an if - else statement why would it echo the answer the amount of times there are data fields? Like if you had three users in a database and you had an if statement to validate a user name and password. If the user name and password passed it would say good - if it failed it would say no good. But instead it prints - good no good good, or no good good good, ect.???
  11. Thanks!! I had Forgotten the: $id = $_POST['id']; It worked perfectly when that was added. Once again Thank you.
  12. How do you use a header function in a switch case? .... Or can you? Like this-if this makes any sense: switch($id) { case "prima": header("Location: www.prima-tech.com/"); break; case "php": header("Location: http://www.php.net/"); break; case "slashdot": header("Location: http://www.slashdot.org/"); break; case "linuxchix": header("Location: http://www.linuxchix.org/"); break; default: header("Location: www.google.com/"); } exit; I was using it with a small made up form, but never got it to work. Say hey Kev!!!! Congrats!
  13. Hi all, How would I go about entering multiple photo's and then the first and last name and email address from a from. if (!isset($_GET['subpage'])) { // Image Upload Form Below ?> <form method="post" action="addphoto.php?subpage=upload" enctype="multipart/form-data"> Photo1:<br /> <input type="file" name="imagefile" class="form"> <br /><br /> Photo2:<br /> <input type="file" name="imagefile" class="form"> <br /><br /> <input name="submit" type="submit" value="Submit" class="form"> <input type="reset" value="Clear" class="form"> </form> <?php } else if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $url = $_FILES['imagefile']['name']; // Set $url To Equal The Filename For Later Use if ($_FILES['imagefile']['type'] == "image/jpg" || $_FILES['imagefile']['type'] == "image/jpeg" || $_FILES['imagefile']['type'] == "image/pjpeg") On this one image works, I added another input, but don't know how to add a second file to the $_FILES['imagefile']['name']; part.
  14. I know very little about javascript. How do I get this script to put photos in a folder? <form name="form1" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <label for="upload[]">File 1:</label> <input type="file" name="upload[]" size="30"><br> <label for="upload[]">File 2:</label> <input type="file" name="upload[]" size="30"><br> <label for="upload[]">File 3:</label> <input type="file" name="upload[]" size="30"><br> <!-- Add here more file fields if you need. --> </form> <form name=form method="post" action=""> <input type=text name="first" size="20"> First Name<BR> <input type=text name="last" size="20"> Last Name<BR> <input type=text name="email" size="20"> E-Mail<BR><BR> <input type=button value="Submit Request" onclick="verify();"> </form> How do I direct the path?
×
×
  • 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.