What's wrong with my php code?

Jonathan

New member
i am trying to retrieve data from link account.php?id=15

so on the account.php i have on top
<?php

include('http://www.xxxx.com/xxxx/connect.inc');

$id = $_GET['id'];

SELECT * FROM account where id = $id;

$initial=$_GET['initial'];
$name=$_GET['name'];

?>

the connect.inc file have me connected to the database already
account is my table.. so what's wrong with my code??
can you write the actual code.. i have no idea how to do it
 
Back
Top