-
Posts
840 -
Joined
-
Last visited
-
Days Won
1
Everything posted by gristoi
-
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
-
http://www.w3schools.com/php/php_mysql_intro.asp amazing thing .... google
-
Passing Javascript Variables to PHP Mail Function
gristoi replied to garfee's topic in PHP Coding Help
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 ) -
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
-
Help/Suggestions Required - Working With Multiple Rows
gristoi replied to Y2Neil's topic in PHP Coding Help
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>"; -
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
-
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
-
change them from button to <input type="submit" ...
-
Passing Javascript Variables to PHP Mail Function
gristoi replied to garfee's topic in PHP Coding Help
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); -
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
-
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
-
I like it, nice and clean.
-
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.
-
yes it is
-
ok, now what?
-
have you checked if your stylesheets have loaded?
-
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
-
No. Is always stored as a datetime. You format as it comes out
-
"SELECT DATE_FORMAT(`my_date`, '%d-%m-%y') FROM `my_table"
-
Inserting routine into a simple script without upsetting the array
gristoi replied to promotec's topic in PHP Coding Help
shouldnt : $times = "$row['name']"; // be $times = $row['name']; -
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 ++; }
-
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
- 2 replies
-
- php help
- seach form
-
(and 1 more)
Tagged with: