Unstoppable Domains

What is wrong with this?

Spacemail by SpaceshipSpacemail by Spaceship
Watch

GFX^^

VIP Member
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.
Unstoppable DomainsUnstoppable Domains
$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
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back