Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
3
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #1K
~8K People Reached
Favorite Forums
Favorite Tags

15 Posted Topics

Member Avatar for ms.rhea

Hi, May be the issue is with this line (which is inside while loop) [CODE]$html = '<html><body><h4><center>Event Schedule</center></h4>';[/CODE] Take it above while loop and secondly its better to write this line above while loop [CODE]$html .= '<table class = "bpmTopnTailC" align="center"><thead>[/CODE] and just create the table rows inside while-loop like …

Member Avatar for raghucse2010
0
3K
Member Avatar for Danny159

Hi Dan, You can do something like this: [CODE] foreach($files as $file){ // Unlink only images that contain t.jpg.... $find = "t.jpg"; $pos = strpos($file, $find); if ($pos !== false) { unlink($file); } } [/CODE] Hope it helps! Adnan

Member Avatar for Danny159
0
134
Member Avatar for rakwel10

If your form include an <input type="file" ...> element, then you must use enctype="multipart/form-data". [CODE]<form id="createTourForm" name="createTourForm" method="post" action="admin_tour_createtour.php" enctype="multipart/form-data">[/CODE] Hope this helps!

Member Avatar for adkhan
0
146
Member Avatar for 54uydf

[CODE]echo "Last inserted id: ".mysql_insert_id();[/CODE] This function will return you the last inserted id!

Member Avatar for 54uydf
0
153
Member Avatar for chris_j_haines

Firstly get the file name from the DB, then concat the directory name with the file name and then pass to the [COLOR="Green"]unlink()[/COLOR] fucntion. Suppose $dir variable is having the path to the directory and $file_name is having the file name returned from the DB ... [CODE]$dir = "../images"; $file_name …

Member Avatar for kaisarkhan87
0
153
Member Avatar for darianculbert

Try Google Chart Tools - May be they'll be helpful to you... [URL="http://code.google.com/apis/chart/"]http://code.google.com/apis/chart/[/URL] [URL="http://keith-wood.name/gChart.html"]http://keith-wood.name/gChart.html[/URL]

Member Avatar for adkhan
0
77
Member Avatar for altarek

May be the maximum time limit exceeds... Check your code, may be there is an issue with it - if not then to optimize it otherwise if your code needs to execute for unknown time then you can use this in the top of page [CODE]set_time_limit(0);[/CODE]

Member Avatar for adkhan
0
53
Member Avatar for Mona Ali
Member Avatar for coolest_987
0
3K
Member Avatar for heshanm

Hi Heshan, Firstly don't submit the form to the same page (if you are doing so) and secondly if you are submitting the form to any other page then redirect it back to the form page or any other page you want and then display the message. If you don't …

Member Avatar for heshanm
0
167
Member Avatar for utthu

Try using [COLOR="Green"]$row1[0][/COLOR] instead of [COLOR="Red"]$row1['SUM($var)'][/COLOR]

Member Avatar for Member #120589
0
372
Member Avatar for branding4you

I think its better to use session variables to hold the values of selected option after it is posted and in this page inside while loop where the options are added to listbox, you can have a check there to have the option as selected which was selected by the …

Member Avatar for IIM
0
144
Member Avatar for bangla

You can use array , like this [CODE]$yourfield = array("NAME", "ADDRESS");[/CODE] Where, [CODE]$yourfield[0] => NAME $yourfield[1] => ADDRESS[/CODE]

Member Avatar for pbcomput
0
124
Member Avatar for fadliraihana

Try this [CODE]<tr> <td ><span class="style2">1</span></td> <td >PERAK IP-F002</td> <td style="background-color:<?php if($a1==1) echo "#00FF00"; else echo "#FF0000"; ?>">&nbsp;</td> <td style="background-color:<?php if($a2==1) echo "#FF0000"; else echo "#00FF00"; ?>">&nbsp;</td> <td style="background-color:<?php if($a3==1) echo "#00FF00"; else echo "#FF0000"; ?>">&nbsp;</td> </tr>[/CODE]

Member Avatar for vibhaJ
0
220
Member Avatar for newbie14

Crontab is fine but it only allows you to run a PHP file every minute or so. => What if the previous run hasn't finished yet? Overlap can seriously damage your data & cause siginificant load on your machines. => What if you can't afford to wait a minute for …

Member Avatar for mslade
0
356
Member Avatar for cliffcc

Or you can do something like this [CODE]<button><a href='export.php?'>Export</a></button>[/CODE]

Member Avatar for cliffcc
0
113

The End.