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)
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
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