Posts by Mib • 303 points
4 posts
-
4
votes1
answer1133
viewsQ: Problem reading words from database with accent or cedilla
I’m reading my table categories from the database and when I have words with cedilla or accents, they appear in my project with strange characters. For example, in the categories I have a title…
-
2
votes3
answers318
viewsQ: Converting a datetime to text does not show the result
I have a date in this format: Quarta, 21 Maio, 2014. To save this date in the database I’m converting it to datetime as follows: $f['data'] = $_POST['data']; $data = DateTime::createFromFormat('l, j…
-
3
votes1
answer4251
viewsQ: Error "No such file or directory" when using mkdir()
I have a file upload form, so I have one input of the kind file: <input type="file" class="fileinput" name="pdf"/> Then, if a file has been selected, I want to create a folder "PDF’s". If the…
-
8
votes1
answer696
viewsQ: Error trying to convert Portuguese date into datetime
I’m in trouble and I’m not finding any solution to fix it. I have a date in this format: Wednesday, 30 April, 2014 and I want to save this date in the database on type datetime. So I’m trying to…