<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Julian</title>
    <description>The latest articles on DEV Community by Julian (@juli6464).</description>
    <link>https://dev.to/juli6464</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F374928%2Ff5f5bde2-9dfd-44c6-8395-82c09c1df19b.jpg</url>
      <title>DEV Community: Julian</title>
      <link>https://dev.to/juli6464</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/juli6464"/>
    <language>en</language>
    <item>
      <title>
How to delete a file uploaded in database</title>
      <dc:creator>Julian</dc:creator>
      <pubDate>Sat, 02 May 2020 21:07:31 +0000</pubDate>
      <link>https://dev.to/juli6464/how-to-delete-a-file-uploaded-in-database-4ipi</link>
      <guid>https://dev.to/juli6464/how-to-delete-a-file-uploaded-in-database-4ipi</guid>
      <description>&lt;p&gt;To delete a file loaded on a server, we must enter the following code in our program:&lt;/p&gt;

&lt;p&gt;// We proceed to delete&lt;br&gt;
     if (! unlink ('uploads /'.$ file)) {&lt;br&gt;
          // print error when deleting&lt;br&gt;
          echo 'Error deleting';&lt;br&gt;
     } else {&lt;br&gt;
          // File deleted&lt;br&gt;
          echo 'File deleted';&lt;br&gt;
     }&lt;/p&gt;

</description>
      <category>sql</category>
      <category>mysqli</category>
      <category>mysql</category>
      <category>data</category>
    </item>
    <item>
      <title>
How to get the date in Spanish, with the format name of the month, day and year</title>
      <dc:creator>Julian</dc:creator>
      <pubDate>Fri, 01 May 2020 20:57:15 +0000</pubDate>
      <link>https://dev.to/juli6464/how-to-get-the-date-in-spanish-with-the-format-name-of-the-month-day-and-year-4f8b</link>
      <guid>https://dev.to/juli6464/how-to-get-the-date-in-spanish-with-the-format-name-of-the-month-day-and-year-4f8b</guid>
      <description>&lt;p&gt;It's normal that on a web page we want to print the date showing the name of the month, because normally what we do is print a date style 01/05/2020 and it is not ideal, since to view events in a program, blogs, among others the ideal format is to have the name of the month and in Spanish, since by default in Mysql the date appears in us format.&lt;/p&gt;

&lt;p&gt;The following code was implemented within PHP and can be implemented for your programs:&lt;/p&gt;

&lt;p&gt;$ res = mysqli_query ($ link, "SET lc_time_names = 'es_ES';");&lt;br&gt;
$ res = mysqli_query ($ link, "SELECT id, title, DATE_FORMAT (date, '% M% d% Y') as date FROM table order by id desc limit 3");&lt;/p&gt;

</description>
      <category>sql</category>
      <category>date</category>
      <category>mysqli</category>
      <category>mysql</category>
    </item>
    <item>
      <title>
How to Convert date format to PHP with MYSQLI, using secure queries to avoid SQL injection</title>
      <dc:creator>Julian</dc:creator>
      <pubDate>Tue, 28 Apr 2020 14:19:54 +0000</pubDate>
      <link>https://dev.to/juli6464/how-to-convert-date-format-to-php-with-mysqli-using-secure-queries-to-avoid-sql-injection-3k4n</link>
      <guid>https://dev.to/juli6464/how-to-convert-date-format-to-php-with-mysqli-using-secure-queries-to-avoid-sql-injection-3k4n</guid>
      <description>&lt;p&gt;There are cases in which we need to send a date format in Spanish to a sql query, for example the format of (Abril 28 2020) and for this we must do the following:&lt;/p&gt;

&lt;p&gt;$ query = mysqli_query ($ conn, "SET lc_time_names = 'es_ES';");&lt;/p&gt;

&lt;p&gt;$ query = $ conn-&amp;gt; prepare ('SELECT id, DATE_FORMAT (date, "% M% d% Y") ,, text FROM table WHERE id =?');&lt;/p&gt;

&lt;p&gt;Keep in mind that these queries are what we should do in our developments to avoid sql injection.&lt;/p&gt;

</description>
      <category>php</category>
      <category>mysqli</category>
      <category>injection</category>
      <category>sql</category>
    </item>
  </channel>
</rss>
