![]() |
LIMIT query using a variable
Im writing a hack that depending on the number entered in vBOptions, will limit the ammount of TR/TD tags there are using a query. I've tried this code:
PHP Code:
But this only shows one row of code when I entered 5 in options. Anyone shed some light on this |
you shouldn't get a single row, as your using an DB result and not a normal array.
you have to add a whileloop fetch_array afterwards :) |
Good idea, I'll try that - thanks
|
Ok, here is the code i'm using now:
PHP Code:
"Warning: mysql_fetch_array supplied argument is not a valid MySQL result resource in db_mysql.php Any ideas why? |
are you sure $numofportfolio is set at least at 1?
also in your eval code you missed a . |
$numofportfolio currently is set at 5
And thanks, I was copying off another screen:rolleyes: |
bump
|
All times are GMT. The time now is 12:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|