Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-28-2021, 10:59 AM   #1
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,128
Another php/sql error I don't understand

Quote:
$req2 = mysqli_query($con, 'select id, url, name, description, banner, votes from site where status="ok" order by votes desc limit '.$first_message .','.$last_message);
while($dnn2 = mysqli_fetch_array($con, $req2))
Why isnt this displaying the data it is supposed to?

I've ran and executed the correct query (I think?)
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2021, 12:09 PM   #2
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,061
Quote:
Originally Posted by Publisher Bucks View Post
Why isnt this displaying the data it is supposed to?

I've ran and executed the correct query (I think?)
stackflow man
https://stackoverflow.com/users/login
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2021, 12:10 PM   #3
hornyasf
Confirmed User
 
Industry Role:
Join Date: Jul 2021
Posts: 185
If this is for a live site, don't forget to use prepared statements!
__________________
hornyasf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2021, 12:12 PM   #4
ZTT
Confirmed User
 
ZTT's Avatar
 
Industry Role:
Join Date: Apr 2019
Posts: 657
Try putting this at the top of your PHP pages:

error_reporting(0);
__________________
__________________
ZTT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
votes, $req2, mysqli_fetch_array$con, data, while$dnn2, displaying, executed, correct, query, ran, supposed, $last_message;, desc, select, url, mysqli_query$con, understand, php/sql, error, description, banner, limit, status=ok, site, .$first_message



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.