undefined function getsqlvaluestring()
Hey Guys, I'm new to the forum and it seems very helpful. I think I have a unique problem though.
Although this script has been working for a year or two, all of a sudden, over the holidays, it went hay
Front end is still getting all the information it should from the Database.But when I try to login through the admin side that I created with the normal dreamweaver php and database extensions I get this error.
I dont know a lot of php - so I'll hide the string for now - If I need to paste the code I will - thank you in advance
Fatal error: Call to undefined function getsqlvaluestring() in /xxxxx/xxxx/xxxxxxx/xxxxxxx/newsletters/xxxxxxx/xxxxxxx/admin/login.ph pon line 22
Area around line 22 looks like this
mysql_select_db($database_promocenter, $promocenter);
$LoginRS__query=sprintf("SELECT username, password, destination_page FROM users WHERE username=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "int"));
$LoginRS = mysql_query($LoginRS__query, $promocenter) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
Forms first part looks like this
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>"> | |
<tr> | |
<td bgcolor="#dedede"> | |
<table width="400" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#ffffff"> | |
<tr> | |
<td height="35" align="right" valign="middle" id="description">Username: </td> | |
<td height="35"><label> | |
<input style="height:20px; border:1px solid #999999" name="username" type="text" id="username" size="35"/> | |
</label></td> | |
</tr> | |
<tr> | |
<td height="35" align="right" valign="middle" id="description">Password: </td> | |
<td height="35"><label> | |
<input style="height:20px; border:1px solid #999999" name="password" type="password" id="password" size="35" /> | |
</label></td> | |
</tr> |
Anton