Skip to content

Tag: mysql

Check for duplicate emails before querying

I’ve searched and look at other examples but as i’m new i’m having trouble translating over to my code. What I want to do is have it check the database to see if that email has already been entered. If it has I want it to tell them it has and that there is only one entry per person. Any

Unknown Column in Field List. PHP + Mysql

I’m trying to add values to a table in phpmyadmin and I get the error: Unknown column ‘…’ in ‘field list’. Here’s my code: so when I enter fds as name in the form on the previous page I get : Unknown column ‘fds’ in ‘field list’. This never hap…

SQL Export – WordPress plugin DEV

Hi So i have the following code.. Now, it works but doesnt download the file. Saying headers already sent. headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/~/wp-admin/includes/template.php:1642) Now i understand that the headers have been sent from my main plugin file already t…

SHOW COLUMNS from multiple tables

I am trying to get the column names from 2 tables. I tried a query like: (SHOW COLUMNS FROM users) UNION (SHOW COLUMNS FROM posts) but that does not work & returns a syntax error. I tried the same query using DESCRIBE but that did not work either. How can I get all the column names from multiple tables in