Hi
Have some problems with this code. I get
Parse error: syntax error, unexpected ‘}’, expecting ‘,’ or ‘;’ in C:\Program Files (x86)\xampp\htdocs\test\111.php on line 29 Whats wrong with this code
[php]
mysql_connect(‘localhost’,‘root’,’’)
or die(‘cant connect to server’);
mysql_select_db(‘ulv’)
or die(‘cant connect to dabase.’);
$sql= “select * from deadlines” ;
$resultat=mysql_query($sql);
$antall=mysql_num_rows($resultat);
for ($i=0; $i <$antall; $i++){
$rad=mysql_fetch_row($resultat);
echo ‘
echo $rad[0];
echo ‘
echo $rad[1];
echo ‘
echo $rad[2];
echo ‘
echo $rad[4];
echo ‘
echo $rad[5];
echo ‘
echo $rad[6];
echo ‘
[/php]
Inforation | name | detail | date | time |