Hello
I need to convert database attributes into Records using PHP. For example
My database attributes are like :
[Name varchar(25), Roll integer, Number integer, Percentage real]
C like structure:
[code=c]struct Info
{
char Name[25];
int Roll;
int Number;
float Percentage;
}
Struct info Information[100];[/code]
I need to put each row data from database to the structure array.
Question:
1. Is it possible to code it in PHP ?
2. If possible please can u help me... how?
Advance Thanks
I need to convert database attributes into Records using PHP. For example
My database attributes are like :
[Name varchar(25), Roll integer, Number integer, Percentage real]
C like structure:
[code=c]struct Info
{
char Name[25];
int Roll;
int Number;
float Percentage;
}
Struct info Information[100];[/code]
I need to put each row data from database to the structure array.
Question:
1. Is it possible to code it in PHP ?
2. If possible please can u help me... how?
Advance Thanks
Comment