
QuizToon
Members-
Posts
21 -
Joined
-
Last visited
Everything posted by QuizToon
-
Hi All, I want to include my terms and conditions in an ebay listing. The reason for this is to ease the process if and when i need to change the terms. I stopped using eBay about a year ago and back then is used this code to display my terms withing the eBay lisitng. <?php include ('http://www.example.com/terms.php'); ?> NOw when i put that code into the listing it doesnt display. I tested this out on my own server and it didnt display there either so I now it isnt eBay. I also tried emoving the brackets without success. The only way I can get it to display as include on my server is to use a relative path, which isnt the result I need Has something changed in the past year? Is there another way to display an external file using an absolute path to an external file? Many Thanks
-
Hi all, I already have a database and tables set up and it has information in there already. I would like a way of adding new fields to the database using a php form. Example would be that I would like to add the field called 'field2' to the database, it can be added as the last field in the table. I would also like to be able to name the additional field before it is created. So basically process is: select the database select the table choose a new field name add the field I have tried searching for this but only seem to find adding a table. Have tried my self but quite frankly I am nowhere near the correct code. Decided its time to ask the experts. many Thanks
-
Hi there, Not sure if this is in the right place, my apologies if not. I have googled various search terms for this but don't seem to get the answer. I am looking to see if there is a script that determines if you have flash installed, if it does it goes ahead and displays the flash file if it doesn't it displays a static graphic/image instead Many thanks
-
Hi all I am having a bit of a problem understanding addslashes and n2lbr and where and when to use them. I have, after much toing and froing, managed to create a small news script which displays news in the form od a newsletter on the website. I have also done the admin system to allow me to upload news articles, edit current ones and delete old ones. What I have noticed is that there seems to twice as many line breaks as there needs to be. EG i input the text with 2 line breaks and the system uploads it and adds another one in, if I edit the article the same thing happens. I am guessing I have done something wrong with either of 2 functions mentioned. Please can someone just explain in real simple terms when and where I should use them, if indeed that is my problem. Many Thanks
-
First off let me thank you for your patience and for sticking with me on this. I have a little knowledge of php and I do understand it a little, I tend to get confused with it though, you know how it is, just cant get it to sink in all the time. My problem is I find it difficult to learn from books etc, I need to be taught in a lesson like at school (long time ago that was). Need someone to tell me and show me as well as having the book to reference to. I don't think SQLyog is quite what I am looking for in this instance but looks like something I could use for other projects. Going to crack on and try the code you have written up there. Many thanks Look forward to part 2 of my lesson
-
I don't currently have any code because I don't update using php at the moment, I have been using the csv file and manually amending it before importing to the database via myphp. I just know how to select a single record from a list of records retrieved from the database, and update a given field for that record. Basically I would have a script which would return the following from the database player 1 - Click to edit player 2 - Click to edit player 3 - Click to edit player 4 - Click to edit player 5 - Click to edit player 6 - Click to edit player 7 - Click to edit I would then select which I wanted to edit and would then be given that players record with all the fields available to update, it would update when the submit button was clicked eg something like Name R1 Score R2 Score R3 Score R4 Score R5 Score R6 Score R7 Score R8 Score John Doe 15 21 * I would then place the next score, in this case it would be round 3, and update. What I would like is to select all of the player records ....... eg Name R1 Score R2 Score R3 Score R4 Score R5 Score R6 Score R7 Score R8 Score John Doe0 15 21 * John Doe1 15 21 * John Doe2 15 21 * John Doe3 15 21 * John Doe4 15 21 * John Doe5 15 21 * John Doe6 15 21 * SUBMIT I would then input the score for each player, eg replace the asterisk with the score and then click the submit button and all the record would update with the relevant score. Obviously the asterisk wouldnt actually be there that is just to try show you what I mean. Hope this makes a little better sense. Thanks for trying and being patient with me, it is appreciated ps i should mention that there are probably 100 players in total
-
HI again I am updating already existing records. Assume that it is week 3 and I need to insert/update week 3 scores into the week3 field in the database for each of the competitors. At the moment I have to call each competitor record update the field then get the next one and so on, which takes quite a long time as you have to load each competitor every time. What I want is to call all the competitors into a form and have them listed one under the other, update/insert the week 3 scores for each one right there on the page then click the submit button and each week3 field for each of the competitors is updated to reflect their score for that week. Hope that makes a bit more sense Thanks again
-
Thanks for the quick reply, but I have already read that and it doesnt really answer my question. I am beginning to feel that what I want to do cant be done.
-
HI all Title gives an idea of what I want to happen. I have a database which is basically a league table with the highest point scorer at the top and the lowest at the bottom. I have been receiving each rounds scores via a spreadsheet which I then had to mess about with so that I could eventually import it to the database. It takes about an hour and a half to do for each event There are several fields in the database table. e.g. id, first name, last name, event, round 1, round 2, round 3, up to round 8. I know how to call up and update one record at a time but was wondering if there was a way to call up all the records for a given event, input that weeks rounds scores for each and hit the update button so they are all updated in one go. If someone could tell me if it or isn't possible would be a great start and if they could point me in the direction of the right term to search on or show me a tutorial to achieve this I would be very grateful. Many thanks for reading
-
Hey thanks for exactly what is required. I also read through the tutorial on your site and it makes the code easier to understand and to see what is happening. I am now going to create a login script for this to hide behind as you suggested. Once again I thank you.
-
I dont suppose you could point me in the direction of a tutorial or thread which shws how to do this I am not sure where to start. Many thanks for the reply
-
Hi all I got the following script off an old post I found. It works very well and creates the subfolder. Is it possible to make it so that I can type my required folder name into a form and have it create the folder with that name? For example I might want to create 2 folders, one called folder1 and the called folder2. Is this possible without having to change the code each time <?php /* wherever this particular script will be installed, I want to create a subfolder */ /* Step 1. I need to know the absolute path to where I am now, ie where this script is running from...*/ $thisdir = getcwd(); /* Step 2. From this folder, I want to create a subfolder called "myfiles". Also, I want to try and make this folder world-writable (CHMOD 0777). Tell me if success or failure... */ if(mkdir($thisdir ."/myfiles" , 0777)) { echo "Directory has been created successfully..."; } else { echo "Failed to create directory..."; } ?> Hope you follow me here Thanks in advance
-
Hi all, I am having a exremely frustrating time. Usually I can ask a couple of questions of the expers in this forum and get the code sorted. I have been trying to do this one for myself and have come to the conclusion that I am thick. I just cannot get my head around this at all. I cannot fathom how it works. Basic background - I have a MySql database, in it I want to store id, title, bodytext, imagepath, imagename, uploaddate,image size, and image caption. I have a script already which is working without problems. Up until recently this was fine, however, I now need to resize the image to a size which is easily manageable on the web, whilst keeping the aspect ration. Image size of 800x600 would be fine. The images being uploaded are generally from a digital camera and the sizes are something like 3000x2000. Now I did manage to get a script to work and do all this, but with one problem. If the filename ends with uppercase .JPG then the scripts executes and does everything apart from upload the actual image. Dont know how to fix this and am now ready to throttle the kids, kill the budgie and kick the dog only joking but I think you get level of my frustration. The script for the upload and resize are 3rd party scripts, which I have tried to integrate with my upload script. I have attached the files if someone would like to see them. Many thanks for looking [attachment deleted by admin]