Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Scott123

  • Rank
  1. Scott123

    mysql to mysqli

    I found some coding errors and got a var_dump after the mysqli constructer.object(mysqli)#1 (0) { } Now I can got some place to start thankyou you justsomeguy.
  2. Scott123

    mysql to mysqli

    Thankyou for your reply.I use error_reporting(E_ALL | E_STRICT ).Yes mysqli is installed.I've placed code for a different mysqli database in the line before the require_once in index.php, It works!But placing it in the first line of the required file(Access_Granted.php) fails.I've used Mindleaders content management tutorial to build a working mysql site.I've switched all the php code to mysqli then discover this problem.I get nothing from var_dump either. Could that have something to do with being built with mysql not mysqli,or because you can't create an object with require_once, calling an
  3. Scott123


    navigating the the tree DOM is slower I think. Simple XML is much easer to write and faster.If you have'nt, you should look into libxml2 for more insight.
  4. Scott123

    mysql to mysqli

    change mysql to mysqli. mysql works fine. mysqli wont even start.in webserver/www/site/cms/index.php.// Connect to database, start session.require_once('../Access_Granted.php'); in webserver/www/site/Access_Granted.php. // Connect to database.require_once('../mysqli_connect.php'); in webserver/mysqli_connect.php.DEFINE ('DB_USER', 'peter'); DEFINE ('DB_PASSWORD', 'abc123'); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'content'); $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) or die('Could not create mysqli object'.mysqli->error());returns nothing to index.php, not even
  5. stymie: http://www.sitepoint.com/article/build-a-phpbb-forumhope it's usefull.real_illusions: like 24 lemans cause after 3/4 ofa centur...
  6. xampp looks ssssswwweeeeetttttt.took me days to bring some of this together.Smiles since you need a server on youre computer use either IIS or Apache. If want to play or use with databases Apache it.This xampp uses the lasted releases(looks like). That is hard to make compatable. would have choose that route had I known.have fun.
  7. Scott123

    Select query

    googled this up with youre query.SELECT COUNT(*) FROM(SELECT * FROM (select name,count(date) from emp group by date having count(date)>3) AS MYTBL);http://forums.mysql.com/read.php?10,135619,135622
  8. No I'm afraid that code does not work either. Seems like I'm notready to find the right question to explore. I hope an uprade to vistaor Zends study guide will solve this. thankyou very much for the replies.
  9. Thankyou justsomeguy and george for the reply.At the top of my post I have an example that uses a cookie to count.It does count, but the sessions do not?I even changed php and apache to a folder to check(details in first post).And session cookies are created, but maybe not recalled.????????????????????????????????????????????????????????????????????
  10. <?phpsession_start();if(isset($_SESSION['views']))$_SESSION['views']= $_SESSION['views']+1;else$_SESSION['views']=1;echo "Views =". $_SESSION['views'];?>Didn't comment out "$_SESSION['views']=1;" on example. oops!This does not count.None of the session examples I find maintain a count. w3chools, Zend ect...Unless I'm really lost. The session_id() below should maintain state and not change on refresh?<?phpsession_start();print "My session ID is: " . session_id();?>
  11. padding: 0.5 em;and padding: 5.0 em;
  12. This fails also. output of 2 only:<?php session_start(); $_SESSION['views']=1; if(isset($_SESSION['views'])) $_SESSION['views']= $_SESSION['views']+1; else $_SESSION['views']=1; echo "Views =". $_SESSION['views'];?>its w3schools example.
  13. This should help:http://www.gidforums.com/t-809.htmlGoodluck!
  14. hope this helps:http://www.w3schools.com/js/js_animation.asphttp://www.w3schools.com/js/js_timing.aspgoddluck!
  15. Scott123

    Select query

    This is exactly what you need:http://dev.mysql.com/doc/refman/5.0/en/counting-rows.htmlI hope, goodluck!
  • Create New...