Posts by Nathalia Negrão • 77 points
6 posts
-
0
votes2
answers3176
viewsA: Calling php function through a form
Final solution: <div style="width: 50%;margin: 20px auto; "> <form action="" method="POST"> Selecione o arquivo desejado: <select name="file"> <option value=""…
-
0
votes2
answers3176
viewsQ: Calling php function through a form
Good afternoon, I am trying to create a page on my site is wordpress in which the user chooses a file and this file updates a table in the database. I got code down, but when I click to load data,…
-
0
votes2
answers55
viewsA: Make an array for a query with false conditions
Thank you guys, you’ve been very helpful! The code that worked was as follows: $meta_query[] = array( 'relation' => 'OR', array ( 'key' => '_featured', 'compare' => 'NOT EXISTS' ), array (…
-
1
votes2
answers55
viewsQ: Make an array for a query with false conditions
I have the following query, where the conditions are informed from a array: $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'DESC',…
-
1
votes2
answers398
viewsA: Convert date to Unix timestamp
Follow the solution I used. Converting from string to date: Update `tabela` set date = STR_TO_DATE(date_text, '%d/%m/%Y') Converting from date to Unix timestamp: Update `tabela` set date_unix =…
-
5
votes2
answers398
viewsQ: Convert date to Unix timestamp
I have a table in a Mysql database that has a date column VARCHAR, guy 20-09-2017 and I need to migrate this column to a column bigint(8) using the date format timestamp unix. How to do this?…