|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
mysql error message
Ok here's the following script:
<? $connection = @mysql_connect($db_server,$db_user,$db_password) or die ("Can't connect to Database"); @mysql_select_db($db_database,$connection) or die ("Can't connect to Database"); $alias="dega"; $result = mysql_query("select * from emulator_data where emulator_alias='$alias'"); while ($row = mysql_fetch_array($result)) { $id = $row["id"]; $emulator_name = $row["emulator_name"]; $emulator_alias = $row["emulator_alias"]; $os_platform = $row["os_platform"]; $version = $row["version"]; $release_date = $row["release_date"]; $size = $row["size"]; $whatsnew = $row["whatsnew"]; $download_link = $row["download_link"]; $download_times = $row["download_times"]; $homepage = $row["homepage"]; $bordercolor = "#000000"; $headercolor = "#A1CDDF"; $bgcolor = "#FFFFFF"; $font = "Verdana, Arial"; echo "some crap"; } mysql_close($connection); ?> All's wel but mysql_close doesn't recognize $connection as an previous made connection. Whats up with that? |
|
#2
|
|||
|
|||
|
Try to call mysql_query with $connection as argument....
(why you need $connection, if you don't use it ) |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > mysql error message |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|