ommedia
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by ommedia
-
-
without using a form, button, or anything to click, how do I send a user to another page.
in coldfusion I would simply say <cflocation url = "whatever.cfm">
for the life of me, I can't find a similar tag in PHP. generally, all my form results post to itself, but in this case I want to take the user to another page after processing, given a specific scenario.
-
I have PHP installed on IIS on an XP local server. The MS SQL server is on another box, and is connectable from other applications including .NET.
I can't seem to get my connection to work:
CODE:
$cur_server = 'DNS_SERV_NAME';
$cur_user = 'sa';
$cur_pw = '';
$connection = mssql_connect($cur_server, $cur_user, $cur_pw)
or die("Could not connect: ");
$dbname = 'db_name';
$db = mssql_select_db($dbname , $connection)
or die("Invalid Select: ");
$result = mssql_query("SELECT Description FROM Powers WHERE Valid_Flag = 'Y' ORDER BY Description",$connection)
or die("Invalid query: ");
ERROR:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: DNS_SERV_NAME in......
Q1: Any suggestions / references ?
Q2: Additionally, with MySQL I've used . mysql_error() in my die(). Is there an equivelant or alternative error specifics function that can be used with mssql functions?
Thanks,
Tim
how do I direct a user to a new page after a process is finished
in PHP Coding Help
Posted
this is what I am using now, but this seems like a cheap way of doing it:
So I tried it and it didn't like the header tag at all that deep in the code. Other ideas??
<?php
.
.
.
if ($testfail){
echo("<script>window.location.href = 'secondary_application.php'; </script>");
}
?>