GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Another php/sql error I don't understand (https://gfy.com/showthread.php?t=1349486)

Publisher Bucks 10-28-2021 10:59 AM

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?)

brassmonkey 10-28-2021 12:09 PM

Quote:

Originally Posted by Publisher Bucks (Post 22928740)
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

hornyasf 10-28-2021 12:10 PM

If this is for a live site, don't forget to use prepared statements!

ZTT 10-28-2021 12:12 PM

Try putting this at the top of your PHP pages:

error_reporting(0);


All times are GMT -7. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123