Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. 1. Use substr. Read the manual there are examples of this. 2. I thought I answered this in your last post, use html_entities_decode.
  2. You claim the AJAX forum is dead and your thread hasn't even been here for 3 hours... I don't see any question in your post, you just claim you need to send a variable but don't specify what you're having trouble with.
  3. Why not store it as the 'date' type so you can perform logical operations like this? P.S. - thedate > today's date makes no sense. If you want the dates that come before today's date, then it would be thedate
  4. - Create a loop that will iterate through your desired pages. - Use file_get_contents to grab all the source. - Use regex to grab the information you want. Alternatively you can use cURL, which is a little more dynamic.
  5. Have you read through the sticky yet - SEO in general?
  6. Did that work the way you wanted it to? AFAIK, the only way to do this is client side, which would mean someone could easily bypass this by disable JS.
  7. You can store the selection in the database for that use. When creating the drop down you can dynamically compare the user's selection with the state id (or however you stored the user's selection) and if it matches then echo "SELECTED". There's no need for hard-coding.
  8. If I understand you correctly you can accomplish this by using - SESSIONS. There are 10's of thousands on the internet, and many example here on phpfreaks. I'm sure you can find a decent one. Maybe someone who has recently gone through a decent tutorial can recommend one. Good luck.
  9. Either way you're putting them in an array. The only difference with MySQL is that you'll have them permanently stored in a DB, so if you're going to reference them multiple times it's better to extract the the data from the DB. It will be easier to keep track, maintain, mine data, and read. This is kind of the point of databases. We're only talking 50 states here, which shouldn't take up relatively any resources. If you plan on building upon this implementation, then I would suggest storing them in a database.
  10. It's usually the small things. Please mark as solved.
  11. Missing a comma after '$age', in your query.
  12. YW. Wasn't really an issue with the regex, just a logical error. Please mark solved.
  13. What table is 'user_id' from? You will see the error if you temporarily change this line to: $result1 = mysql_query($query) or die(mysql_error());
  14. Returns true for me... Can you show us more code?
  15. You mean it's just pulling the 'id'? You need to SELECT what you want to pull out. Change this line to: $data = mysql_query("SELECT * FROM $table");
  16. You can either use cURL, like you said, or file_get_contents and utilize regex to grab the first image pattern. There are many example on phpfreaks, or like RussellReal suggested, we can move this to freelance, and if you "really need this", you can pay someone to do it.
  17. How do you want to sort?
  18. You only write to the file once. I think you want to loop through the array of results: while($info = mysql_fetch_array($data)) { Don't forget the closing curly bracket.
  19. Is there a specific concept or portion of network security that you're supposed to cover? The best help we can provide is something that has already been researched and written. With that in mind - Network Security. Two days isn't much time, you better get going. Good luck.
  20. You can decode the entities, although I'm not sure this is the best way.
  21. Try changing this part to:
  22. Everyone is really just guessing until he tells us exactly what he's looking for.
  23. Can I do this: // while there are rows to be fetched... while ($list = mysql_fetch_assoc($result) substr('$row[title]',0,15)) { ?> Have you tried it?
×
×
  • 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.