124 Posted Topics
Hi there I've had a bee in my bonnet for a little while now and I've decided to get the ball rolling on creating my own web-based RPG game. But I'm not sure what the best route is with a programming language. I have some basic php knowledge and I've … | |
Hi there I'm new to php and MySQL and I'm busy trying to build a page that when the administrator selects an item from a drop-down list, that has been populated from a database, it populates multiple text fields with the appropriate information from the database. For example, if the … | |
Hi everyone I have a csv file with data such as first name, surname, tel etc and I'd like to populate a table inside my MySQL database automatically. So far I have this but I keep getting an access denied error and I don't know why: [code=php]<?php $server = 'localhost'; … | |
Hi there I posted this problem in the php forum thinking the issue was something I had done wrong with my PHP but is now looking like a MySQL or possibly a technical computer error altogether: [url]http://www.daniweb.com/forums/thread108602.html[/url] Could someone please help me out. | |
Hi there I'm having a bit of a problem. As the title suggests, I'm creating $_SESSION's such as [code=php]$_SESSION[''.$row[0].''][/code] dynamically which is working perfectly, but the problem is I don't know how to call that same variable on a template page that I click through to. At the moment I … | |
Re: [QUOTE=Thinka;523287]:-) People still forgetting to Search The Google ey? I definitely learnt that lesson here, and I have to say I'm much the better for it.[/QUOTE] Google does come in handy, but sometimes you'll find yourself sifting through a whole lot of half-baked code which gets very frustrating after fidling … | |
Hi there. I'm looking to create a site in the near future that will have a login system. What I'd like to know is: 1.) What different types of attacks are there against websites besides brute force attacks (been reading this thread on brute force attacks: [url]http://www.daniweb.com/forums/thread82966.html&highlight=login+security[/url]) 2.) Are there … | |
Hi there I'd just like to know if there's any way of making the height of every page on a website fit your screen if there isn't enough content to do so? I've tried setting min-height to 100% but that doesn't work. Any other ideas I can try? | |
Hi guys I've got a database with a table that stores paragraphs of text. What happens at the moment is that when I pull the text from the database and display it on the page all the line breaks are missing. I'd like to keep the line breaks. I've checked … | |
I've been reading a lot about how 777 permissions for a directory, where images are uploaded to, is a security risk but I've found no solutions on how to make it secure. If any of you have any related links or can give me some suggestions on how to make … | |
I have a form that has an option to upload an image along with some text and a title. What I want to do is check if the input for uploading the image is empty. If it is then the page processes the code just to upload the text portion … | |
I have a standard SELECT query as follows: [code=MySQL]SELECT eid, title, content, thumb_image FROM diary ORDER BY eid DESC LIMIT 3[/code] ...and a SELECT SUBTRING query as follows: [code=MySQL]SELECT SUBSTRING(content, 1, 200) FROM diary[/code] I'd like to combine the two so that it selects the latest 3 entries in the … | |
Hi there I'm using preg_replace to replace ' and " with a backslash in front of them so that I don't get problems with my MySQL INSERT queries. But at the moment I can only replace them with one charater as below: [code=php]$unedited = $_POST['content']; $content = preg_replace("/['|\"]/", "'", $unedited);[/code] … | |
Hi guys and gals Just curious to know if it's possible to select the 3 latest entries in a table. Would be an added bonus to my project. ;) | |
Hi there What I'd like to do is store a paragraph in a column and pull roughly the first 200 characters of the paragraph and display them on a page as a snippet. Is this possible? If so could someone give me a link or code snippet on how to … | |
I have a drop down menu the is populated with event names from a DB. What I'd like to do is have the form submit after click on one of the event names in the drop down list. At the moment I have a submit button for this. I don't … ![]() | |
Hi everyone I'm looking for advice on building up a database. Any sort of general do's and don't s. The one and only thing that I realize is that putting ALL my info into one table is not a good thing. This is the first database I'll be creating so … | |
Hi everyone I'm looking for a script that uploads and resizes images onto a server. I've been tormenting myself with the one from [url]http://blazonry.com/scripting/upload-size.php[/url] The reason I think that it's not working is because the server I'm working on doesn't have the libjpeg and libgr-progs library packages. And I'm not … | |
Is it possible to select day from the DATE field in a db so that it includes a zero in front of it if the day is less than 10? If so could you post the code please. Struggling and stressed...with qwerty imprinted on my forehead | |
I've been told this isn't possible which leads me to the following problem. I have a series of events stored in a database and at the moment I pull the info out and display each one on a new line using a while loop. What I'd like to do now … | |
Hi I would like to know if it's possible to delete a row from a database by selecting it from a drop-down list and hitting the submit("Delete") button. If it is could you help me out with a bit of "code and description" or a link please. Much appreciated ;) | |
Hi there I"m building a page that displays events for example: Event heading 05 June 2007 Event Description Another Event 19 June 2008 Event Description What I'd like to know is how do I sort the events by date in the format shown above. At the moment I have a … | |
Hi there I started a thread about this in the MySQL forum about this ([url]http://www.daniweb.com/forums/thread93312.html)[/url]. Basically I don't know what my db table design should be like in order for me to sort the dates from most current to latest date. The format is as follows: DD Month YYYY eg(05 … | |
Re: My suggestion is to put the path to the image in the database. eg [url]http://www.[name].com/images/cat_image.jpg[/url] and then echo it inside an image tag. |
The End.