hi..
pls help me...
im just new in php and i wish i could learn more.. i needed it for one day or two..hope u can reconsider my questions to you.. pls do help me..
i want my row array will be a column.....
pls see me first my codes:
[code=php]
<?php
include 'dbConnect.php' ;
mysql_select_db ("ranking",$con );
$form1academicb achelor=array() ;
$form1bachelors chool=array();
$form1bachelors choolyear=array ();
$form1academicM asteral=array() ;
$form1academicb achelor=$_POST['bacheloracadfo rm1'];
$form1bachelors chool=$_POST['bachschoolname form1'];
$form1bachelors choolyear=$_POS T['bachyeargradua tedform1'];
$form1academicM asteral=$_POST['masteralacadem icsform1'];
$form1academicb achelor=implode (',',$form1acad emicbachelor);
$form1bachelors chool=implode(' ,',$form1bachel orschool);
$form1bachelors choolyear=implo de(',',form1bac helorschoolyear );
$form1academicM asteral=implode (',',$form1acad emicMasteral);
echo "<table border=1 cellspacing=0 width = 700>
<tr bgcolor=dddddd>
<td align=center> <font color=8B0000 size=2><b> Bachelor Degree </b> </font></td>
<td align=center> <font color=8B0000 size=2><b> School Name </b> </font></td>
<td align=center> <font color=8B0000 size=2><b> School Year </b> </font></td>
</td>
";
echo' <tr>
<td align=center> '.$form1academi cbachelor.' </td>
<td align=center> '.$form1bachelo rschool.' </td>
<td align=center> '.$form1bachelo rschoolyear.' </td>
<td align=center>
<span class="style2"> <font size=2>
</font></span>
</td>
</tr>';
echo "</table>";
?>
[/code]
ouput:
i want my output that will be like this
pls give me some suggestions in here on how to get like that format..
I really want that the arraybachelorva riable() will be a column and not a row...
and so on with the other.....
hoping for your help and thank you so much in advance..
pls help me...
im just new in php and i wish i could learn more.. i needed it for one day or two..hope u can reconsider my questions to you.. pls do help me..
i want my row array will be a column.....
pls see me first my codes:
Code:
DATAbase: form1academicbachelor varchar(20) not null, form1bachelorschool varchar(20), form1bachelorschoolyear varchar(20), form1academicMasteral varchar(20) not null, form1masteralschool varchar(20), form1masteralschoolyear varchar(20),
<?php
include 'dbConnect.php' ;
mysql_select_db ("ranking",$con );
$form1academicb achelor=array() ;
$form1bachelors chool=array();
$form1bachelors choolyear=array ();
$form1academicM asteral=array() ;
$form1academicb achelor=$_POST['bacheloracadfo rm1'];
$form1bachelors chool=$_POST['bachschoolname form1'];
$form1bachelors choolyear=$_POS T['bachyeargradua tedform1'];
$form1academicM asteral=$_POST['masteralacadem icsform1'];
$form1academicb achelor=implode (',',$form1acad emicbachelor);
$form1bachelors chool=implode(' ,',$form1bachel orschool);
$form1bachelors choolyear=implo de(',',form1bac helorschoolyear );
$form1academicM asteral=implode (',',$form1acad emicMasteral);
echo "<table border=1 cellspacing=0 width = 700>
<tr bgcolor=dddddd>
<td align=center> <font color=8B0000 size=2><b> Bachelor Degree </b> </font></td>
<td align=center> <font color=8B0000 size=2><b> School Name </b> </font></td>
<td align=center> <font color=8B0000 size=2><b> School Year </b> </font></td>
</td>
";
echo' <tr>
<td align=center> '.$form1academi cbachelor.' </td>
<td align=center> '.$form1bachelo rschool.' </td>
<td align=center> '.$form1bachelo rschoolyear.' </td>
<td align=center>
<span class="style2"> <font size=2>
</font></span>
</td>
</tr>';
echo "</table>";
?>
[/code]
ouput:
Code:
=============================================== BACHELOR DEGREE | SCHOOL NAME | SCHOOL YEAR =============================================== BSIT,BSM,BEED | sc1,sc2,sc3 | yy1,yy2,yy3
Code:
============================================== BACHELOR DEGREE | SCHOOL NAME | SCHOOL YEAR ============================================== BSIT | sc1 | yy1 BSM | sc2 | yy2 BEED | sc3 | yy3 ============================================== MASTERAL DEGREE | SCHOOL NAME | SCHOOL YEAR ============================================== xxxx1 | kk1 | ppp1 xxx2 | kk2 | pp2
I really want that the arraybachelorva riable() will be a column and not a row...
and so on with the other.....
hoping for your help and thank you so much in advance..
Comment