This means the MySQL query did not execute correctly. You can use this to figure out what went wrong:
$rs = mysql_query( "select * from users where fb_userid='$fb_user'" ) or die(mysql_error());
although in this case it seems the problem is that you have not enclosed table and column names within the required ` marks, so try
$rs = mysql_query( "select * from `users` where `fb_userid`='$fb_user'" ) or die(mysql_error());
Related Posts:
- PHP & MySQL: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given [duplicate]
- SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax — PHP — PDO [duplicate]
- Unknown column in ‘field list’ error on MySQL Update query
- Fatal error: Call to undefined function mysql_connect()
- What’s the difference between VARCHAR and CHAR?
- mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in
- How to split the name string in mysql?
- Simple PHP Pagination script
- MySQL combine two columns into one column
- How can I do ‘insert if not exists’ in MySQL?
- Fatal error: Call to a member function bind_param() on boolean [duplicate]
- PHP with MySQL 8.0+ error: The server requested authentication method unknown to the client
- How can I prevent SQL injection in PHP?
- How can I do ‘insert if not exists’ in MySQL?
- Cast from VARCHAR to INT – MySQL
- Unexpected Exception: SQLSTATE[HY000] [1045] Access denied for user ****@’localhost’ (using password: YES)
- Call to a member function on null?
- Insert into a MySQL table or update if exists
- How to round down to nearest integer in MySQL?
- MySQL: Can’t create table (errno: 150)
- Join vs. sub-query
- Alternative to except in MySQL
- Warning: session_start(): Cannot send session cookie – headers already sent by (output started at [duplicate]
- How to make DROP INDEX IF EXISTS for mysql?
- MySQL – count total number of rows in php
- cannot change admin password, wordpress on godaddy
- How to cache/speed WordPress queries for logged in users?
- How to correctly submit a search form and display the result in an independent page
- Check if post of title already exists
- $wpdb->delete column values IN ARRAY()?
- Custom SQL query to get List of posts with featured image url
- Delete post revisions on post publish
- Using Echo in ShortCode – Stuck
- Problems migrating WordPress to localhost
- error importing localhost export file to server
- How to sort results from a custom database table
- Update some database fields when post is saved
- sql query to put quotes around numbers in img tag
- Different database query in function.php using mysqli
- How to write one comment and publish on every post using database or plugin?
- Strange wordpress slowness
- Setting All Drafts to ‘exclude-from-catalog’ in WooCommerce
- How to get number of Affected rows from wordpress dbDelta() function
- Adding custom tables to WordPress
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Create WP_Query to search for posts by their categories or their parent/child categories
- How to simultaneously access the same MySQL database in the main column and sidebar of WordPress?
- WordPress php mysql errors – errcode: 13 permission denied
- get_posts() and WP_query limits ‘AND’ conditions to a maximum of 6 for meta value queries in WordPress
- $wpdb->insert() does not Insert record in a table
- WordPress SQL injection
- Grouping posts by a custom meta value
- Should I use WordPress to skin a database website?
- WordPress Custom SQL Table with UserID Filter for results
- How can I add a new row in a separate database when someone registers via WordPress?
- Output: “Array”
- How to use mysql LIKE with wpdb?
- speed up pagination for huge database
- How to use AJAX in WordPress in MYSQL query?
- Use variable in SQL statement
- Live search from database table
- Processing ajax call to php to insert into mysql database
- How to display results from a data table with an encrypted user id?
- How to create Loop code for Menu using WordPress?
- WordPress Custom Query: Combining Two Functions
- MySQL Query Returns Array () In Shortcode
- Passing in MySQL prepare statement parameter separately throwing error
- Database SQL query error
- Error establishing a database connection (Set-up locally)
- Cant create table on plugin activation
- MYSQL TIMESTAMP when adding DATE_FORMAT then the output is blank, PHP conflict?
- Updated Php version from 5.4 to 7.2 and getting “PHP installation missing the MySQL extension needed by WordPress”
- Passing Current User ID into SQL statement
- How to optimize and reduce excessive database queries
- How to insert multiple rows and columns in database using array
- Store GA Client ID in User DB
- Moving a few select DB tables to a new WP instance
- PHP Warning: mysqli_error(): Couldn’t fetch mysqli in
- PHP 7.2.18 | Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Need help with format of nested array in MySQL
- Inserting other fields to existing registration form in a WordPress theme
- Advanced WordPress SQL Query
- Splitting table data to pages with numbers
- How can get all users by current user meta (array)?
- Site doesnt work once PHP changed to 7.1
- How to detect if a revision was made by woocommerce or wordpress?
- WordPress WPDB::insert 13th param is always blank (only if format)
- Ajax not updating to database
- can’t delete a row from post_meta table
- MySQL query in WordPress with AJAX
- Processing forms with php to wordpress database
- How to connect database table to each registered wordpress user.
- retrieve wordpress post-meta using php not wordpress functions
- Splash pages on a high traffic site
- how to search through plugin in wordpress cimy-user-extra-fields?
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- Putting form result in my database
- How can I update a value of a field depending on outside source?