Forum: PHP Nov 2nd, 2009 |
| Replies: 2 Views: 249 $query="SELECT * FROM products WHERE part LIKE \"%$pt%\""
This will match any string in the column `part` where the substring/string contained in $pt is found |
Forum: PHP Oct 6th, 2009 |
| Replies: 4 Views: 256 How about adding a die statement to assist in debugging like so
$this->con=mysql_connect($server,$name,$pass) or die(mysql_error());
happy times! |
Forum: PHP Oct 6th, 2009 |
| Replies: 4 Views: 246 What you need is simply DHTML. Just like Gmail's attach another file, you need something like that which when clicked will add two text fields for item code and another one for serial no.
So the... |
Forum: PHP Oct 6th, 2009 |
| Replies: 4 Views: 390 Simply test using php if the checkbox was selected
if(isset($_POST['check-box-name'])){
//Do something
}
From there you can proceed with inserting the values to the database. Test for each... |
Forum: PHP Sep 30th, 2009 |
| Replies: 2 Views: 733 As far as I know, PHP cant open a new window. What you can do is to have php print the relevant link in html which when clicked directs a user to the page where the pdf file will be viewed with the... |
Forum: PHP Sep 28th, 2009 |
| Replies: 5 Views: 189 Only the check box that is checked will be sent so you can check if it is set like below
if(isset($_POST['check-box-1'])){
//Do something
}
[/code] |
Forum: PHP Aug 3rd, 2009 |
| Replies: 2 Views: 189 Have you established a valid connection to the database? |
Forum: PHP Jul 28th, 2009 |
| Replies: 4 Views: 269 <?php
$row_count = 0;
$columns = 3;
while ($row = mysql_fetch_assoc($result)) {
if ($row_count == $columns) {
echo "</tr><tr>"; |
Forum: PHP Jul 13th, 2009 |
| Replies: 2 Views: 411 I am afraid it's not possible to insert zipped files and songs to the database. What is normally done is simply copying them(songs,images,zipfiles) to the server and storing the details of the... |
Forum: PHP Jul 2nd, 2009 |
| Replies: 2 Views: 519 Just to make it better add this lines to the calculate function above to be sure you are multiplying numbers only!
function calculate() {
if(isNan(document.form1.elements.productvalue.value) ||... |
Forum: PHP May 11th, 2009 |
| Replies: 17 Views: 1,273 Hi Davewylie. Have you tried using css? You can easily format the submit buttons apart from using images |
Forum: PHP Apr 28th, 2009 |
| Replies: 10 Views: 1,981 Please visit the daniweb javascript/dhtml/ajax forum |