Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. In vim, just select the text and press "=" Yeaaaaah. There's a reason I'm the only person on my team using Windows. I just can't adapt to vim. *hangs head*
  2. This is a good time to use the % operator. echo '<tr>'; $count = 1; while($row=...){ if($count%4==0){ echo '</tr><tr>'; } echo '<td>Product data</td>'; $count++; } echo '</tr>';
  3. I knew someone would know.
  4. You loop through the rows. Look in the manual at the function you're using, there are lots of examples. mysqli_fetch_assoc
  5. It gets one row. You've called it $rows, indicating you think it gets all the rows.
  6. The code you just posted. It's HTML. PHP can output HTML using echo or print.
  7. $url = ''; $search_string = 'WARNING IN EFFECT'; $file_contents = file_get_contents($url); if(stripos($file_contents, $search_string) !== FALSE){ // There's a warning. }
  8. That last line does not do what you think it does. That's the part you'll loop through. I suggest referencing the manual, or reading the function above. /* Store results to be used */ $rows = mysqli_fetch_assoc($result);
  9. You could do all what? That's the whole project minus one if construct. :-P Edit: Wait no, that is the whole project.
  10. Do you know how to select the data from the database? Once you do that, just loop through it, creating rows...
  11. You'll need to use a while loop and probably some for loops. It's pretty simple, where are you stuck? What have you done so far?
  12. ... Your form elements are all set to be 100% width. That means 100% of their parent element. Since that makes your checkbox element have a width of 100% it pushes the text to a new line. You'll need to change your CSS to not have that happen. The quickest way is probably to give them a class and set it to width: 10px or whatever. You can specify input types in CSS but a. I forget the exact syntax right now, b. I'm not sure what versions it's in.
  13. I had a coworker say I was teasing him when I called him a geek. Nope, just stating a fact!
  14. I always thought it was silly when couples said "they" were pregnant instead of "she" is pregnant. Until I heard my husband tell his friend "We're pregnant!" Then I was all "AWWWWWWW". So....yeah. Also I like how you put that. He's "technically" a man. ....
  15. form input, textarea, select { font-size: 15px; padding: 1 5px; border: #0040FF 1px solid; width: 100%; margin: center; } Your problem is in here. Width 100% is doing what it says.
  16. Or Chrome with it's built-in developer tools (Ctrl+Shift+J for JS console) I'm using Chrome now and I always forget about that. I'll have to try it out and see how it compares.
  17. I guess there's no standard that says options must have unique values, huh?
  18. The easiest way to debug javascript errors is installing Firebug in Firefox and using that. It should help you.
  19. I had to vote for Prengagenant simply because that's an awesome portmanteau
  20. It's your code! Post a link so we can look at it, or post the relevant HTML and CSS files.
  21. So...did you try what I said??
  22. me_redirect_to('/prac/login.php'); What is the me_redirect_to code?
  23. Or CSS, making inputs/checkboxes display as block elements. By the way, you cannot have more than one element with the same ID.
×
×
  • 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.