User Profile

Collapse

Profile Sidebar

Collapse
apssiva
apssiva
Last Activity: Mar 2 '12, 04:24 AM
Joined: Feb 28 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • apssiva
    started a topic How do align center "ui-icon-check" CSS?

    How do align center "ui-icon-check" CSS?

    I want to center the ui-icon-check.

    I tried, but it not display center.
    Code:
    if($rs['status'] == 'present'){
    
    							$tbl .= '<td style="text-align:center;"><a href="/modules/attendance/change_attendance.php?c='.getNameOfStudent($id).'&class='.$class.'" title="present" target="_blank"><span class="ui-icon ui-icon-check"></span></a>&nbsp;</td>';
    ...
    See more | Go to post

  • apssiva
    started a topic How do reload the page using jQuery?

    How do reload the page using jQuery?

    Hello All,

    1. First i select the class name in combo box -> using jQuery reload the page.
    2. after reload the page, Student name was display in random. so i add two radio button.
    1. Ascending order
    2. Descending order

    if i click the Ascending order radio button, the page will reload and display the student name in ascending order and combo box display the previous selected class...
    See more | Go to post

  • apssiva
    replied to how to use PHP to write the PDF?
    in PHP
    Hi,

    Thank you for your help. I tried my self, its display in pdf successfully. But it doesn't display ite1 value in the pdf. Could you please, correct my mistake?

    Code:
    <?php
    set_include_path($_SERVER['DOCUMENT_ROOT'] .'/mpdf/'); 
    
    require('mpdf.php');
    
    $n = 0;
    $mpdf=new mPDF();
    
    	require_once('../../includes/common.php');
     	$result = mysql_query("SELECT *
    ...
    See more | Go to post

    Leave a comment:


  • apssiva
    started a topic how to use PHP to write the PDF?
    in PHP

    how to use PHP to write the PDF?

    Hi

    If I use the regular PHP:

    Code:
    while($row = mysql_fetch_array($result))
    {
    $html = '<table><tr><td>';
    echo $row['title'];
    $html .= '</td></tr></table>';
    
    $mpdf->WriteHTML($html);
    $mpdf->AddPage();
    }
    $mpdf->Output('SGC.pdf','D');
    It freaks out at me and the PDF won't write at all.

    ...
    See more | Go to post

  • Is there any another way to display the output into pdf? For me no need to display the output in web page, I want to display the output into pdf file.
    See more | Go to post

    Leave a comment:


  • apssiva
    started a topic How to convert a php output putting into a pdf?
    in PHP

    How to convert a php output putting into a pdf?

    Hi,

    I want to convert the php output into a pdf. In that pdf, I want to display the output into 6 pages(split).
    See more | Go to post

  • apssiva
    replied to How to create Multidimensional Arrays?
    in PHP
    Hi,

    I retrieve data in the DB. I create a array and make it serialize. Below code was retrieve data each line in one array. but i want all lines in one array or array of array.

    for ex:
    array(array(cou rse,grade,unit) ,array(course,g rade,unit),.... ...)

    if get in array use count()-> retrieve the data easy.

    Code:
    while($rows = mysql_fetch_array($res))
              {
    ...
    See more | Go to post

    Leave a comment:


  • apssiva
    started a topic How to create Multidimensional Arrays?
    in PHP

    How to create Multidimensional Arrays?

    hi

    i got all data in single array. How i can store the data in multidimensiona l array?

    below my code:
    Code:
    	require_once('../../includes/common.php');
    	
    		$m = array();
    	$result = mysql_query("SELECT * from sgc where year = '2008'") or die(mysql_error());
    
    	while($row = mysql_fetch_array($result))
      	  {
    		 // echo $row['nric']."<br>";
    ...
    See more | Go to post

  • apssiva
    replied to how to serialize() and unserialize()?
    in PHP
    sorry i don't know. can you give some idea? pls....
    See more | Go to post

    Leave a comment:


  • apssiva
    replied to how to serialize() and unserialize()?
    in PHP
    Hi,

    I am tiring to unserialize() the data, but i got below output only one line
    Code:
    "Communication Skills","S","2"
    in this unserialize() --- still have some data, its not display. pls check my previous post "serialize( )" output.

    kindly help me. below my code

    Code:
    	require_once('../../includes/common.php');
    	$data = array();
    	$r=1;
    ...
    See more | Go to post

    Leave a comment:


  • apssiva
    started a topic how to serialize() and unserialize()?
    in PHP

    how to serialize() and unserialize()?

    Hi,

    Kindly help, where i did the mistake?

    serialize() code:
    Code:
    	require_once('../../includes/common.php');
    	
    		$m = array();
    	$result = mysql_query("SELECT * from sgc where year = '2008'") or die(mysql_error());
    
    	while($row = mysql_fetch_array($result))
      	  {
    		  //echo $row['nric'];
    		  $res =mysql_query("select COURSE_TITLE_LONG, CRSE_GRADE_OFF,
    ...
    See more | Go to post

  • How to insert multiple rows data into database using php?

    Hi,

    how?

    Code:
    id,username,subject
    1,AAAA, EnglishI
    1,AAAA, MathsI
    1,AAAA, MathsII
    1,AAAA, EnglishII
    1,AAAA, Science
    2,BBBB, ScienceI
    2,BBBB, ScienceII
    2,BBBB, EnglishI
    2,BBBB, Communication
    i want to insert above data into below studentdata table
    Code:
    username,course
    AAAA, (EnglishI, MathsI,......)
    BBBB, (ScienceI, ScienceII,.....)
    See more | Go to post

  • All data are in excel sheet. the table is empty now. i will insert this excel data in to the table. pls any one help.........
    See more | Go to post

    Leave a comment:


  • apssiva
    replied to how to split the string?
    in PHP
    The value was mixed('5097'), so i want to split the year "09" as a number. can u help me?
    See more | Go to post

    Leave a comment:


  • thanks,

    but i have one doubt, one user have multiple "COURSE_TIT LE" how i can insert? pls check my above output...
    See more | Go to post

    Leave a comment:


  • apssiva
    started a topic How to import excel data into mysql using php?
    in PHP

    How to import excel data into mysql using php?

    Hi,

    i tiring to insert excel data into mysql using php.

    1. i saved the Excel data as a CSV file.
    2. i use below code to retrieve data.
    Code:
    $fcontents = file('./ite_APS.csv');
    for($i=0;$i<sizeof($fcontents);$i++)
    {
    	$line = trim($fcontents[$i]);
    	$arr = explode(",",$line);
    	$sql = implode("','",$arr);
    	echo "$sql <br>";
    }
    ...
    See more | Go to post

  • apssiva
    started a topic how to split the string?
    in PHP

    how to split the string?

    Hi,

    The value was mixed('5097'), so i want to split the year "09". how to split, can you?
    See more | Go to post

  • Hi,

    Thank you for your help. Sure i correct my mistake.

    Regards,
    apssiva.
    See more | Go to post

    Leave a comment:


  • serialize() value store, in to a database using update query

    Hi,

    I got error message "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Town Donation Draw";s:15:"Hou rs Completed";s:8: "3.000000";s:4: "Year";s:4:"200 9";' at line 1".

    pls correct my mistake.

    Code:
    $m = array();
    foreach($students as $student){
    	if($student['nric']
    ...
    See more | Go to post

  • apssiva
    replied to How to import CSV data into MySQL with php?
    in PHP
    Hi,

    Below is my output, i want to Import CSV data into MYSQL database. pls only one help me.
    how to update every column base on nric and year in my database?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...