Search Results

Showing results 1 to 40 of 55
Search took 0.01 seconds.
Search: Posts Made By: wilch
Forum: PHP Oct 15th, 2009
Replies: 15
Views: 851
Posted By wilch
First things first, you need to write simple algorithms/procedures for your desired tasks. From what i see the simple steps would be something like.
1. click add takes you to page for adding data...
Forum: PHP Oct 7th, 2009
Replies: 2
Views: 226
Posted By wilch
Well, i dont know how helpful this is, but once my applxn could not use the gd functions too, though the library was installed, so i read some article that told me i had to uncomment the line that...
Forum: PHP Oct 6th, 2009
Replies: 15
Solved: form validation
Views: 909
Posted By wilch
Cool, that's good news then. :P
Forum: PHP Oct 6th, 2009
Replies: 15
Solved: form validation
Views: 909
Posted By wilch
Hi Planet,
The reason why the insert could be failing is because the db expects the userid to be an integer, whilst in your case if you are using the following code to generate your userid, then the...
Forum: PHP Oct 4th, 2009
Replies: 5
Views: 472
Posted By wilch
Yes, you could try that, at least that way 2 result sets will be independent of one another, should you use the mysql_fetch_assoc.
Forum: PHP Oct 2nd, 2009
Replies: 5
Views: 472
Posted By wilch
Hi jbob, i didn't thoroughly analyze your code, but did a quick run through it, and i found 2 errors to start of with.
- line 83, the value being echoed into the hidden control's value attribute,...
Forum: PHP Oct 2nd, 2009
Replies: 15
Solved: form validation
Views: 909
Posted By wilch
Hi there !
Ok in the file testsel1.php, you need to do the following:
- revalidate the count of checked drivers, and ensure there are 7 (or less ??)
- generate the random id.
- save both drivers...
Forum: PHP Oct 2nd, 2009
Replies: 8
Views: 411
Posted By wilch
Forum: PHP Sep 25th, 2009
Replies: 3
Views: 321
Posted By wilch
To optimise your code for readablity, and avoiding boredom of scrolling down - like i experienced. Replace your js functions such as

function HighLightTR39(el, rowName){
if...
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 1,973
Posted By wilch
Wow - now that's real efficiency.
I should have known of this months ago.
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 1,973
Posted By wilch
Try the code below. You will have to decide what you will do with the js multi dimensional array in the javascript code where there is alert('...').


<?php

//create your multi lists here...
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 467
Posted By wilch
Well, i have developed something similar tot that before.
What you first need is the pagination code. Then add to each url of the pagination links extra variables that maintain the current state of...
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 467
Posted By wilch
Well, we can't solve what we can't see. Give us the logic of the code or rather the code itself then we might determine whether we can/not solve it :)
Forum: PHP Sep 23rd, 2009
Replies: 8
Views: 443
Posted By wilch
Cool buddy !
Plus the gratitude is even better, if you Add To Their Reputation, the thread they helped you solve.

:)
Forum: PHP Sep 23rd, 2009
Replies: 8
Views: 443
Posted By wilch
well, then that's not the problem for you, but ofr me - i once experienced it on that part.

Anyway, i think i see where the problem is. Line 26, there's an extra = sign.
Remove it !
Forum: PHP Sep 22nd, 2009
Replies: 8
Views: 443
Posted By wilch
Usually all output disappears from your browser if you have an error in your code, and error_reporting is set to E_ALL & E_NOTICE in your php.ini file.
In this case, i think your error, is that you...
Forum: PHP Sep 22nd, 2009
Replies: 10
Views: 787
Posted By wilch
well, if the problem is on line 48, the most sinister actors would be the 2 arguments '$dir1' AND '$dir/thumbs/$photo1'

- try outputting these strings before you call the function, and see what...
Forum: PHP Sep 22nd, 2009
Replies: 10
Views: 787
Posted By wilch
well, if the problem is on line 48, the most sinister actors would be the 2 arguments '$dir1' AND '$dir/thumbs/$photo1'

