Forum: PHP 33 Days Ago |
| Replies: 2 Views: 214 $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: 231 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: 223 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: 368 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: 631 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: 186 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: 185 Have you established a valid connection to the database? |
Forum: PHP Jul 28th, 2009 |
| Replies: 4 Views: 250 <?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: 389 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: C++ Jul 7th, 2009 |
| Replies: 3 Views: 264 |
Forum: PHP Jul 2nd, 2009 |
| Replies: 2 Views: 487 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: JavaScript / DHTML / AJAX Jun 8th, 2009 |
| Replies: 2 Views: 815 In js file I would advise you to put your code inside a function and the call it with one of the many javascript events
function CheckNumber()
{
if(isNAN(form.myTextBox.value))
alert('not a... |
Forum: *nix Software Jun 4th, 2009 |
| Replies: 6 Views: 985 On linux once you have created the source of your program using console editors (emacs,joe etc) or desktop editors depending on your desktop type then it's ready for compilation.
On windows IDE's... |
Forum: PHP May 11th, 2009 |
| Replies: 17 Views: 1,249 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,830 Please visit the daniweb javascript/dhtml/ajax forum |
Forum: C Oct 2nd, 2008 |
| Replies: 4 Views: 563 Though I have not taken a closer look at you code I guess the problem is in the order in which the result is printed according to the first reply thread. I have also written a similar program that... |