-
Posts
840 -
Joined
-
Last visited
-
Days Won
1
Everything posted by gristoi
-
Close suggestion box when user click "Clear" button
gristoi replied to jasoncdenson's topic in PHP Coding Help
you need to bring your ajax up to date and into 2013 . Use Jquery to acomplish your ajax calls and bind your click events to the buttons: https://www.google.co.uk/search?q=jquery+ajax+get&oq=jquery+ajax&aqs=chrome.2.69i57j0l5.3941j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8 https://www.google.co.uk/search?q=jquery+ajax+get&oq=jquery+ajax&aqs=chrome.2.69i57j0l5.3941j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8#es_sm=91&espv=210&q=jquery+click -
if your using ajax to submit the form then you need to prevent the forms native submission, otherwise the page will reload: $("#sub").click( function() { $.post( $("#myForm").attr("action"), should be $("#sub").click( function(e) { //stop the click event from bubbling e.preventDefault(); $.post( $("#myForm").attr("action"),.....); .............. return false; // at end }
-
It's 2013, not 1993. You should look at using a more up to date method of displaying modal information, using jquery and Ajax is a good start
-
i would hazard a guess that you have a permission issue . mainly due to Permission denied in the error. chmod the directory correctly
-
Username availability help - JS not making call's?
gristoi replied to travisco87's topic in Javascript Help
$('user_name') should be $('#user_name') -
How to call out for the information in the database?
gristoi replied to goingcrazythankstophp's topic in PHP Coding Help
https://www.google.co.uk/search?q=php+outputting+data+from+database&oq=php+outputting+data+from+database&aqs=chrome..69i57j0j69i64.5597j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8 -
you say you have a pretty good php knowledge. Well I would advise you to stop thinking about which 'application' to choose but expand your core PHP knowledge. And not by trying to jump into frameworks. you will end up a semi decent developer with a knowledge of some frameworks. What you really need to focus on is the fundementals : OOP, design patterns, coding standards, version control, TDD ( unit and integration and acceptance testing ) and methodologies such as AGILE. Once you have these then frameworks are just tools that you can use to fit the project. Learn correctly and the money comes naturally.
-
$HTTP_POST_VARS is deprecated. use $_POST instead
-
Parse error: syntax error, unexpected 'DISTINCT' (T_STRING) in
gristoi replied to Jayden_Blade's topic in PHP Coding Help
wrap your query in quotes: $new = $mysqli->query("SELECT DISTINCT `signupdate` FROM `profiledata`"); -
so, your asking us to take code that you just threw together and fix it for you. Your posting in the wrong place mate, you want someone to refactor your code then you best post this in the freelance section and get your wallet out
-
How to create Download link with existing php
gristoi replied to wcbennett3's topic in PHP Coding Help
you need to make sure the php that is setting up the mp3 is also setting up the right headers, so that the browser knows what to do with the resource: eg: header ("Content-type: octet/stream"); header ("Content-disposition: attachment; filename=something.mp3;"); header("Content-Length: ".filesize(<size of the file>)); -
Help understand how to use API and display it on my site
gristoi replied to SennNathan's topic in PHP Coding Help
Read the documentation: http://products.wolframalpha.com/developers/ -
Finding location on google maps using ip address
gristoi replied to chris17's topic in Javascript Help
If you want people to do work for you then you best move this post into the freelance section. If you are looking for help on coding this then the google map api should be your first port of call -
why can you not amend the field type to a dateTime?
-
as a test, what happens if you go to delpage.php?id=1 ( make sure this is a real row id in the database) ? you need to make sure that the php isnt crapping out on the deletion. because its ajax ou could be getting an error back, but the success method triggers. giving you a false-positive, Also, have you looked at the response being sent back from the server in your browser console?
-
try: $.ajax( { type: "POST", url: "delpage.php", data: { id: id }, cache: false, success: function() { parent.fadeOut('slow', function() {$(this).remove();}); } });
-
what is the exact error. unkown xxxxx is not too helpful. is it actually giving you a column name? and where is order_date in the t1 structure?
-
you are doing no check at all that the values being passed in for start and end dates are in the expected format. You need to make sure that the dates are in the Y-m-d format. So 5th jan 2013 would be 2013-01-05. If you dont pass a correctly formatted date into the query it will not insert
-
if (isset($_POST['action']) && $_POST['action'] == 'login') { if (!isset($_POST['email']) || $_POST['email'] == '' || !isset($_POST['password']) || $_POST['password'] == '') } $GLOBALS['loginError'] = 'Please fill in borh field'; return false; }
-
have a look at using the paypal api as one option. users can be redirected to paypal to pay. means you dont have to store as much sensitive data on your server
-
youve got return_id in your query and returns_id in your table structure ( missing s)
-
this should help you on the subject: http://php.net/manual/en/book.errorfunc.php
- 16 replies
-
- error log
- log errors
-
(and 2 more)
Tagged with:
-
here you go: https://www.google.co.uk/search?q=php+mysql+insert+into+database&oq=php+mysql+insertinto+&aqs=chrome.1.69i57j0l3.6316j0&sourceid=chrome&ie=UTF-8 1.4 million answers for you
-
please put your code into code blocks. no one is going to spend there time reading through 200 lines of unformatted code. thanks