Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. On your web server. Probs not the same directory of course, but the same server you store your PHP files. Can you elaborate on this?
  2. In the database just store the details about the track and a reference to the file location, as apposed to the actual file data itself.
  3. Here man .. http://www.phpfreaks.com/forums/index.php/board,41.0.html
  4. Well... You'll need to start by learning a web programming language, perhaps PHP? Advance on to querying databases, returning results, etc. Then learn the theory behind searching and apply it to your needs. If you have no PHP experience, in all honesty, I'd say time to completion would be around 6 months to a year (at least really). You could find tutorials showing you how, but I don't think you'd find any specific any enough for what you're after. If you're willing to pay someone to have this done, you could have it working within a few days.
  5. dude il teach u everything u need to know about every language, when u need it, u go on teh internet and type in language name PROCESS instantiation, or language name Class definition or language name array manipulation thats it all the other bits are icing on the cake, oh and HTTP request What the ..? You're full of some right crap.
  6. Daym! Yeah seems so. I think the only way you could do it then would be to redirect the user after setting the cookie, and check for it there..
  7. Me thinks wrong forum for this. What kind of assistance are you after?
  8. You've not clearly explained what it is you're trying to do at all. Try giving examples of user input, the matching row of data, and what you expect outputted; then you'll probably get some decent help.
  9. I think he's thinking of something like... setcookie('cookie_test', 1, 1); if (isset($_COOKIE['cookie_test'])) { // cookies enabled } else { // cookies disabled }
  10. I'm pretty sure that must be illegal without proper notification. I'd check the emails they sent you and make sure there was no instruction at the bottom or anything saying to reply back if this is incorrect. I still wouldn't have thought this would be a legal procedure; what if you were away, sick, or something else and couldn't make it to the computer for a few days?
  11. You don't have to use PHP, almost any web programming/scripting language should have the ability to manipulate cookies, including JavaScript. Of course if they have cookies disabled, I would have thought they'd more like the kind of user to have JS disabled as well. In addition to that tutorial you may want to take a look at the PHP manual for setcookie, for a more thorough explanation.
  12. That is selecting fields...
  13. This is just basic SQL? select name, points from table_name where username = 'blah blah'
  14. Define "connect the 2 databases"...
  15. Yeah, you're basically thinking of a CMS just with a different context. You just need a table containing the fields for page number, content, + anything else you'd like. Then you can query the database and return the specific page(s), modify them in a textarea, and then update the row(s).
  16. That's because you have no input named "submit". The following would work: if (isset($_FILES['img1'])) {
  17. Yeah, easily. Although perhaps not the best format. I imagine you'd want to store the pages on a page-per-row basis?
  18. Adam

    Photo Upload

    You cannot upload a 'directory' of images, but you can provide a way to upload multiple images and there are many many tutorials out there for that. http://www.google.co.uk/search?q=php+upload+multiple+images
  19. If you go back and read it all you'll see I changed the reg exp to: echo preg_replace('#\[.*?\]#', '', 'fri[hello]day'); S'plain how that doesn't work?
  20. You mean each user can save in some fashion, which or both of the 2 rows they'd like to be made visible when someone enters their user ID?
  21. No problem... And it's bottom left whilst you're viewing the thread.
  22. You only need: if (isset($_GET['ids'])) { foreach ($_GET['ids'] as $key => $id) { $new_location = $_GET['new_locations'][$key]; $uaction = mysql_query("UPDATE test_tbl SET location='".$new_location."' where id='".$id."'"); if ($uaction) { echo "<tr><td>Successfully Updated</td></tr>"; } else { echo "<tr><td>Updation Failed</td></tr>"; } } } Remove the other parts. Although you should know by using if ($uaction) { .. you are only testing whether or not the query was successful - it may not have actually updated a row(s). You can use mysql_affected_rows to check the number of rows updated/inserted/etc. for a more accurate output.
  23. Could you show the full code as you have it now?
  24. I only showed you that code to give you a push in the right direction, not to use it literally. Sorry I might not have been very clear before. I think you're actually over complicating things. Once you have your inputs as arrays (I'm assuming they are called ids[] and new_locations[]) all you need to do is something like this: foreach ($_GET['ids'] as $key => $id) { $new_location = $_GET['new_locations'][$key]; $update = mysql_query("update your_table set location='".$new_location."' where id='".$id."'"); } Of course you'll need to add in some filtering and security, but, do you understand what I mean?
×
×
  • 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.