site search and databases
Hi huys. I'm just wondering. At the moment my company has its own servers to host our site. We are now considering moving it. I'm most probably going to get it hosted here because I've heared good things about the service and reliability...Anyhow my main issues are whether the code I use for connecting to databases will work the same as it does now. I just use the standard code like this
$database = "db1";
mysql_connect();
@mysql_select_db($database) or die("Unable to select database");
$query="SELECT * FROM dbtable5 WHERE code = $code";
$result = mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
$name = mysql_result($result, $i, "name");
$entered = mysql_result($result, $i, "entered");
would this work ok? No reason why it shouldn't unless I need to enter server names and passwords...
My only other issue is that I use php dig for our site search feature...I'm wondering if there is a similar in built search programme I can use to replace it as I would not have it installed anymore? Thats if I get the standard shared hosting anyway (because I'm aware that with vps or dedicated server I could get anything installed)
|