Jump to content
xisto Community
bx93

Steps in using the database at astahost.com

Recommended Posts

I'm building my website now and I'm anxious to know how to use the mysql.I have the development experience with Oracle and C++. But is new to mysql and html or asp.Would the experts here state the steps how to use the mysql here? Thanks in advance.

Share this post


Link to post
Share on other sites

Thanks everyone,I'm in the process to achieve the success. Now, I could store some message to the mysql database. Maybe my experience will provide some slight help to the new comer such as myself, so I write it here:First of all, login on your cpanel provided by Xisto, and use sitemanagement tools to create your mysql databases, users and grant the users with correct (I used MysqlDatabase and phpMyAdmin). With the phpMyAdmin we may also create the certain tables.To keep safe of the database, table and password, I use php file to operate the data. Besides the command Xisto has provided, I use msql_query("sql query") to send sql querys to mysql, use mysql_close to close the connection created by mysql_connect. My php file is like this,<?$dbh=mysql_connect ("localhost", "<User>", "<password for the user>") or die ('I cannot connect to the database because: ' . mysql_error());mysql_select_db ("<database instance>"); $query="<sql query>;"; $result=mysql_query($query); $close = mysql_close($dbh) or die ("Unable to close database server connect!"); ?>If there is any suggestion, please approve it as needed. However, I still don't know how to return from my php file to its caller, could anyone here help me with it.

Share this post


Link to post
Share on other sites

However, I still don't know how to return from my php file to its caller, could anyone here help me with it.

<{POST_SNAPBACK}>


HTTP is a stateless protocol

All the communication goin on is stateless so you cannot go back to the caller

Use some feature of php to get back to it. or may bee Cookies will help [i dont know php that much but i know it supports Cookies]

adios

Share this post


Link to post
Share on other sites

HTTP is a stateless protocol

All the communication goin on is stateless so you cannot go back to the caller

<{POST_SNAPBACK}>


Thanks. So the go(-1) is only turn back to the webpage registered by the browers, right?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.