raider00321 Posted February 9, 2008 Share Posted February 9, 2008 hey there, I just recently created a code which automatically generates and updates a sql database. It worked fine on my test computer, but when uploaded to my webhost I beleive the problem is that the webhost is php 4, whereas i run php 5 on my computer. Does anyone know how i can get this code to work on the webhost? The code is Line number On/Off | Expand/Contract while($row = mysql_fetch_array($result)){ $variable=mysql_fetch_array(mysql_query("SELECT woodincome FROM buildings WHERE name='$row[name]'"))or die(mysql_error()); mysql_query("UPDATE table SET info=info+('$infoinc[infoincome]'*$row[infoname])")or die(mysql_error()); Does anyone know howi can make this run on PHP4? Or is it not working for another reason.Like i said, it works on my home test server, but not my webhost. Thanks for any help given Quote Link to comment https://forums.phpfreaks.com/topic/90193-phpsql-update-problem/ Share on other sites More sharing options...
BlueSkyIS Posted February 9, 2008 Share Posted February 9, 2008 what errors are displayed? i don't see anything php5-specific. Quote Link to comment https://forums.phpfreaks.com/topic/90193-phpsql-update-problem/#findComment-462548 Share on other sites More sharing options...
raider00321 Posted February 10, 2008 Author Share Posted February 10, 2008 absolutely nothing. Nothing is displayed at all... Quote Link to comment https://forums.phpfreaks.com/topic/90193-phpsql-update-problem/#findComment-462985 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.