Jump to content

can anyone help me i dont see my error

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
mmo-dev

mmo-dev

    Learning Programmer

  • Members
  • PipPipPip
  • 87 posts
 $result1 = mssql_query("SELECT convert(varchar, id)
  FROM tbl_rfaccount WHERE password = convert(binary, 'blach')");

while($temp = mssql_fetch_row($result1)){
    $hold = (string) $temp[0];
    echo "SELECT serial FROM tbl_UserAccount WHERE id = convert(binary, '$hold')";
    $query1 = mssql_query("SELECT serial FROM tbl_UserAccount WHERE id = convert(binary, '$hold')");

with error:
 Warning: mssql_query() [function.mssql-query]: message: Unclosed quotation mark after the character string 


#2
semprance

semprance

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
Are there any quote or double-quote characters in the $hold string?

#3
mmo-dev

mmo-dev

    Learning Programmer

  • Members
  • PipPipPip
  • 87 posts
nope the user name that $hold is inputting is A1T1 and A1T1 works when its directly inputted so its something else with $hold

#4
mmo-dev

mmo-dev

    Learning Programmer

  • Members
  • PipPipPip
  • 87 posts
ok problem is fixed :)