
Scott123
Members-
Content Count
23 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Scott123
-
Rank
Newbie
-
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.
-
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
-
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
-
stymie: http://www.sitepoint.com/article/build-a-phpbb-forumhope it's usefull.real_illusions: like 24 lemans cause after 3/4 ofa centur...
-
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.
-
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
-
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.
-
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.????????????????????????????????????????????????????????????????????
-
<?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();?>
-
padding: 0.5 em;and padding: 5.0 em;
-
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.
-
This should help:http://www.gidforums.com/t-809.htmlGoodluck!
-
hope this helps:http://www.w3schools.com/js/js_animation.asphttp://www.w3schools.com/js/js_timing.aspgoddluck!
-
This is exactly what you need:http://dev.mysql.com/doc/refman/5.0/en/counting-rows.htmlI hope, goodluck!