I'm sorry, I might Have given the wrong link to the website.
Here's the link.
Here's the code that was generated by MyAccess when generating the db connection string.
This is asp code:
<%
xDb_Conn_Str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("northdb.mdb") & ";"
%>
Here's the php code:
<?
$xDb_Conn_Str="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=".$DOCUMENT_ROOT."northdb.mdb".";";
?>
Also, when you goto:
http://northerndarts.net/north-php/login.php you get the following error:
Parse error: parse error, unexpected T_VARIABLE in /home/wwwnort/public_html/north-php/login.php on line 75
Her is part of the code that you asked for lines 66 -77
<!--#include file="db.php"-->
<?
$validpwd=true;
if ($HTTP_POST_VARS["submit"]!="")
{
// setup variables
$userid=$HTTP_POST_VARS["userid"];
$passwd=$HTTP_POST_VARS["passwd"];
// $conn is of type "ADODB.Connection"
$a2p_connstr=$odbc_connect
$a2p_uid=strstr($a2p_connstr,'uid');
$a2p_uid=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
$a2p_pwd=strstr($a2p_connstr,'pwd');
$a2p_pwd=substr($d,strpos($d,'=')+1,strpos($d,';')-strpos($d,'=')-1);
$conn=mysql_connect("localhost",$a2p_uid,$a2p_pwd);
mysql_select_db("",$conn);
$rs_query=mysql_query(("Select * from [tblUser] where [LogonName] = '".strtoupper($userid)."'"),$conn);
$rs=mysql_fetch_array($rs_query);
if (!($rs==0))
{
I hope that this helps give a better understanding.
I want the program to look and work like the below url:
http://www.leaguerepublic.com/darts.jsp
If anyone could help program this I would greatly appreciate it.
Thank You
Tim Caron