Jump to content

Sigmahokies

Members
  • Posts

    90
  • Joined

  • Last visited

Everything posted by Sigmahokies

  1. Hi everyone, I am beginner ti learn Java, I am trying to stop the repeat number in array, but it won't work. Anyone who have idea? it will be appericate...here my code to create random number that between 50 to 60, then put in 10 array, but few number are repeated... int [] myArray = {0,1,2,3,4,5,6,7,8,9}; int pop = 0; for (int i = 0; i < myArray.length; i++0 { pop = (int) ((Math.random() + 5) *10); for (int j = 0; j < myArray.length; j++) { if (pop != MyArray[j]) { myArray[j] = pop; }
  2. which query that I made error?
  3. Hi everyone I am trying to create the one table columns (I will do multiply columns later) with checkbox, it is good for people who show up for meeting or activity. I am trying to make a check that post in next below from checking chart, but it won't post at all, what did i do wrong? Can you help me? Thanks, Gary </table></fieldset></form><h2>Checbox works with database</h2><form action="portfolio.php" method="POST"><table><?php $list = "SELECT ID, FirstName, LastName FROM sample";$list2 = mysqli_query($connect, $list); if (mysqli_num_rows($list2)) {while ($row5 = mysqli_fetch_assoc($list2)) {echo "<tr><td>".$row5['FirstName']."</td><td>".$row5['LastName']."</td><td><input type='checkbox' value='".$row5['ID']."' name='check'></td></tr>";}}?><tr><td colspan="3"><input type="submit" name="check3" value="who showed up"></td></tr></table><table><?php if ($_POST['check3']) {$check = $_POST['check']; if ($check) {$select = "SELECT FirstName, LastName FROM sample WHERE = ID '%".$check."%'";$run = mysqli_query($connect, $select); if (mysqli_num_rows($run)) {while ($ran = mysqli_fetch_assoc($run)) {echo "<table>";echo "<tr><td>".$ran."</td></tr>";echo "<table>";}}}}?></table></form>
  4. Oh well, I need a something that allow remote database access, I'm sure only Paid hosted website and VPS are allowed, none of free website do that. I just want to start to work with database to create a portfolio website that show I can work in PHP and Database Management in PHP. Also, I will like to practice on CSS. I have VPS, but it is not really good cooperate with me. I am planning to cancel it if it continue stubborn. Gary
  5. I want to see your opinion about website Which is best to sign up for create website in OS: Paid share hosted (GoDaddy.com, i-page.com, atspace.com, etc) or Virtual Private Server? Please let me know ASAP Thanks! Gary
  6. Oh cool, it worked, it is in JavaScript, right? Can i make an image in this script? But why i get "undefine of shade", "undefine of heart"...I will like to remove this "undefine" Thanks!
  7. Hi everyone, I am trying to find source or tutorial how to create the random. I will like to learn how to create the random in poker card, but i need to make sure it must show the display that card is used. For example, I click on back of card to draw card, then show number or royal on card, then click it, moved to left-top or right-top to keep tracking those random poker card...do you have any idea? those card can't be repeated. Thank you so much
  8. I found the solution, I solved it...I just found the default set must not set as color, or it won't work. so, I put color font in tag letter, id, or class...not * in beginning of CSS document. Thank you for your time, Ingolme
  9. Oh, I made mistake in this trend, but I did put period (.) in sec - 0.7s still not working.
  10. Oh i just tried that, it doesn't work. Seem transition will work one time on page. Even I tried to have code: transition:color 0,7s ease; that is separate from background, but still not work, even transition does not work with background.
  11. Look at my code above... I am using transition to do font color.
  12. Hi everyone, I am struggling with transition font color with background in table. I am using TD create transition background, it works, but not font. Here my CSS i created: td { background-color: rgba(0, 79, 0, 0.75); border-color:white; border-collapse:collapse; } #td { transition:background-color 0.7s ease; background-color:rgba(0, 79, 0, 0.75); } #td:hover { background-color:white; color:rgba(0, 79, 0, 0.75); }
  13. All right, I just put this code to check the error...I fixed error, now no error show on display, but still not send email to my gmail. I think it got to do something with php.ini.
  14. Hi everyone, I'm not sure if it is right code to send email from email form in HTML and PHP. I tested it to send to my email, it is not work...can you help me? Also, I'm not sure I understand what is difference between $_POST and $_REQUEST, I know $_REQUEST is good for email, but few tutorial about email contact using $_POST and $_GET. How $_REQUEST works? I checked php.net, seem it is not explain very clear...even i went to W3school.com to learn about $_REQUEST, still not clear about it. Also, I wonder...will "Webmail" such as gmail.com, yahoo.com, etc...work with any server with PHP? However, Here my code that I wrote: <?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?> <!doctype html> <html> <head> <title>Contact Form</title> <link href="contact.css" rel="stylesheet" type="css/text"> </head> <body> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="submit"> Your name:<br> <input name="name" type="text" value="" size="30"/><br> Your email:<br> <input name="email" type="text" value="" size="30"/><br> Your message:<br> <textarea name="message" rows="7" cols="30"></textarea><br> <input type="submit" value="Send email"/> </form> </body> </html> <?php } else /* send the submitted data */ { $name=$_REQUEST['name']; $email=$_REQUEST['email']; $message=$_REQUEST['message']; if (($name=="")||($email=="")||($message=="")) { echo "All fields are required, please fill <a href=\"\">the form</a> again."; } else{ $from="From: $name<$email>\r\nReturn-path: $email"; $subject="Message sent using your contact form"; mail("XXXXXXXX@gmail.com", $subject, $message, $from); echo "Email sent!"; } } ?> Anyone who can help, thank you so much!
  15. Hi everyone! I'm new guy in this forum, Thank you for invited me in this forum. I hope I will provide to assist in web - HTML, CSS, JavaScript and PHP. I'm into advance in HTML and CSS, mid-level PHP. I am still learning PHP, it is not easy to understand, but I am getting there now. I hope any of you will help me do code in PHP to improve the performance on website. Have a great day!
×
×
  • Create New...