Jump to content

gristoi

Members
  • Posts

    840
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gristoi

  1. unfortunately , no matter how well you try to describe your issue you will not get any help without showing the code in question. Is very hard to find an issue by pure guesswork
  2. http://www.w3schools.com/php/php_mysql_intro.asp amazing thing .... google
  3. looks good, always try to keep the JS / css / html and php seperated wherever possible. Makes the code easier to follow. one thing i would advise to do is to replace : $_REQUEST with $_POST or $_GET. You will know when creating the form how you are sending the data across ( post / get etc )
  4. IMHO, if they have used the credentials of another user to accept your sites app then that is an issue between the owner of the account, the person who used their account to log in an accept your terms on their behalf and the courts. How are you to know if it was their account, they would have to take it up with facebook, the only thing you could due for a bit of due diligence is log the ip of the person signing in or up, would at least go some way to show your security concious
  5. at a glance it looks loike you are not closing off your form after the else satement, but you are closing it off before: </form></td>"; } else { so your last part of the code should be <label><input name=\"ChaAv\" type=\"Submit\" id=\"ChaAv\" value=\"Change Availability\"></label></td>"; //changed to this <label><input name=\"ChaAv\" type=\"Submit\" id=\"ChaAv\" value=\"Change Availability\"></label></form></td>";
  6. you can use the datetime object in PHP: $date = DateTime::createFromFormat('d/m/Y', $date_course); $dateForDb = $date->format('Y-m-d'); hope that helps
  7. i mean, correct - you do have an error there. If you would like someone to comment on how to fix it then please make sure you put a bit more information in your post as to what the problem is and what you have done to solve the issue so far. To start you off, ensure $user_email is not returning something that is causing the string to escape
  8. correct
  9. change them from button to <input type="submit" ...
  10. you have a few choices: 1. post all your data using ajax 2. add the value on the fly to a hidden field in your form so that it gets posted: <input type = "hidden" id="myValue" name = "myValue" /> //then in JS $('#myValue').val(// get the computed value);
  11. headers must be sent BEFORE anything is outputted to screen
  12. an old one i used a long time ago ( dont know if its still going ) was http://www.redmine.org/ . did the job quite well. easy to write plugins for
  13. I would advise you looking a using a templating engine (something like twig) or shift your site into an MVC framework which will mean only 1 master template to worry about
  14. I like it, nice and clean.
  15. my response is as helpful as your request is general. If you expect help on the forum then please at least explain what you have tried to do to get this working. You will not get a lot of help from the forum users if you have not at least tried to get it working. the people here are here to help people with php issues, NOT to complete code that they cannot be bothered to do themselves, or finish their homework for them. If you don't want to do it yourself then post this in the freelance section and pay someone for their time.
  16. are you running this from your local machine or from a web server. if you are running it from your local machine then you need to make sure your mail client is configured correctly
  17. ok, now what?
  18. have you checked if your stylesheets have loaded?
  19. firstly your query is only querying 1 table, so what would you join? have you also tried adding an index to the id table, this will speed the query dramatically
  20. No. Is always stored as a datetime. You format as it comes out
  21. "SELECT DATE_FORMAT(`my_date`, '%d-%m-%y') FROM `my_table"
  22. shouldnt : $times = "$row['name']"; // be $times = $row['name'];
  23. ok, so lets presume you are outputting the dialogues from an array ( could be db, principle is the same): $i = 0; $messages = array( array('name'=> 'jack', 'message'=>'Lorem Ipsum'), array('name'=> 'jill', 'message'=>'Lorem Ipsum') array('name'=> 'jack', 'message'=>'Lorem Ipsum') array('name'=> 'jill', 'message'=>'Lorem Ipsum') array('name'=> 'jack', 'message'=>'Lorem Ipsum') ); foreach($messages as $message) { if ($i % 2 != 0) # An odd row $person = "person_1"; $spk = "spk_1"; else # An even row $person = "person"; $spk = "spk"; } print '<div class="dlg"> <div class="'.$person.'">'. $message['name'].'</div> <div class="'.$spk.'">'. $message['message'].'</div> </div> '; $i ++; }
  24. the forum is to help people who are having problems with their coding, not to do the work for them. if you want someone to complete your code then your best moving this to the freelancing section
×
×
  • 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.