Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You can combine HTML and PHP in two ways: 1) echo out your HTML. 2) close PHP and open it back up when you need it. (I prefer the 2 because I hate dealing with single and double quotes, gets confusing sometimes.) But here's #1: $sql = "SELECT * FROM hicks ORDER BY date ASC LIMIT 1"; $row = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result); echo "your link!";
  2. If you want to produce a link for each row you need to: 1) Use a while loop so it can extract ALL the rows from the DB. 2) Change post to $row (or whatever variable you want to use). $_POST is for transferring data from page to page. 3) The header redirects people automatically. I imagine you want to have people click on a desired link, so just display the links as hrefs. Try this *not tested*: include 'config.php'; include 'opendb.php'; $query="SELECT * FROM table"; $result=mysql_query($query); $i = 0; while($row = mysql_fetch_array($result)) { $i++; ?> Link include 'closedb.php'; ?>
  3. Yes, you should always be on the index.php page and call in the other pages. So index.php will be acting like a template and how you know what page to include is passed via HTTP by what the user clicks.
  4. It's just basically to keep everything consistent and standardized.
  5. Free post? Since when did posting cost you anything? damn you're good +1 for me too! I'm lost... ??? But thanks for the compliment!
  6. Free post? Since when did posting cost you anything?
  7. You should never sensitive data through HTTP... You can use hidden fields or sessions to accomplish this.
  8. I think Paypal has their own API for dealing with this. Check out their docs, but I'm sure someone on here has already done this.
  9. Why don't you use a session? That way it's hidden and available on whatever page you want.
  10. You have to be a little more specific. Something like this: $sql = "SELECT * FROM table WHERE something = something"; $result = mysql_query($sql); while($row = $mysql_fetch_array($result)) { ?> http://domain.com/script.php?ID=&ID2=&ID3=
  11. Let us know how it goes, I'll be happy to test it out for you.
  12. I've had similar problems dealing with FileZilla. Especially connection problems... I would get cut off in the middle of an upload. There's probably some sort of setting that I was too lazy to search for.
  13. Hahaha! The om thread was the best. I think it's the resurrection, another 100 post thread!
  14. Not sure what you mean but if you understand what you did wrong than I guess it doesn't matter
  15. Nightslyr has broke down the basics of the entire concept of how to create a web page with the get method. He has optimized some of the things I said along with some little tricks to make things easier. If you have more questions don't hesitate to post.
  16. Still don't like the color scheme. Lots of pages... not really, and besides they all look the same. Hmm... The point of this site is more like you learning how to build/design a website, and there's nothing wrong with that. Like everyone said, it's boring. There's no graphics and it's got a dull poop-brown theme to it now.
  17. Pfff. If you maintain your Ubuntu system properly it is updated in intervals. You should never need to reinstall your operating system using any Linux if you know what you are doing. Yeah, I have never heard of that, at least with Ubuntu. The updates and packages come almost everyday. I've never had to re-install, the software sources and update managers take care of everything.
  18. For starters you can pass arrays through an input field. So you can just have "row_number[]". Second thing I noticed was: "" Look weird? You use double quotes around the variables when it should be: "" Have you tried debugging, echoing your variables out?
  19. Unless I call in sick, I should be. Hehe, posting on the forums instead of doing your work...? tisk tisk.
  20. .txt files use "/r/n" for line breaks while browsers use the HTML " " for line breaks.
  21. Why don't you check to see if that value is already in the table if you don't want to store it again. Or you can use sessions...
  22. Can we see some code? You would have to submit the page to itself and call the values when it's submitted but again, we need some code.
  23. You need to either provide some sort of code we can work with or be a little more specific.
  24. You need to see what the format of the page is and use Regex. There are many examples on phpfreaks and millions on the web.
  25. I already have it in there for you. It's the files you want to call in for the content. You need to make 3 more files in the same directory: contactus.php joinus.php news.php Each contains specific content. So when the user clicks the link it dynamically calls these pages and it will load in main.php (the file we have been working on).
×
×
  • 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.