- try outputting these strings before you call the function, and see what...
Forum: ASP.NET Sep 22nd, 2009
Replies: 3
Views: 296
Posted By wilch
Sorry mate, but my c# is not so sharp, if you could write something out, and then i will aid you along the way ! :)
Forum: PHP Sep 22nd, 2009
Replies: 15
Solved: form validation
Views: 909
Posted By wilch
No problem !
Forum: PHP Sep 22nd, 2009
Replies: 3
Views: 512
Posted By wilch
Show us the code, show us the code.
Where's the code, give us that yum yummy code !!
Forum: PHP Sep 22nd, 2009
Replies: 3
Views: 263
Posted By wilch
Forum: PHP Sep 21st, 2009
Replies: 8
Views: 643
Posted By wilch
you will need to loops, one loop maintaining track of the rows, and the other maintaining track of the columns.
e.g.

<?php

$count = 0;
for($i=0; $i<3; $i++){ //num of rows
for($j=0; $j<5;...
Forum: PHP Sep 21st, 2009
Replies: 3
Views: 263
Posted By wilch
Well, for starting you did not provide the file containing the form, so i am going to have to assume line 88 contains the values from the checked checkboxes:
$nletter=empty($_REQUEST['news']) ?...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 551
Posted By wilch
within the if clause, change the old sql statement to the following:


$sql = "INSERT INTO visitors(session_id, time_clicked, file_name) VALUES('$sessionID', '".strftime("%X",time())."', '$file')"...
Forum: ASP.NET Sep 21st, 2009
Replies: 2
Views: 265
Posted By wilch
The simplest solution would to do a google search for "submitting forms in ASP.NET"
Forum: ASP.NET Sep 21st, 2009
Replies: 3
Views: 296
Posted By wilch
Well for your database you can create a table called tblRooms, which contains the following fields:
- room_id (primary key)
- room_name (varchar)
- room_features (string/text ?!?)
- is_booked...
Forum: PHP Sep 21st, 2009
Replies: 15
Solved: form validation
Views: 909
Posted By wilch
Here's the idea, though i have not tested the code, the logic is correct.


<?php

$sql = "SELECT * FROM options LIMIT 65";
$rs = mysql_query($sql);

echo "<form name='frmChk'...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 551
Posted By wilch
I am not sure how to open it up in a new window. But, i think the same code should open the pdf in a new window if the user's browser has a PDF viewer plugin installed on it, so my guess is that if...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 551
Posted By wilch
I am not sure i am getting your problem clearly. But, if you mean the file is not downloading because the file is in a different folder location. Then alter the code to this:


<?php...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 551
Posted By wilch
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 551
Posted By wilch
You can try this. The page redirects to itself (pdf.php) when the link is clicked. The file then saves the time & user's session id before offering the file for download.


<?php...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 551
Posted By wilch
I am not quite sure which value it is you want to get, but i will assume it is the filename. In that case, i would have done this:


<a href="#" target="_blank"...
Forum: PHP Sep 18th, 2009
Replies: 8
Views: 411
Posted By wilch
Hi there,

Here's the modified version of Dasatti's printContents:


<?php

$dir = "poems/";
printContents($dir);
Forum: C++ Aug 25th, 2009
Replies: 5
Views: 403
Posted By wilch
Well, you can try this:

int findSum (vector < int > v){
int sum = 0;
if(v.size() <= 0) return 0;
else{
position = v.size() - 1;
sum += v.at(position);
...
Forum: PHP Aug 20th, 2009
Replies: 3
Views: 407
Posted By wilch
hmm, interesting facts over there Almostbob, i had always wondered what makes some text on checkboxes clickable, on some not. Now, i know - thanks too !
Forum: MySQL Aug 19th, 2009
Replies: 6
Views: 604
Posted By wilch
Forum: ASP.NET Aug 19th, 2009
Replies: 6
Views: 1,577
Posted By wilch
How about this:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
FirstTextBox.Attributes.Add("id", "txtbx1")
...
Forum: MySQL Aug 19th, 2009
Replies: 6
Views: 604
Posted By wilch
...AND Ships.Dest_State IN ('LA') ORDER BY 'PU_Date' ASC
The ASC is out of the quotes, what's in the quotes is the column name !

Don't forget to mark as solved, if solved ;)
Forum: ASP.NET Aug 19th, 2009
Replies: 6
Views: 1,577
Posted By wilch
I have replaced textbx2.focus with txtbx1.focus

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
FirstTextBox.Attributes.Add("onkeyup",...
Showing results 1 to 40 of 55

 


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

©2003 - 2010 DaniWeb® LLC