Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: wilch
Forum: PHP Oct 15th, 2009
Replies: 15
Views: 729
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 2nd, 2009
Replies: 15
Solved: form validation
Views: 765
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 Sep 23rd, 2009
Replies: 8
Views: 361
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: 361
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: 361
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: 15
Solved: form validation
Views: 765
Posted By wilch
No problem !
Forum: PHP Sep 21st, 2009
Replies: 8
Views: 382
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: 12
Views: 464
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: PHP Sep 21st, 2009
Replies: 15
Solved: form validation
Views: 765
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: 464
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: 464
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: 464
Posted By wilch
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 464
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: 464
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: 342
Posted By wilch
Hi there,

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


<?php

$dir = "poems/";
printContents($dir);
Forum: ASP.NET Aug 19th, 2009
Replies: 6
Views: 1,039
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: 502
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,039
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",...
Forum: MySQL Aug 19th, 2009
Replies: 6
Views: 502
Posted By wilch
AND Ships.Dest_State IN ('LA') ORDER BY 'PU_Date ASC'
In this last line, you have i think mistakenly put the keyword ASC as part of the column name. Try removing the ASC from the quotes !
Forum: ASP.NET Aug 19th, 2009
Replies: 6
Views: 1,039
Posted By wilch
Since the compiler runs in a top-down fashion, the last code executed on page load, is the setting of focus on textbox2. Which means textbox1 will not get focus unless you shift tab to it.

I think...
Forum: MySQL Jan 9th, 2009
Replies: 5
Views: 6,055
Posted By wilch
else you can specify a second different table in the fk constraint e.g. rather than fk_table1_table1(column) make it fk_table1_table2(column)
Forum: MySQL Jan 9th, 2009
Replies: 5
Views: 6,055
Posted By wilch
hi Br1Dil,

Well from first looks, the last column you added has a foreign key constraint referencing the same table. Is that constraint necessary ? I don't think so. Try commenting it out, or...
Showing results 1 to 22 of 22

 


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

©2003 - 2009 DaniWeb® LLC