No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
29 Posted Topics
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() function, as you could be accidently regenerating the existing session which would oviously reset …
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 purpose of the <? ?> tags. These turn on an off …
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 will show you exactly what your are asking the db to query.
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 only continue while a page is loading. So if a window is closed …
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 have a PTR record setup for your server that points to …
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. [code] [COLOR=#000000] [COLOR=#0000bb]<?php [/COLOR][COLOR=#004000]class [/COLOR][COLOR=#0000bb]ListNode[/COLOR][COLOR=#004000]{ var [/COLOR][COLOR=#0000bb]$previousNode[/COLOR][COLOR=#004000]; var [/COLOR][COLOR=#0000bb]$nextNode[/COLOR][COLOR=#004000]; [/COLOR][COLOR=#808080]//a reference to the next node [/COLOR][COLOR=#004000]var [/COLOR][COLOR=#0000bb]$element[/COLOR][COLOR=#004000]; [/COLOR][COLOR=#808080]//the object || value for this node. …
It is quite trival but I not keen on doing peoples coursework for them because they don't learn anything from it but! function encode() { $master_array = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',1,2,3,4,5,6,7,8,9,0); //Initalise the return array $ecode_array=array(); //Create a copy of the master array $delete_array = $master_array; //Loop through the master array for($i=0;$i<count($master_array);$i++) { …
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. Basically when you open a file in php you usually use either append mode or …
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 and 7zCon.sfx. I have also logged on to the other 3 windows boxes …
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 have to process the image once, rather than everytime …
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 styling error (I been there where I designed my …
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 false response. Below is a simple illistrated true or false method. …
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.
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
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 you where you are using it, the only way I know is …
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 that you are getting windows error messages while trying. Are you trying to format …
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 left the $user and $password blank I would assume that your have a username …
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.
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 complicated the SELECT part using STR_TO_DATE() all you need to do is return the …
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.
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 before the whole file has finished downloading it.
What is the percentage actually representing? Is it the percentage of the point that that team hold of the total point in the table?
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 that before doing to much with an unsupported bit of kit.
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?
I agree with all the above comments except for the for enctype. [COLOR=#ff8000][COLOR=#0000ff]multipart/form-data is only need when you are using the input tag of the tpye file. I think that you need to use [/COLOR][/COLOR] application/x-www-form-urlencoded but then this is the value set be default, so you don't need to …
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 production server you shoud have the lower level warning messages turned off …
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.
Well unless I am beening really blind (which is not unusal as I am only on my second coffee of the day). You do not seem to have a form tag, so when you are clicking the submit button the browser has no idea what to do. I guess that …
Hi, HTTP_REFERER is an optional header that clients our allowed to omitt according to the HTTP specification. But having said that most major browsers do set it. It wont be set if you load the page directly i.e. enter the link directly but if you have clicked a link and …
The End.
UrbanSky