Unstoppable Domains โ€” AI Assistant

What is wrong with this?

SpaceshipSpaceship
Watch
Impact
41
<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="test_url"; // Table name

// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

$sql="SELECT * FROM table LIMIT 10"
$result=mysql_query($sql); <<<<<--- it puts me the error is here!!!

mysql_close();
?>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
$sql="SELECT * FROM table LIMIT 10"

you forgot the semi-colon after this statement.
 
0
•••
obenix said:
$sql="SELECT * FROM table LIMIT 10"

you forgot the semi-colon after this statement.

Yep. True. And please remember that.
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back