Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You never close your function '}'... EDIT: OP code copying malfunction...
  2. Is there a question? If that is your question, which it isn't, it's more of a request, then you need to google and find a tutorial, or, search these forums for similar threads on blogs. If that doesn't satisfy you, then post in the freelance section.
  3. Check to make sure there aren't two extensions.
  4. Sure thing. I would try to debug it with firebug, but I can't see what's wrong, sorry :'( Wow, meant to resize the canvas on that screen shot... at least that way you can see it clearer.
  5. Yes, the only difference is that I'm on Ubuntu. (Screen shot attached) [attachment deleted by admin]
  6. I think this is an IE problem, in FF3 it looks fine. Have you checked in any other browsers?
  7. Yeah, but I'll probably forget, can ya give me ring? thx
  8. OMG, seriously? Lol, you're right they should be stored as VARCHARS. I was in a rush writing that, and my point was that he shouldn't be using them for auto-incremented fields.
  9. There's like 7 mysql_num_row() function calls, which line does the error refer to? Like kickstart mentioned, it relies on a valid resource which you apparently do not provide. Try adding an or die statement after your mysql_query call to see if it's throwing any errors. i.e. $sql_res=mysql_query($sql_query,$conn_id) or die(mysql_error());
  10. Sure, if I understood your question correctly it should work. I'm a little confused about this: Only sale_id 1 has more than 1 buyer, so why would you expect 2 records back?
  11. SELECT sale_id, buyer_id, COUNT(buyer_id) AS count FROM table GROUP BY sale_id HAVING count > 1;
  12. I'm not sure what you mean by "array to a single query string variable", or why you're winking at me... winks are scary!
  13. All of your checkbox name are: name="toppings[]" Right?
  14. What do you mean edit the header? If your question is how to mark the thread [sOLVED], there is a tab in the bottom LEFT of the the thread.
  15. Read this.
  16. ober is right, you should definitely look into Database Normalization, it will prevent problems like these.
  17. I still don't understand what the "specific order" is? I don't see any type of sort in: (What, Bob, Jake, How)
  18. Try this: for($x=1;$x{ $chan = "Chan{$x}_Reference"; $sql = "SELECT Device_Code, $chan FROM devices WHERE $chan = 'CW1002/W'"; $result = mysql_query($sql) or die(mysql_query()); if(mysql_num_rows($result) > 0)) { while($row=mysql_fetch_assoc($result)) { $device_code[] = $row['Device_Code']; $chan[] = $row[$chan]; } break; } } print_r($device_code); print_r($chan);
  19. There's a lot of languages that interact with each other. Still not quite sure what you mean by HTML server? A browser renders your pages into HTML when they are displayed on the page, whether you use Javascript, JSP, ASP, PHP, etc.
  20. That's probably a better idea in case you need it on other pages, then you won't have to keep submitting it.
  21. Submit it with the rest of the information:
  22. Probably PHP Help since it was a PHP function, or MySQL would have done fine. There is a tab at the bottom right that looks like, "[sOLVED]". I think it's a mod for SMF forums, although it may be standard.
  23. lname should be the same exact process as fname... Can you show me your table structure, and your most recent query?
  24. Can you provide a link, I'm too lazy to type it in.
  25. I don't know what you mean by this but you need to have a field called "fname" with a VARCHAR datatype in your database for this to work. You need to get the fname like how you get the email: $email = $_POST['email']; and for fname: $fname = $_POST['fname']; *NOTE: fname is the name of your input field from the form you submitted from i.e.:
×
×
  • 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.