Hvorfor kan jeg ikke selec en tabel.
se på www.tcwc.dkmin kode
<start kode>
<?php
Require ($_SERVER["DOCUMENT_ROOT"]."/system/db_ind.inc");
$MenuSystemlink = mysql_connect($mysql_db_host,$mysql_db_username,$mysql_db_pass);
if (!$MenuSystemlink) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully to mySQL.';
// make MenuSystem the current db for the connection MenuSystemLink
$MenuSystemlink_db_selected = mysql_select_db('MenuSystem',$MenuSystemlink);
if (!$MenuSystemlink_db_selected) {
die ('Could not connect to db: ' . mysql_error());
}
echo 'DB: Connected successfully.';
?>
<slut kode>
Min connection går glad igemmen.
Min selection stå fejl. hvorfor?
//dl
PS. Hvordan laver jeg et linieskift i min ECHO
PSS. Alt koden kommer fra php.net.
