Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Rare price catalog for your client (update)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sledmore" data-source="post: 477496" data-attributes="member: 591"><p>Nice release, but I'd be surprised if it doesn't error as $nombre isn't defined? I would say you should also use prepared statements, but you have some JS for filtering so I don't think you even need that query, I'd change:</p><p></p><p>[PHP]$sql = "SELECT * FROM catalogo_zayter WHERE nombre LIKE '%$nombre%' ORDER BY nombre";[/PHP]</p><p>To:</p><p>[PHP]$sql = "SELECT * FROM catalogo_zayter ORDER BY nombre";[/PHP]</p><p></p><p>I would probably also make a slight change to:</p><p>[PHP]echo "<div class='col-lg-6 col-xl-4 order-first'>";[/PHP]</p><p>Change to:</p><p>[PHP]echo "<div class='col-lg-6 col-xl-4 order-first rare-entry'>";[/PHP]</p><p></p><p>And:</p><p>[CODE=javascript]$(".card").filter(function() {[/CODE]</p><p>To:</p><p>[CODE=javascript]$(".rare-entry").filter(function() {[/CODE]</p><p>That way you don't have empty divs making space.</p><p></p><p>It's a nice release, just seems unneccessarily heavily. Calling image assets from habborator, habboassets & habbo, and then on top of that lots of other dependencies.</p></blockquote><p></p>
[QUOTE="Sledmore, post: 477496, member: 591"] Nice release, but I'd be surprised if it doesn't error as $nombre isn't defined? I would say you should also use prepared statements, but you have some JS for filtering so I don't think you even need that query, I'd change: [PHP]$sql = "SELECT * FROM catalogo_zayter WHERE nombre LIKE '%$nombre%' ORDER BY nombre";[/PHP] To: [PHP]$sql = "SELECT * FROM catalogo_zayter ORDER BY nombre";[/PHP] I would probably also make a slight change to: [PHP]echo "<div class='col-lg-6 col-xl-4 order-first'>";[/PHP] Change to: [PHP]echo "<div class='col-lg-6 col-xl-4 order-first rare-entry'>";[/PHP] And: [CODE=javascript]$(".card").filter(function() {[/CODE] To: [CODE=javascript]$(".rare-entry").filter(function() {[/CODE] That way you don't have empty divs making space. It's a nice release, just seems unneccessarily heavily. Calling image assets from habborator, habboassets & habbo, and then on top of that lots of other dependencies. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Rare price catalog for your client (update)
Top