Jump to content

gristoi

Members
  • Posts

    840
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gristoi

  1. ok, it is telling you what you need to know. mysql is no longer used in later php versions, you need to start using PDO
  2. globals are evil. You imaging you have a global variable call $foo; anywher ein your code this could be overriden without you knowing., singletons ove rthe global scope but stop the value being acciendtly overriden
  3. by learning html and css
  4. you want to be using the phones gps not sim. main two contenders are java / android sdk or objective c / swift for iphone
  5. amazing thing google. first hit: http://plugins.jquery.com/fullscreen/
  6. this forum is to help people who wishto learn PHPor are having issues with their current code. You have three options: 1. learn to code what you want 2. google to find what you want 3. pay someone to do what you want But dont expect people here to do the work for you
  7. you need to understand that submitting a form on a stateless page will refresh the page. You want to asynchrousnly submit the data ( submit without reloading the page ) . SO look at using ajax
  8. Are you serious? If you intend to code like this then you might as well quit now. Read up on SQL injection, and this snippet is the mother of them all. Im not going to help you any further on this as it could have dire consequences for anyone using this script.
  9. $(document).ready(function(){ $(function(){ $(".btn-details").on('click', function(){ var idproduto = $(this).data('idproduto'); $.ajax({ type: "POST", url: "descProduto.php", async: false, dataType: "html", data: {'idproduto': idproduto}, success: function(result){ console.log("success"); console.log(idproduto); }, error: function(){ console.log("error"); } }); return false; }); }); });
  10. ALSO MYSQL_* IS DEPRECATED, USE PDO
  11. and you expect help without showing any code, we are not phycic
  12. it is includes job to 'include' the page. If you want caching then look at something like apc
  13. you are overriding the error_message variable every time you iterate your loop
  14. Sorry, is there a problem? ok i will drop everything i am doing and look through the script you found on the internet. Oh no wait, just realised I don't work for you!!!! This forum is for helping people the LEARN php and solve any issues they have with code that they are working on. Not sorting through random crap they found on the internet. You want someone to blindly fix something for you then post on freelance section and expect to dig into your wallet
  15. phpmyadmin is open source and available for download, just grab and unzip it. http://www.phpmyadmin.net/home_page/downloads.php Be warned, it's a mess in there
  16. your two main issues will be down to: 1: server configuration. for example, the script you have pasted above show short opening tags '<?' should be '<?php'. 2. you are correct, you cant port a php4 codebase onto a php5 server. you will have issues with deprecation amonst other things
  17. try fullcalendar.js has a well documented api
  18. you cannot have any output prior to a header
  19. if you purchased the script you should speak to the person you bought it from. No one here is going to be able to help you without knowing what the script is doing
  20. @jazzman1, you are talking a load of bollocks. I went back to uni at 26 years old to study programming after deciding I wanted a career change, and have been a professional developer in the industry now for over a decade. It does not matter what age you are, and from your comment I would guess you are only young. life doesn't end at 30 mate. I put myself through uni holding down a full time job and with two young children to bring up.
  21. ok, to start your query is missing a single quote: try $Domain = $_GET['Domain']; $result = mysql_query("SELECT `Code`, `Title`, `Domain`, `Status` FROM `tablename` WHERE `Domain`='{$Domain}' ORDER BY `Code`"); also make sure $Domain is sanitized and actually exists. You should never pass raw input into a query
  22. I would say you shouldnt bother submitting it directly in php. use ajax in the $(".submit").click(function(){ $.ajax({ type:'POST', data: $('#joinform').serialize(), url: 'url to your backend php script / controller'' }); }) then in the backend just pull out the form vars $username = $_POST['username']; $pass = $_POST['pass']; //do your data santizing ..... //build a string and sent using curl / guzzle / http client $url = 'http://gatewayaddress?username='.$username.'&password='.$pass ........ etc
×
×
  • 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.