[PHP-DB] Im new to this but...

2008-09-02 Thread Chris Hale
I have: Apache 2.0.59 MySQL 5.0.41 PHP 4.4.7 5.2.5 and this is my program: ?php session_start(); include(includes/functions_main.php); include(Vars.php); ? ?php get_header(); ? ?php get_sidebar(); ? ?php $page = '$_GET[page]'; $cxn = mysqli_connect($host, $user,$passwd, $database) or

Re: [PHP-DB] Im new to this but...

2008-09-02 Thread Joseph Crawford
You did everything perfectly in the email except for show what the error message was. i am assuming your issue is with the line $page = '$_GET[page]'; that should just be $page = $_GET['page']; The way you are doing it (inside single quotes) does not evaluate the array as a variable,

Re: [PHP-DB] Im new to this but...

2008-09-02 Thread Micah Gersten
In the HTML, you either need to use ?php echo $title; ? or, if you have short tags on, ?= $title ?, not ?php $title ?. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Chris Hale wrote: I have: Apache 2.0.59 MySQL 5.0.41 PHP 4.4.7 5.2.5 and this is