probably simple, why this error: parse error, unexpected $
Posted: Tue Jun 21, 2005 11:33 pm
Code: Select all
<?php
$query = 'SELECT title, year FROM movies';
$findQ = 'SELECT * FROM movies WHERE title = ';
$newQ = $findQ + $name;
$link = mysql_connect('mysql.mogacode.com', 'mogac001', 'blabla2004') or die('Could not connect: ' . mysql_error());
echo "Connected to DB';
mysql_select_db('mogac001') or die('Can't connect to DB' . mysql.error());
$result = mysql_query($query) or die('Could not connect: ' . mysql_error());
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo 'Something work damit'; }
?>More specifically the error is: Parse error: parse error, unexpected $ in /xxxxxx/auth.php on line 18
All help is apprecieated, trying to learn PHP.
Boris Rozman
d11wtq |
Code: Select all
tags [/color]