- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 3
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
15 Posted Topics
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 …
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
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!
[CODE]echo "Last inserted id: ".mysql_insert_id();[/CODE] This function will return you the last inserted id!
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 …
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]
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]
May be the comma (,) is missing between these columns in query $_POST[years] and $_POST[mid]!
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 …
Try using [COLOR="Green"]$row1[0][/COLOR] instead of [COLOR="Red"]$row1['SUM($var)'][/COLOR]
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 …
You can use array , like this [CODE]$yourfield = array("NAME", "ADDRESS");[/CODE] Where, [CODE]$yourfield[0] => NAME $yourfield[1] => ADDRESS[/CODE]
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"; ?>"> </td> <td style="background-color:<?php if($a2==1) echo "#FF0000"; else echo "#00FF00"; ?>"> </td> <td style="background-color:<?php if($a3==1) echo "#00FF00"; else echo "#FF0000"; ?>"> </td> </tr>[/CODE]
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 …
Or you can do something like this [CODE]<button><a href='export.php?'>Export</a></button>[/CODE]
The End.
adkhan