[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: ?> $cxn = mysqli_connect($host, $user,$passwd, $database) or die ("Can't Connect."); $sql = "SELECT * FROM page WHERE id=$page"; $result = mysqli_query($cxn, $sql); $row = mysqli_fetch_assoc($result)

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, rath

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

2008-09-02 Thread Micah Gersten
In the HTML, you either need to use or, if you have short tags on, , not . 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 my program: > > session_start(); > in