Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Syntax Problem?
- Bob Sanderson
January 3, 2006, 7:36 pm
rate this thread
work. I seem to be missing something fundemental. The code below works fine
and returns an HTML page with the desired output. However, it I remove the
"#" from the two lines which are commented out, I get a blank page as an
output. Can anyone see anything I'm doing wrong?
Any help will be greatly appreciated.
$link = mysql_connect("localhost","root","foobar");
die("Could not connect to MySQL");
print("Connected to MySQL server<P>");
$database = "centroid";
or die ("could not open $database: ".mysql_error() );
print "Opened database \"$database\"<P>";
$query="select * from jobs where JobNumber like 5178";
# echo "<p>The Job Number is "$results"</p>";
print "Everything works";
- » confused about certifications - site says nothing about 5.0 certificaiton but there's a bo...
- — Previous thread in » MySQL Database Forum
- » Americanas.com SALDO de TVs Com at 80% de Desconto (29798)
- — Newest thread in » MySQL Database Forum