# PHP/mySQL not working?

**URL:** <https://forum.kirupa.com/t/php-mysql-not-working/122627>\
**Category:** Uncategorized\
**Created:** [September 15, 2004, 2:02pm UTC](https://forum.kirupa.com/t/php-mysql-not-working/122627 "2004-09-15T14:02:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![red\_A](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@red\_A](https://forum.kirupa.com/u/red_A)\
**Post date:** [September 15, 2004, 2:02pm UTC](https://forum.kirupa.com/t/php-mysql-not-working/122627/1 "2004-09-15T14:02:17Z")

</div>

Here the PHP:  
\<?php  
$db = mysql\_connect(“name”,“user”,“pass”);  
mysql\_select\_db(“links” ,$db);  
$sql = mysql\_query(“SELECT \* FROM links” ,$db);  
echo ("\<table border =‘1’\>");  
echo ("\<tr\>\<td\>url\</td\>\<td\>description\</td\>\</tr\>");  
echo("\<tr\>\<td\>\<a href=’$tablerows[1]’\>$tablerows[1]\</a\>\</td\>\<td\>$tablerows[2]\</td\>\</tr\> ");  
echo “\</table\>”;  
mysql\_close($db);  
?\>

and i have a “links” table with 3 fields named id, url, and description…

and when i upload it to the server all i get is a two column table with “url” and “description” … the links that i created in the url field, their descriptions do not seem to appear???

What could be the problem…
