Forum: PHP Jun 8th, 2007 |
| Replies: 3 Views: 940 It is quite trival but I not keen on doing peoples coursework for them because they don't learn anything from it but!
[code]
function encode()
{
$master_array = ... |
Forum: PHP Jun 8th, 2007 |
| Replies: 2 Views: 844 Yes not a problem, this the code for a list node. Writting the rest of the operation functions are quite easy once you have a node.
<?php
class ListNode{
var $previousNode;
var... |
Forum: PHP Jun 8th, 2007 |
| Replies: 5 Views: 1,520 All of the solutions about delete the entie contents of the text file. Just to clear up hussulinux's point (as I think it is probably the most resource friendly, while still keeping the text file. ... |
Forum: PHP May 31st, 2007 |
| Replies: 2 Views: 2,862 what you could do is hardcore the the save directory into the function (as you have to save the image to the server, and this makes sense as you can then have it acting as a cache so that you only... |
Forum: IT Professionals' Lounge May 20th, 2007 |
| Replies: 5 Views: 3,084 Mine is 129K as well and as I said it has not been modified since the 14/05/07. I might just download the program again and reinstall it.
But thanks for the offer |
Forum: HTML and CSS May 19th, 2007 |
| Replies: 2 Views: 1,948 All of the data for your site is being being downloaded tothe browser corretly. If you veiw the source for the age in IE then you can see all of the data is there. This means that is probably a CCS... |
Forum: PHP May 19th, 2007 |
| Replies: 1 Views: 1,443 This isn't the right forum to past this in as it is a javascript question but i assume that you are trying to use confirm message box of ok or cancel. The confirm messaage box returns a true or... |
Forum: PHP May 19th, 2007 |
| Replies: 32 Views: 39,086 I am as stupped as you are. The only thing that comes to mind is that IE sometimes has problem finsihes off writting session data and it is subsquently lost.
I think that it is quit well... |
Forum: Website Reviews May 19th, 2007 |
| Replies: 7 Views: 1,560 I just had a quick look and I am not sure that it is displaying correctly in firefox.
I get scroll bars on you slideshow images at the top of the page and I have to scroll down before I see... |
Forum: PHP May 19th, 2007 |
| Replies: 32 Views: 39,086 Although I have not come across this problem before I can think of a couple of things that might be happening.
First of I would look in your code at any items that uses the session_start()... |
Forum: IT Professionals' Lounge May 19th, 2007 |
| Replies: 5 Views: 3,084 Hi All,
Just logged on to my main windows box to see the scan results from AVG Free have suddenly picked up a trojan in the 7Zip folder, which they have named Generic4.PJR and identified the file... |
Forum: PHP May 17th, 2007 |
| Replies: 1 Views: 720 This very much dependes on you server setup but a safe bet is to place them under the public_html directory in your user account. |
Forum: PHP May 7th, 2007 |
| Replies: 3 Views: 1,085 you can do that in php because php is a server side script. Once it has processed the script and set it to the browser it has no more control of the page. The easiest way is to use javascipt |
Forum: PHP May 4th, 2007 |
| Replies: 10 Views: 3,172 what error reporting level have you got switched on? Also if you veiw source on you white screen is there any text there? |
Forum: PHP May 3rd, 2007 |
| Replies: 10 Views: 3,172 okay,
first
$SQL = "Select * from LISTINGS WHERE $_POST LIKE '%$value%' ORDER BY TITLE ASC LIMIT 50";
will actually be "Select * from LISTINGS WHERE array LIKE '%value%' ORDER BY TITLE ASC... |
Forum: PHP May 2nd, 2007 |
| Replies: 10 Views: 3,172 can you do an echo on the sql statment just before you call mysql_query please. At first glance in your mysql_query your have written $SQL rather that $sql. If you post the $sql statment then if... |
Forum: PHP Apr 30th, 2007 |
| Replies: 3 Views: 943 First of all what do you mean it does not make sense? Please be a bit more specific in your question.
Secondly, does the script through any errors about connecting to the database as your have... |
Forum: PHP Apr 30th, 2007 |
| Replies: 14 Views: 4,920 Bassically, I am not sure that you can. Becuase the script has to be run when the page is called by the browser. I think that you are over complicating the process, increasing bandwidth, increasing... |
Forum: Windows NT / 2000 / XP Apr 30th, 2007 |
| Replies: 1 Views: 1,733 Hi All,
I was wondering if any one new a program that could list where hard disk space was being used.
For example,
Windows will tell you that you are using 29GB in total but it doesn't tell... |
Forum: Windows NT / 2000 / XP Apr 30th, 2007 |
| Replies: 2 Views: 1,305 the /f in chkdsk means fix error found while scanning the disk. It always use /r which repairs all bad sectors (and also implies /f).
How are you trying to format your harddrive? It seems odd... |
Forum: PHP Apr 30th, 2007 |
| Replies: 14 Views: 4,920 Ok having read what you are trying to do, I would just place the information in a cookie and then if they visit my site again the first thing that I do is delete the cookie to clear the information. |
Forum: PHP Apr 30th, 2007 |
| Replies: 14 Views: 4,920 Sorry, was typing when the two replys came in above. |
Forum: PHP Apr 30th, 2007 |
| Replies: 14 Views: 4,920 Basically you need to remember that php is a scripting language that is designed to be excecuted before a page is sent to a browser and scripts will only be processed when page is called and will... |
Forum: PHP Apr 5th, 2007 |
| Replies: 2 Views: 1,392 what is the field type for family_id in your database. If it is an integer then you are trying to add a string and '$id' remove the ' and see if that makes any difference. |
Forum: PHP Apr 5th, 2007 |
| Replies: 2 Views: 2,959 Yeah I agree with digital, you should change the where clause to WHERE DOB BETWEEN CURDATE() AND CURDATE()+7
I think mysql can do that if not just use DATE_ADD()
I also think that you have over... |
Forum: PHP Mar 27th, 2007 |
| Replies: 9 Views: 2,565 Yes you are quite right
you just stick something like
<meta http-equiv="refresh" content="600">
in the head section of your html document. The thing is that it is not good to take over the... |
Forum: PHP Mar 26th, 2007 |
| Replies: 6 Views: 1,260 To be slightly unhelpful but honest, get a faster server or optimise your web server. There is not much else you can do. Apart from streaming the flash flie to the user so that it starts playing... |
Forum: PHP Mar 26th, 2007 |
| Replies: 3 Views: 2,844 What is the percentage actually representing? Is it the percentage of the point that that team hold of the total point in the table? |
Forum: PHP Mar 24th, 2007 |
| Replies: 5 Views: 1,257 Just in case you were wondering this your modified dboutput string
$dboutput = "//database vars \n"."\$dbtype = '".$dbtype."'; \n". "\$dbhost = '".$dbhost."'; \n"."\$dbtype = '".$dbtype."';... |
Forum: PHP Mar 24th, 2007 |
| Replies: 5 Views: 1,257 I have just run the script that you have posted and I first results that I got was
<?php
//database vars
dbtype = 'a';
dbhost = 'b';
dbtype = 'a';
dbname = 'b';
dbport = 'b'; |
Forum: PHP Mar 24th, 2007 |
| Replies: 5 Views: 1,257 what are you actually asking? I think that you are saying that you are missing the $ at the start of the variables is that correct? |
Forum: PHP Mar 24th, 2007 |
| Replies: 2 Views: 1,057 I think that patserver has been stopped as a project and the codebase and concept has been moved to PEAR::Net_Server, which is still being deveolped and improved. I would suggest having a look at... |
Forum: PHP Mar 24th, 2007 |
| Replies: 3 Views: 1,981 I agree with all the above comments except for the for enctype.
multipart/form-data is only need when you are using the input tag of the tpye file.
I think that you need to use
... |
Forum: PHP Mar 22nd, 2007 |
| Replies: 8 Views: 3,665 You are getting these because you are referancing array keys that do not exist.
Without seeing your whole script it is difficult to give you definate answer but I would assume that you are using... |
Forum: PHP Mar 22nd, 2007 |
| Replies: 4 Views: 2,854 Hi,
AOL is a bit of a pain with their email servers. They make you jump through hopes to be able to send them mail.
The major stumbling blocks for most people is that need to ensure that you... |
Forum: PHP Mar 22nd, 2007 |
| Replies: 9 Views: 2,565 Javascript is definatly the way forwards. You can either use javascript to refresh or you can use an AJAX query to get fresh data and update you page. |
Forum: PHP Mar 22nd, 2007 |
| Replies: 8 Views: 3,665 You get the error message because you have your error level set to E_ALL or simalar. The message that you are getting is a warning and doesn't affect how the script runs.
When you put it on a... |
Forum: PHP Dec 18th, 2006 |
| Replies: 4 Views: 5,497 The syntax works,
What will happen is that the php hits the second <? tag it turns back on see the end of the if closing bracket of the if statment evaluates the else statment ie it know that it... |
Forum: PHP Dec 18th, 2006 |
| Replies: 1 Views: 821 does row["price"] have a value in it? Php let you assign empty array items. Try add echo $row['price'] to the loop and make sure that it is not empty. |
Forum: PHP Dec 17th, 2006 |
| Replies: 4 Views: 5,497 Ummm, from you post I am not entirly sure what you are trying to achieve. At a guess I think that you are trying to increase the speed and remove and uncessary server load. I point you to the... |