Jump to content

maxxd

Gurus
  • Posts

    1,725
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by maxxd

  1. Just to be clear, the database itself will still be a MySQL database - MySQL's not going anywhere. MySQLi is a php class that's replacing the deprecated MySQL php functions. So it has nothing to do with the database itself, but rather with the way you interact with the database in php. All the mysql_somethingfunction() that you see in the code itself need to be updated to use mysqli_comparativefunction().
  2. Try joining the tables instead of running queries within a loop (which is typically a bad idea. The following is untested and hastily put together, but it looks like it could work for your purposes: SELECT a.id_art ,a.denom2 ,a.exist ,a.marca AS articulosMarca ,m.id_marca ,m.marca AS marcasMarca FROM equiva e LEFT JOIN articulous a ON (a.id_art = e.codigo1 OR a.id_art = e.codigo2) LEFT JOIN marcas m ON m.id_marca = a.marca WHERE ((e.codigo1 LIKE %$artic%) OR (e.codigo2 LIKE %$artic%)) Again, it's untested, but I think I covered your criteria.
  3. Good point, Ch0cu3r. It's not going to magically make the links pretty, but it will interpret pretty urls in the same way as the traditional links. Now, you'll probably have to employ a routing system as well.
  4. Is mod_rewrite is enabled on your server?
  5. I haven't read the entirety of this article yet, but it should get you pointed in the right direction.
  6. I would check out Selenium automated testing - I believe it reports on load and render time. Don't quote me on that, but I believe it does.
  7. Why are you using json at all? You encode the query results, immediately decode the results, then decode the results again when you print. If you just get the result set, what does that look like?
  8. Your ipn.php code is connecting and selecting the DB using mysql_, but using mysqli_ for the interaction. Change the connection and selection calls.
  9. get_stylesheet_uri() doesn't take parameters. You'll need to do get_stylesheet_uri().'/../css/style.css';
  10. If you're wanting to play with color schemes, try out Adobe Color CC.
  11. http://php.net/ChangeLog-5.php#5.6.0 Also this: http://us1.php.net/migration56
  12. OK - Looks the the SECURE constant is undefined. What's the purpose of it - I don't see where you've used it anywhere else in the code.
  13. You stated this in reply #7: Then the next age thatdisplays calls the login_check function which is shown below and at the point the session variables have no values. I'm assuming a bit of a typo on 'the next age thatdisplays' that was meant to read 'the next page that displays'. If you're redirecting, are you restarting the session on the target page with session_start()? If not, usually php will throw an error, but if your error reporting is off you'll never know that. Insert the lines jazzman1 suggests on the page to which you redirect and see if it give you an error about undefined variable $_SESSION. If so, start the session again and let us know what happens.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.