If it's on-rev, it should be your user name, a period and the server. as in myloninname.on-rev.com. Your database name is myloginname_databasename. You user is myloginname_username.
So if my login name was slydawg, and my database was dogsofwar, and my user name was baddawg, it would be slydawg.on-rev.com, slydawg_dogsofwar, slydawg_baddawg. Is that confusing enough? Bob On Mar 14, 2011, at 7:54 PM, John Patten wrote: > Hi All... > > I have a very basic mysql/php tutorial I'm attempting to make work on on-rev. > > The php/mysql tutorial is available here: > http://www.freewebmasterhelp.com/tutorials/phpmysql/1 > > My question is related to the insert.php code. It shows: > > mysql_connect(localhost, $username, $password); > > in line 4 of the insert.php file. However, I only get warnings such as: > > Warning: include(dbinfo.inc.php) [function.include]: failed to open stream: > No such file or directory in /home/..../insert.php on line 2 > > What should the server host name be for the mysql database, localhost or > something else? > > I'd also be open to another mysql/php example if anybody has one handy... > > Thank you! > > John Patten > SUSD > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode