Search found 11 matches

by prohor
Thu Jan 17, 2019 9:57 am
Forum: PHP coding => General
Topic: how to correct Error: Incorrect datetime value: '0000-00-00 00:00:00' error?
Replies: 1
Views: 439

how to correct Error: Incorrect datetime value: '0000-00-00 00:00:00' error?

here is the complete code of my add category page, I can not solve error "Error: Incorrect datetime value: '0000-00-00 00:00:00' for column 'UpdationDate' at row 1 " Can you help me finding and correcting why this is occurring? <?php session_start(); include('includes/config.php'); error_reporting(0...
by prohor
Mon Jan 14, 2019 1:35 pm
Forum: PHP General
Topic: why my bootstrap cards R showing in single column when I am trying to show 3 column?
Replies: 0
Views: 1483

why my bootstrap cards R showing in single column when I am trying to show 3 column?

I am new to PHP- Mysql and bootstrap. I am trying to display records using bootstrap 4.1 cards class. I am trying to show 3 cards in each row but it shows only in one column. I have searched for my error but could not detect. Can anyone help me on this please? connection to database is working fine ...
by prohor
Wed Oct 24, 2018 3:35 am
Forum: PHP coding => General
Topic: Unable to insert data into mysql using php
Replies: 0
Views: 739

Unable to insert data into mysql using php

# I am trying to insert data using php to Mysql but after 5 days of trying I am seeking for help here as I could not figure what is wrong in my code! Please help to find out. Thank you for your valuable time spending for me. <?php if (isset($_POST['submit'])){ if (($_POST['emp_fname'] == '')or($_POS...
by prohor
Sun May 13, 2018 3:34 am
Forum: PHP General
Topic: how to get value from js alert message to store in PHP varible?
Replies: 1
Views: 660

how to get value from js alert message to store in PHP varible?

I am trying to learn php and js. Here I am trying to put a value in php varible from javascript alert message input box but failed. here what I have done so far, // <?PHP and other variable is here.... $number='number'; <script> function number{ if (fail == "") { number = prompt('Please enter Phone ...
by prohor
Mon Dec 11, 2017 1:22 pm
Forum: PHP coding => General
Topic: How to show data from mysql database in decending order using pdo?
Replies: 2
Views: 704

How to show data from mysql database in decending order using pdo?

I am trying to show data using "fetch(PDO::FETCH_desc" for show from descending order but it only works for assoc order like bellow code, how I can show it in descending order? I am new to php and pdo, please help. $stmt = $DB_con->prepare(" SELECT name, id FROM class ORDER BY id DESC LIMIT 1, {$rec...
by prohor
Fri Mar 31, 2017 9:22 am
Forum: mySQL & php coding
Topic: I am having Parse error: syntax error, unexpected 'selected' (T_STRING), expecting ',' or ';'
Replies: 1
Views: 1234

I am having Parse error: syntax error, unexpected 'selected' (T_STRING), expecting ',' or ';'

how I can mark selected pagination page for the following code? I have tried with <?php if($page===$i) {echo ' class="selected"';}?> in the line echo "<a href='index3.php?page=".$i."' class='navigation_item selected_navigation_item'>".$i."</a>"; with the help of css using 'selected' class but error ...
by prohor
Thu Mar 30, 2017 11:52 am
Forum: mySQL & php coding
Topic: Why page navigation not working in this code?
Replies: 1
Views: 1352

Why page navigation not working in this code?

I wanted to display maximum 12 image in a page and if more is there there will show pages number like page 1, page 2.. I have tried with this code but all images showing in page1 and page2 also showing the same images. How I can limit and show first 12 image in page 1 and next 12 in page 2? Please h...
by prohor
Thu Nov 03, 2016 1:00 pm
Forum: CSS
Topic: How to change text field background color only for placeholder text?
Replies: 0
Views: 3631

How to change text field background color only for placeholder text?

I want to change text fields background color only for placeholder text. What will change from "green" to "white" when any text is inserted. I want to keep it different when mouse over it. I wrote a code but text field's background color get's back to geen again after cursor taking away after text i...
by prohor
Sun Oct 30, 2016 5:49 am
Forum: HTML Basics
Topic: How to pull an input form from a website's page?
Replies: 0
Views: 4223

How to pull an input form from a website's page?

I have found a input form in

http://mfaspecialists.com/ingrown-toena ... tactfooter

here, if I click 'send message' button an nice input form appears. Is there anyway to pull this form so I can use it in my html?

please help.
by prohor
Sun Sep 11, 2016 10:22 am
Forum: mySQL & php coding
Topic: Unicode data retrieve from mysql using php problem
Replies: 1
Views: 991

Re: Unicode data retrieve from mysql using php problem

"mysqli::set_charset()" link solved my problem. I added my code and looks like bellow :happy-04: <?php $connect = mysqli_connect("localhost", "root", "", "sumonn"); // this lines solved my problme, changing latin1 to utf8 after connction (start) if (!mysqli_set_charset($connect, "utf8")) { printf("E...
by prohor
Sun Sep 11, 2016 9:14 am
Forum: mySQL & php coding
Topic: Unicode data retrieve from mysql using php problem
Replies: 1
Views: 991

Unicode data retrieve from mysql using php problem

I want to retrieve unicode based (Bengali language) data from mysql (wamp server 3 is running). I have inserted data using PhpMyAdmin and can read the font. but when I tried to read using php in html it just shows '?????' ! I know it is creating problem with unicode data. any solution?? how I can ha...