Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
This is my excel columns that i want to import via Laravel excel
the error i get;
row 3 has null while i have no data on row 3
my import class;
You are telling your importer that your date is in Y/m/d format but the actual data in the date_of_registration is not in this format - it looks to be in d/m/Y or m/d/Y format.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
How can I get table data for my tables in my website?
I want to update my table data every minute. Is there any extension for it?
And Could you give me a example for better understanding?
I don't know anything about extract data. So, I didn't try anything.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I need to convert amount into words for example total = 5600 into five thousand six hundred only in yii2
In case of using Yii2 you can do it as simple as the following:
see this Doc reference.
You have to use formatter it will then format it according to your app's language
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a phpmyadmin database that stores data from a simple form. Now i just have to make a page that shows all the answers nicely. How do i import data from that database to the new page?
Fixed: I learned some simple php and then i was good to go. Sorry for any inconvenience.
you need to write query to fetch data from your database and Display it on another page
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am reading an excel file by php and when I get date, php script reads 41850 instead 09/09/2014. I need to save that in my mysql table as date format.
What is the best way to convert it?
If you're using the PHPExcel library, then you use PHPExcel's built-in functions to do the conversion
$unixTimestamp = PHPExcel_Shared_Date::ExcelToPHP(41850);
echo date('Y-m-d', $unixTimestamp);
and
$dateTimeObject = PHPExcel_Shared_Date::ExcelToPHPObject(41850);
echo $dateTimeObject->format('Y-m-d');
will convert the date to a unix timestamp value (that you can then format as you wish using date()) or to a PHP DateTime object respectively
However, if you're reading the cell value using getValue(), try using getFormattedValue() instead... unless you've set read data only to true when you loaded the file, then this will returna formatted string with the date value as it is displayed in Excel
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
A third party API is outputting: "1373762187.198" as a valid date time.
When passed through PHPs date function, I get todays date even though I know the object its attached to is over a week old.
Any ideas how todo a correct conversation?
Just strip the decimals away with an integer cast and then pass it to date (or do you need the milliseconds?)
date("...", (int)$date);