|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
MySQL and PHP trouble
This is the code I am having an issue with.. For some reason it wont connect to the databases properly. The link in bold is what the troubled code is...
[code]<? include('config.php'); $sql = "SELECT * FROM tb_site WHERE id='1'"; $result = mysql_query($sql); $row = mysql_fetch_array($result); echo $row["sitename"]; mysql_close($con); ?> [code] |
|
#2
|
|||
|
|||
|
Try this:
Code:
$result = mysql_query($sql) or die(mysql_error()); and maybe you will find the problem |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > MySQL and PHP trouble |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|