Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by floridaflatlander

  1. It sounds like you're wanting someone to tell you you don't need to learn php.
  2. The stuff you make or are "involved with" to paraphrase you seems like it is or would be generic. You say working with wordpress "you never get to see the PHP files", I don't know what to say about that remark, maybe you haven't really looked. With that said I have seen some wp sites with generic stuff that looked great but that came from the css side. Maybe you just need to stick to design and farm out any php code you need to have writen, of course you would need to know were to stick the code and have an idea what the coder was talking about. So ... yes it would be worth "the next few months to studying PHP".
  3. Center borders? I guess since you have from inside out width, padding, border margin you could have the padding and magin be the same. The problem would be that the background color or image would be under the padding and not the margin.
  4. http://validator.w3.org/ said Line 172, Column 10: Stray end tag section and more. What ever that means. I've never seen anyone use sections, divs yes, section no.
  5. If can write php then you should pick up css pretty fast.
  6. If your going to do stuff like this get and use firefoxes firebug, firebug color codes the divs, margins, borders and padding on the web page so you can see the styles, it will tell you what the css file name is, the name of the style, what line the style is coming from and the inheritance if any. I think chrome does the same thing.
  7. Well you know that the total width of the container is the width plus padding plus border plus margin don't you? With that in mind float all divs left add a width that fits and play with the height if needed.
  8. What do you want aligned? Usually if you want to center h2 .container08 h2{text-align: center;} on the style sheet or in the header or <h2 style="text-align: center;">small</h2> and ... added if you want to center container08 .container08 { width: 50%; /* or what ever*/ margin: 0 auto; }
  9. I found the problem, there was a subcategory with a count on the second page of the table in my phpmyadmin, when I checked the first time I only checked the category and it's subcategories in question on the first page. So it worked all along. Thanks for the help lemmin
  10. Yeah put your url in here For css: http://jigsaw.w3.org/css-validator For html: http://validator.w3.org (although this seems fine) Just for fun Website Optimization: http://www.websiteoptimization.com/services/analyze/
  11. I don't do it like that but it may be $q = "Select * From cpanel_users WHERE Usr_Username= {mysqli_real_escape_string($dbc, $Post_Username)}"; This should be close to it. edited mysqli_real_escape_string after post below
  12. You may have to use sessions, something like this $a = rand(1, 10); $b = rand(1, 10); $c = $a + $b; $_SESSION['pass_phrase'] = SHA1($c); // $_POST user_phrase if (isset($_POST['answer'])) { $user_pass_phrase = sha1($_POST['answer']); } // if a member or if the $user_phrase is correct if ($_SESSION['pass_phrase'] == $user_pass_phrase) { echo "Correct!"; }
  13. Will you get a new c every time someone clicks submit?
  14. I'm changing the IN part to (SELECT id_parent FROM category WHERE count >= 1 AND id_parent >= 1 GROUP BY id_parent) maybe this would get rid of the little grimlin last night.
  15. Thanks for the reply The rows I'm trying to get are 1 2 & 5, the only problem I know of is that last night I was getting a row that had a 0 count a parent 0 with the same sql. Anyway the sql above should only return rows 1 2 & 5? That's what I want.
  16. I'm trying to make a menu that is a menu only of major categories with a count or it has sub-categories with a count. Some major categories have sub-categories and some don't. This morning this works but last night I was getting a record with a id_parent of 0 and a count of 0(and I don't know why). Does this sql make since and would it work consistently? $q = "SELECT item, slug FROM category WHERE (count >= 1 AND id_parent = 0) OR id_cat IN (SELECT id_parent FROM category WHERE count >= 1 AND id_parent >= 1) GROUP BY item"; The table the menu comes from looks like this .. id_cat | id_parent | slug | item | count 1 | 0 | boats | Boats | 0 2 | 0 | autos | Cars & Trucks | 0 3 | 1 | inshore-boats | Inshore Boats | 2 4 | 2 | trucks | Trucks | 1 5 | 0 | atvs | ATVs | 2
  17. Interesting, I wonder if someone needs to start looking for a new job. Either way it's going to cost gdaddy some customers. It brought sopa to light for those who didn't know gdaddy's stance on this issue and it also brought other gdaddy performance issues to light.
  18. Thanks for the reply I'm going to check that PFMaBiSmAd, I just saw that before I came back here and had just started playing with that, my SELECT is good. I'll be back to mark solved
  19. I know this is the same old same old error people get but I can't figure it out. I've checked my db table and there is an id_prod, id_cat & id_mem. All spelled correctly. What's odd is I ran a test (it's commented out now) an it worked, returning the id_prod #159 But when I run same while loop just under it I get the mentioned error. // Check if the form has been submitted: if (isset($_POST['submitted'])) { if ($_POST['sure'] == 'Yes') { // get list of items to deleteing $q = "SELECT id_prod, id_cat FROM product WHERE id_mem = '$user' AND publish <= 1"; // Less than very important $r = mysqli_query ($dbc, $q) or die("Error: ".mysqli_error($dbc)); // For prob solving, mysqli_fetch_array worked here returning the id_pod #159 but not below /* if ($r){ while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)){ echo ''.$row['id_prod'].'<br />'; } exit(); } */ if ($r && (mysqli_num_rows($r) >= 1)) { // delete pics of items where publish <= 1 while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)){ // <-ERROR here same while as above // Delete item's records and files in order of importance. From least important to most $q2 = "SELECT thumb, photo FROM photos WHERE id_prod = ".$row['id_prod'].""; $r2 = @mysqli_query ($dbc, $q2);// or trigger_error("Query: $q\n<br />MySQL Error: " . mysqli_error($dbc)); if ($r2 && (mysqli_num_rows($r2) >= 1)){ // needs to be a while loop, may be more than one while ($row2 = mysqli_fetch_array($r2, MYSQLI_ASSOC)){ unlink('../images/members/'.$row2['thumb'].''); // Remove the photo files from folders ../images/members/ unlink('../images/members/'.$row2['photo'].''); } } // Update the publish # to record the product as deleted $q = "DELETE FROM product WHERE id_prod = {$row['id_prod']} AND publish <= 1"; $r = @mysqli_query ($dbc, $q);// or trigger_error("Query: $q\n<br />MySQL Error: " . mysqli_error($dbc)); } // end of loop // When through redirect header("Location: $home/member/index.php?user={$_SESSION['id_mem']}"); exit(); } // end if records for user } // If someone clicks submit when no is checked elseif ($_POST['sure'] == 'No') { header("Location: $home/member/index.php?user=$user"); exit(); } } else { /* Show the form. */}
  20. Thanks for the reply. No I don't think that's it. I changed the css like you said the style doesn't change. The time yes the style no, it works fine on my local host in ie, firefox & chrome but not online. I've also cleared the cache, history and eveything else in Firefox and it still doesn't work or change quickly after upload. It doesn't really bother me but I do want to know why it's doing this now and why it doesn't do it on my local machine.
  21. When I upload a php or html file the file displays immediately but when I upload a css file it takes 10 to 15 minutes to display. I've searched the web and can't seem to find an answer, this may be a server issue. After I upload a css file ... It doesn't display in ie, firefox or chrome for 10-15 minutes (it's different in this range each time I test) I try the regular refresh in ie, firefox or chrome and ctrl+f5 and it doesn't load the new css. Could it be something in my header? This just started with a new server I'm on(a cloud server) and I've had this same header for a while. Any ideas? Thanks
  22. Try $res = mysql_query($sql) or die("Error: ".mysqli_error($dbc)); And see what happens
  23. There is also a bookmark mod, it places a link at the top call "bookmarks" click it and llinks to a file that has all the topics you've bookmarked. When you're reading a post it has button to mark it as a bookmark. I use notify here to keep tract of my favorite topics and it works but smf emails me everytime some one makes a post. It would be nice if IPB will have something similar.
×
×
  • 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.