PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Aug 26, 2018 13:27
please help... pleaseeee
Aug 26, 2018 13:27
-1
Q: Inserting the data in one table with 2 different tables

jericoGood day! I'm making an Evaluation Questionnaire and trying to insert the Question_ID and the Rating_ID on the question_rating table but the Question_ID and Rating_ID are from different tables which are as follows: Here's my question table: Here's my rating table: Here's the table where I in...

Aug 26, 2018 12:32
i'm taking too long
Aug 26, 2018 12:32
please help..... :(
Aug 26, 2018 12:31
-1
Q: Inserting the data in one table with 2 different tables

jericoGood day! I'm making an Evaluation Questionnaire and trying to insert the Question_ID and the Rating_ID on the question_rating table but the Question_ID and Rating_ID are from different tables which are as follows: Here's my question table: Here's my rating table: Here's the table where I in...

Aug 26, 2018 12:31
please help :(
Aug 26, 2018 12:30
stackoverflow.com/q/52019268 you shouldn't create new accounts. I thought that code looked familiar earlier. Edit: Which has been deleted and only viewable by 10k+ members and moderators. — Funk Forty Niner 16 mins ago
Aug 8, 2018 16:51
should I have a delete button ? or just edit ?
Aug 8, 2018 16:48
help me please, im taking too long..
Aug 8, 2018 16:40
Aug 5, 2018 15:33
Does grades matter in I.T industry ?
 
Aug 19, 2018 05:59
<input class="form-control col-sm-8" type="date" id="datepicker1" placeholder="Enter Student ID" name="lastSchedule" autocomplete="off">
Aug 19, 2018 05:59
<input type"date">
Aug 19, 2018 05:42
wee have the same problem but I don't know how to apply that to my codes
Aug 19, 2018 05:41
19
Q: PHP date showing '1970-01-01 ' after conversion

AssamGuyI have a form in which date format is dd/mm/yyyy . For searching database , I hanverted the date format to yyyy-mm-dd . But when I echo it, it showing 1970-01-01 . The PHP code is below: $date1 = $_REQUEST['date']; echo date('Y-m-d', strtotime($date1)); Why is it happening? How can I form...

Aug 19, 2018 05:38
It says 1970-01-01
Aug 19, 2018 05:34
1970-01-01
Aug 19, 2018 05:15
$setSchedule = date('Y-m-d',strtotime($_POST['setSchedule']));
Aug 19, 2018 05:15
How to insert that on my code
Aug 19, 2018 05:15
$date1 = $_REQUEST['date'];
echo date('Y-m-d', strtotime($date1));
Aug 19, 2018 05:03
Notice: Undefined variable: test in C:\xampp\htdocs\capstone\admin\guidance\EvaluationSchedule_set.php on line 8
Aug 19, 2018 05:03
it says
Aug 19, 2018 04:33
Hi Viney..
Aug 19, 2018 04:33
It works! But the value in Evaluation_ScheduleFrom is 1970-01-01 and in Evaluation_ScheduleTo is 2018-08-22 not the same as I pick the date..
Aug 19, 2018 04:33
How to convert it ?
Aug 19, 2018 04:33
the value on Evaluation_ScheduleFrom is still 0 but in the Evaluation_ScheduleTo table the value is 1970-01-01 even though I pick 08/21/2018
 
Aug 8, 2018 16:37
Aug 6, 2018 15:38
Sir Ankur.. Good day! Please help me with my problem..
Aug 5, 2018 16:11
Wow, thank you so much.. Sharma! Godbless you..
Aug 5, 2018 15:41
<!-- The Modal -->
<div class="modal fade" id="delete_modal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Delete Confirmaiton</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<div class="alert alert-danger" role="alert">
Are you sure you want to delete selected record?
</div>
</div>
<!-- Modal footer -->
<div class="modal-footer">
Aug 5, 2018 15:41
try my old version of modal , the status works.. but can't delete data
Aug 5, 2018 15:40
$('.activate').on('click',function(){
var id = $(this).data('id');
$('#activate').val(id);



});
Aug 5, 2018 15:40
I already have this..
Aug 5, 2018 15:40
When I added this modal footer
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
<input type="hidden" name="delete" value="" id="row-id-to-delete">
<button type="submit" class="btn btn-danger" >Yes</button>
</div>

and this function

$('.delete-faculty-btn').on('click',function(){
$("#row-id-to-delete").val($(this).data('fid'));


});
Aug 5, 2018 15:28
thank you Sharma...
Aug 5, 2018 15:22
I share it with My Drive
Aug 5, 2018 15:17
I send it through facebook
Aug 5, 2018 15:13
Do you have a facebook Ankur Sharma ?
Aug 5, 2018 15:09
I send it.. as well the db.. facultyevaluation.sql
Aug 5, 2018 15:06
can I have your email..
Aug 5, 2018 15:06
Yes the status active and deactive was working properly.. Can I share you my codes ?
Aug 5, 2018 15:06
Hello @Ankur Sharma , my status active/deactive doesn't work anymore..
Aug 5, 2018 15:06
Thank you so much @Ankur Sharma
Aug 5, 2018 15:06
The data has been deleted.. but it the Undefined variable: id is still there..