Search Results

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: sureronald
Forum: PHP 33 Days Ago
Replies: 2
Views: 214
Posted By sureronald
$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
Posted By sureronald
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
Posted By sureronald
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
Posted By sureronald
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
Posted By sureronald
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
Solved: Posting Issue
Views: 186
Posted By sureronald
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
Solved: another problem
Views: 185
Posted By sureronald
Have you established a valid connection to the database?
Forum: PHP Jul 28th, 2009
Replies: 4
Solved: Showing image
Views: 250
Posted By sureronald
<?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
Posted By sureronald
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
Solved: opening a file
Views: 264
Posted By sureronald
Mark it as solved then!!
Forum: PHP Jul 2nd, 2009
Replies: 2
Views: 487
Posted By sureronald
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
Posted By sureronald
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
Posted By sureronald
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
Posted By sureronald
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
Posted By sureronald
Please visit the daniweb javascript/dhtml/ajax forum
Forum: C Oct 2nd, 2008
Replies: 4
Solved: base coversion
Views: 563
Posted By sureronald
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...
Showing results 1 to 16 of 16

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC