Help needed

From: Date: Wed, 29 Sep 2004 07:05:12 +0000
Subject: Help needed
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364324@lists.php.net to get a copy of this message
Hello friends, This is kunal Aggarwal. Friends i am facing some problem in sending php script by mail function. I have to send a table dynamically created in php using "print" tags but till now i am not able to send the table in php. please help me if anyone have any idea in this regard. I am using php script for table is " print "<table width=2000 border=2> \n"; print "<tr style=\"background-color: #8fbc8f;\" bordercolor=\"#9966ff\">\n "; for($i=0;$i<(mysql_num_fields($result)-1) ;$i++) { // retreiving the names of columns from the resultset print "<th>".strtoupper(mysql_field_name($result,$i))."</th>"; } print "<th width=150>Address</th>"; print "<th width=150>Followup</th>"; print "</tr>\n"; while ($get_info = mysql_fetch_row($result)) { print "<tr bordercolor=\"#9966ff\" >\n"; for($i=0;$i<(mysql_num_fields($result)-1) ;$i++) // print "\t<td style=\"background-color:#ffffcc;\" align=center><font face=arial size=2/>$field</font></td>\n"; { print "\t<td style=\"background-color:#ffffcc;\" align=center><font face=arial size=2/>$get_info[$i]</font></td>\n"; } print "\t<td style=\"background-color:#ccccff;\" align=center><font face=arial size=2/></font>\n"; printf("<img alt=\""); $result1 = mysql_query(" SELECT address.* from address as address,enquiry_received AS enq where address.address_id=enq.address_id and enq.enquiry_id=$get_info[0] ") or die("SELECT Error: ".mysql_error()); $row1=mysql_fetch_row($result1); for($i=0;$i<11;$i++) { $meta=mysql_fetch_field($result1, $i); printf($meta->name.":".str_replace("%","",$row1[$i])."\n"); } " With Best Regards «·´·.(*·.¸(·.¸ ¸.·´)¸.·*).·´`·» «..Er. Kunal Aggarwal ..» «·´·.(¸.·*(¸.·´ ·.¸)*·.¸).·´`·» Software Engineer

« previous php.doc (#969364324) next »