Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. echo $row['Fname'].' '.$row['Sname'] . ' ';
  2. It is, how do I know this? I use an editor with a syntax highlighter, I suggest you get one so you can easily spot where your string is getting messed up.
  3. Why not, have you tried it?
  4. Change it to Address2? if(!empty($_POST['Address2'])) { $Address2 = $_POST['Address2'];
  5. Would you relax? People will refuse to help you if you bump your thread twice in less than an hour... Now, what does this mean? Check boxes don't have text...
  6. And where does $_POST['ID'] come from?
  7. You know the POST will get the "value" of the select statement not the text inside it... Your code was a little messed up: Try: $sql = "Select `Fname`,`Sname`FROM `Athy` WHERE `Address2`='".$Address2."'"; echo $sql; $var = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($var) > 0) { while ($row = mysql_fetch_assoc($var)) { echo $row['Fname'].' '.$row['Sname']; } } else { echo "Failed"; } }
  8. You're using "$skillTb1" instead of "$skillTbl". (notice the 'L' NOT the number '1')
  9. That's because you should be doing your work.
  10. Yes, have you attempted putting it in a table? Start your table before the loop, and put tags around your values inside the loop. There are many examples on phpfreaks, this is a common practice.
  11. When you compare them just use strtolower().
  12. Use str_ireplace()
  13. What's wrong and what happens?
  14. Maq

    Deleting Row

    I don't see where you GET username. Put or die(mysql_error()) at the end of your query and see what it says.
  15. I'm sure you want this done dynamically, how are you retrieving these values?
  16. You should also use mysql_real_escape_string().
  17. I don't think it's the css but do u mind attaching it?
  18. I CnP'd to my local and it looks fine, minus the CSS of course. Sorry, I don't see anything that could be causing this. I just tested it, it recognizes $account_id as greater than zero with or without the quotes.
  19. We all start somewhere, and that's what this site is for anyway.
  20. That's only true when using ===, cause you're then checking type as well as value, but not with ==.
  21. That's really long code for a contact form, you could write a couple for loops to minimize that script 100 lines. You are trying to echo mail()? It only returns a boolean.
  22. I use XPath with XSLT but and if it's the same then you don't need the parentheses: $hrefs = $xpath->evaluate( '/html/body//ul//li[@class="interwiki-de"|"interwiki-jp"]//a');
  23. Try this instead (easier to understand): if ($account_id > 0) { echo "</pre> <li class="'last'">Account</li>"
  24. PFMaBiSmAd, pointed out the same thing I did in addition to your identical email field problem. You weren't declaring the names for your input fields (phone & email) so they weren't being added to your POST array in the emailing page. As pointed out: should be:
  25. Maq

    TRUNCATE

    Is there a specific reason you would need them in 1 query?
×
×
  • 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.