Jump to content

syed

Members
  • Posts

    151
  • Joined

  • Last visited

Everything posted by syed

  1. capella, its not that the developers here dont wwant to help, you've attached a file, which includes other files in the script, it,will take some time to undertand it all. If you give an indication of whats suppose to happen at what line, it would be better. Any way after loggin what is the value of the $folder and $full_url variables?
  2. Here's some basic js function confirmDelete(id){ var response = confirm("Are you sure you want to delete this item?"); if (response){ window.location = "thefile.php?id=" + id + "&action=delete"; } } </script> <input type="button" onclick="confirmDelete(34)" value="Delete" /> I would use Ajax for this, rather than the above code.
  3. use this instead while ( $row = mysql_fetch_array($result) { print $row['field']; }
  4. No probs, can you mark this thread as solved.
  5. the botman is correct to use GET, this is not an issuse with the form as such, we need to see some code, have you coded it so that it only executes your search when the button is clicked?
  6. Get the user agent details, it will tell you if it is a mobile request. Remember user agent details is not reliable.
  7. TextArea does not have a value atribtute, it should be like this <textarea>This is the text</textarea>
  8. HI sandy, you need to extract the image type from the binary file. The file type is not always in the same byte location for different image types.
  9. You dont you use a timestamp instead? Convert the xml time to a timestamp and get the current timestamp?
  10. You can read a zip file, whitout extracting it to the server, the link below is of a snippet which reads a docx file, which is a zip file in a sense. You can use it as an example. http://www.snippetbank.net/detail/snippetdetail/4-php/3-filemanipulation/37-Open-MS-Word-Docx-File.html
  11. syed

    $_GET

    Did you change your sql?
  12. There are a few javascript libraries that can help you do this as a drag and drop feature, which would be better than having an up/ down arrow to bring the record to the top. If you want to save the changes per user, you will need a table to store the order of the records for each user.
  13. Yes, I guess you learned somthing new.
  14. Are you telling me in a live enviroment you would not have the at sign to surpress error messages?
  15. Yes the OP can take it off, are you suggesting that they are not capable of doing this? If the OP wants to see the error messages they can take it off.
  16. Yes but, you have to loop throuhg it first, <?php $lines = @file("file.txt"); $i=1; foreach($lines as $line ){ $var["line" . $i] = $line; $i++; } extract($var); echo $line1; echo $line2; ?>
  17. I think you are missing an eding curly brace somwhere. Format your code and make sure all code block is closed properly.
  18. I you want to store each line into an array you can use the file function as shown below <?php $lines = @file("file.txt"); foreach($lines as $line ){ echo $line; } ?>
  19. I think someone here said you dont need to use sessions and I agree. You could pass a variable through the query string and on page load you can evaluate which tab needs to be selected.
  20. Hi Online csteff24 is the id field an int? if so have you tried removing the single quotes. By the way you should not use the $_GET variable directly in your sql like you have without putting it through a cleaning process.
  21. Can you provide a little more code, so that we can see what the variable $collection is doing and what it stores.
  22. while (!feof($fp)) { $line = fgets($fp,1024); //use 2048 if very long lines $row++; list ($website, $description)= split ("\|", $line); echo "<a href=\"" . $website . "\">" . $website . "</a><br/>"; echo $description; }
×
×
  • 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.