Raised This Month: $ Target: $400
 0% 

sql-problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-05-2007 , 10:05   Re: sql-problem
Reply With Quote #1

PHP Code:
new nick[64];
SQL_ReadResult(Query,SQL_FieldToNum(Query,"nick"),nick,63); 
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
lagbeast
Junior Member
Join Date: Jul 2007
Old 07-05-2007 , 13:16   Re: sql-problem
Reply With Quote #2

Quote:
Originally Posted by YamiKaitou View Post
PHP Code:
new nick[64];
SQL_ReadResult(Query,SQL_FieldToNum(Query,"nick"),nick,63); 
IT doesnt work. I just keep getting int-values from the db, when the values in the db are STR. What im looking for is this.

PHP Code:
$array mysql_query("SELECT * FROM login");
while(
$row mysql_fetch_array($array)) 
{
  echo  
$row[nick];

This is how it would have looked in php.
lagbeast is offline
lagbeast
Junior Member
Join Date: Jul 2007
Old 07-05-2007 , 15:48   Re: sql-problem
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
PHP Code:
new nick[64];
SQL_ReadResult(Query,SQL_FieldToNum(Query,"nick"),nick,63); 
Yeah i saw the typo and tried it, cuz i figured but i still get the same error. The field nick contains nicks and is a varchar 255, so it does contain strings but i still get INT-values. Im getting pissed.... and sad.
lagbeast is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode