Jump to content

skali

Members
  • Posts

    221
  • Joined

  • Last visited

    Never

Everything posted by skali

  1. Yes, either phpmyadmin or shell if you have access to it...
  2. You must not be passing search string varibles in your paging urls... isn't it... <a href='page2.php?page=2&airline_search='<?=$_GET['airline_search']?>>page 2</a> In this way send all the variables in you paging links.
  3. If you are using the forum as the main application for authentication then: 1- print_r($_SESSION) variables to see what varibles you forum is storing after authentication 2- Once you find these variables you can check these variables in an include file that you can call on the rest of the pages of your site. 3- suppose if the forum is using varibles $_SESSION['is_authenticated'] for authentication then you can use this variable on other pages as well. This will make sure that if your user is logged in into the forum then he can also access other pages of your website as well.
  4. Seems like the user that you are making connection to MySQL with is not allowed to execute delete commands.. You will have to grant these permission to the user that you are using.
  5. It should work fine... try putting ini_set('error_reporting', E_ALL);
  6. Instead of cookies you should use $_SESSION variables that have been setup by the forum, to authenticate user on the other pages of website as well.
  7. What this will do is that your complete page will be generated at once with some forms hidden that you are trying to show with javascript. That's ok if you do not want to send some variables to the server after javascript selection and then generate new page on the basis of these variables. But if you want php to take some variables from javascript onchange command then i think you will have either use AJAX or refresh the page and send the variables as the query string for php to process and generate new page.
  8. Try using: ini_set('error_reporting', E_ALL);
  9. Use curl... http://www.php.net/manual/en/ref.curl.php
  10. This is a client side action, You php code has already processed the request at this point and sent to client browser. So now you cannot determine what button user pressed.
  11. SELECT * FROM photos WHERE status = 'accepted' AND airline LIKE '%AeBal - Aerolineas de Baleares%' AND location LIKE '%ALL%' AND aircraft LIKE '%Airbus A300B4-%' AND comments LIKE '%ALL%' ORDER BY id LIMIT 0, 15 The query generated at your website looks ok to me.
  12. Have you checked you spam folder as well? Sometimes it happens that the mails end up in spam box.
  13. You are using 'post' in your html form, change it to 'get' method or change your variable to use $_POST instead of $_GET
  14. In PHP '.' is the concatination operator. You '->' operator '->' for Object->member referencing
  15. Change everywhere if (isset($_GET['$airline_search'])){ format to : if (isset($_GET['airline_search'])){ remove $from withing array variable name
  16. You can use <div>, set its style attribute to <style="visibility:visible"> <style="visibility:hidden">
  17. To solve case problem. You can use $all_small = strtolower('AnY CASE yOu LIKE'); then compare it with whatever you like.
  18. <?php $num = 12345; $num = strval($num); $num = substr($num,0,2); $num = intval($num); ?>
  19. There is a feature called iframe in IE it could be used to load forms anywhere using its src attribute. Or If you want to post data to the one server with database you can just set the action attribute of your html form to that database hosting server. Or You should also review http://www.php.net/curl
  20. $element = $your_array[0]; $first_2_chars = substr($element,0,2); string substr ( string string, int start [, int length] ) This will give you the first two characters of any string.
  21. From php you can execute files using exec() method. http://www.php.net/manual/en/ref.exec.php From javascript...No, not possible to execute exe file since it is a security issue.
  22. <a href='url.php?id=<?= $id_from_db ?>'><?= $user_name_from_db?></a>
  23. You will need to refresh your page and send the value of selection option in the URL. This can be achieved through javascript : var selected_value = document.your_form.select_name.options[document.your_form.select_name.options.selectedIndex].value; location = 'abc.php?id='+selected_value; Now on php page you can use php code: <?php echo $_GET['id']; ?>
  24. You can create an id field in your table. Type of this field can be 'int'. This field will be the primary key of the table and rest of the fields will have the other user details.
×
×
  • 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.