Forum: PHP Oct 15th, 2009 |
| Replies: 15 Views: 727 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: 183 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 Views: 762 Cool, that's good news then. :P |
Forum: PHP Oct 6th, 2009 |
| Replies: 15 Views: 762 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: 392 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: 392 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 Views: 762 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: 341 |
Forum: PHP Sep 25th, 2009 |
| Replies: 3 Views: 250 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,087 Wow - now that's real efficiency.
I should have known of this months ago. |
Forum: PHP Sep 24th, 2009 |
| Replies: 3 Views: 1,087 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: 303 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: 303 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: 357 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: 357 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: 357 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: 608 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: 608 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: 15 Views: 762 |
Forum: PHP Sep 22nd, 2009 |
| Replies: 3 Views: 437 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: 210 |
Forum: PHP Sep 21st, 2009 |
| Replies: 8 Views: 381 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: 210 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: 463 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 Views: 762 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: 463 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: 463 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: 463 |
Forum: PHP Sep 21st, 2009 |
| Replies: 12 Views: 463 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: 463 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: 341 Hi there,
Here's the modified version of Dasatti's printContents:
<?php
$dir = "poems/";
printContents($dir); |
Forum: PHP Aug 20th, 2009 |
| Replies: 3 Views: 359 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: PHP Aug 19th, 2009 |
| Replies: 3 Views: 359 Here's a sample for a single checkbox, you can do the rest:
<form method="POST" action="http://*********.php">
<span class="label">Header</span>
<input type="checkbox" name="header" value="1">... |
Forum: PHP Aug 18th, 2009 |
| Replies: 2 Views: 208 [code]
<?php
//from your 2 resultsets containing the models & makes
//create a models array for each make
$models = array();
while($makerow = mysql_fetch_assoc($makeresultset)){
$j = 0;... |
Forum: PHP Aug 18th, 2009 |
| Replies: 16 Views: 702 dont you think that the error could be in the include file itself ?
Well, judging from the numbering, line 26 would be in the include file itself ?!?
I think it's worth a check ! |
Forum: PHP Jan 9th, 2009 |
| Replies: 2 Views: 1,276 What i would first attempt to do is to check whether the field 'file' has anything after being posted, if it is set to something (hopefully a filename) then we can proceed to call the other image... |