Everything posted by Hobgoblin11
-
Sylvawarrior's Signature Shop!{SSS}
Indeed! Thats awesome!
-
Rs sounds disappeared
Turn your speakers up : Have you tried using a different sound output (i.e. headphones as opposed to speakers). Tried using a different audio output socket? Is it JUST RS sound that is out, do all the other sounds on your PC work? If it's all out, you may have fried your soundcard somehow. Other than that, I'm all out. Is your Java up to date?
-
favorite quote?
- Creating a website in Dreamweaver using MySQL and PHP
No, a user will only be allowed to upload a single image.- Using SD Cards to Save GameCube Games
http://en.wikipedia.org/wiki/Wii#Backward_compatibility- My "Printscreen" button doesn't work.
Have you tried opening photoshop before you press printscreen? For me, photoshop sometimes doesn't import the clipboard when you open it, so have it open before you take the shot. Oh, and I'd try removing the chewing gum that's wedging it down too, that doesn't help :- Creating a website in Dreamweaver using MySQL and PHP
I got my upload routine working perfectly, but i think I might have made a bit of a cockup with it. I followed a tutorial that explained how to upload images into a folder on the server. After doing this I then wrote a routine that inserted the location of that image into the users' row in the database, so that there is a way of identifying which image the user uploaded. However, when I come to display the image, all i can find are tutorials that explain how to display images that are stored in a blob field in the database. Should I have uploaded the image to the database? If the way I've done it is OK, how do I display the image?- Creating a website in Dreamweaver using MySQL and PHP
That saves a lot of wasted work, cheers!- Creating a website in Dreamweaver using MySQL and PHP
Right you are. I've changed my scripts to run off one table. On my userinfo form, I've included an upload image routine, so that each user can upload a picture. Part of the idea of the site is to display a lot of thumbnails on one page. To do this, I was initially going to user the uploaded images and resize them on the same page that they were displayed on, but then I wondered if that would put unnecessary strain on the server? Would it be better to resize the image and upload a thumbnail of it at the same time as I uploaded the larger image? If it would be better to resize the image and upload it when I upload the main image, I need a bit of help. My main upload script runs from a form, and I can't figure out how to resize the image and upload a resized version of it at the same time. Thanks a lot for your help.- Creating a website in Dreamweaver using MySQL and PHP
Gotcha!! Used that several times today, cheers :thumbsup: I'm trying to give my login script another condition at the moment. It currently stands at this: if (isset($_SESSION['PrevUrl']) && false) $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];} header("Location: " . $MM_redirectLoginSuccess ); } else { header("Location: ". $MM_redirectLoginFailed ); } ,which was written by Dreamweaver. However, I want it to take into account a second condition: if login succeeds and an entry appears in the table 'userinfo' with the same ID as the session variable 'User_ID', then I want it to redirect to 'profile.php' instead, but if there is no entry in the table, I want it to run the login script as usual. I hope this is clear enough, I can't think of how else to explain it. Basically it is so that if a user logs in for the first time and hasn't set their userinfo, it presents them with the page with the form to do that, but if they have set there userinfo, it will redirect them to profile.php. I've been messing around for a few hours now but with no joy. Anything I try seems to either screw up the login script so login fails all the time, or produce an error.- Sylvawarrior's Signature Shop!{SSS}
Wow, that animated one is hawt! Try extending it though - so put in the same frames again, just in the opposite order so it scrolls left then right. Would make it look smoother. After that you can work one doing one of those baby's for me :lol:- Creating a website in Dreamweaver using MySQL and PHP
<?php $to = $email; //define the subject of the email $subject = 'TheBigYearbook Confirmation Link'; //define the message to be sent. Each line should be separated with \n $message="Your Confirmation link \r\n"; $message.="Click on this link to activate your account \r\n"; $message.="http://www.yourweb.com/confirm.php?passkey=$confirm_code"; //define the headers we want passed. Note that they are separated with \r\n $headers = "From: [email protected]\r\nReply-To: [email protected]"; //send the email $mail_sent = @mail( $to, $subject, $message, $headers ); ?> There's my email routine, as I said, I can't see anything wrong with it but the email just isn't sending. $email is taken from the script above. No, I've realised that there is a difference obviously, but I've generally found out which one to use by trial and error! If you could explain it that would be great. Cheers- Creating a website in Dreamweaver using MySQL and PHP
I thought about that, but then thought that if someone (user1) created and activated their account but then left before filling out userinfo, then someone else (user2) could come along and create an account, fill out the userinfo, and their userinfo would be given the User_Ref that User1 should have had, so the userid's would be out of sync. I think Ive got it sorted now though, I managed to create a session variable in the end (by defining 'textfield' as $loginuser and then entering $loginuser in the sql query), and now when the person enters their userinfo on the next page, it writes the session variable to the userinfo database. I've explained that in a confusing way but anyhoos, its sorted and it works!!! Regarding the email, I've done what you suggested but it still doesn't send. Would it be helpful if I posted the code so you could have a look and see if anything's awry? Thanks again to you and your seemingly endless knowledge of PHP :-P- Creating a website in Dreamweaver using MySQL and PHP
OK Clare, I think I understand that. I'm trying to find a way to link tables - I've read about foreign keys and they seem to be the way to do it, but I'm not sure how to go about it. PHPMyAdmin doesn't appear to be able to set foreign keys and several places I've seen that foreign keys can only be set in InnoDB tables. What I'm trying to do is this: I have a registration page set-up, after quite a lot of work, that inserts a users email address (after piecing it together from a user-entered email prefix and an email domain taken from a drop down menu),their name and their encrypted password into a table called 'users', and also an encrypted, random confirmation code. It checks their email to ensure it is a unique entry (as this is what will be used to login), and emails them a confirmation link with the confirmation code as part of the URL, checks the URL code against the confirmation code in the database and if they match, it transfers all their information into a table called 'registered_users', deleting the entry from 'users', and sends them to 'userprofile.php' I also have a login page that works properly, checking their username against the encrypted password, and if they match, it logs them in. So, thats what I have so far. I've got a couple of questions though: 1. Should the script send the email if it is being run off localhost? I'm assuming not, but I just wanted to check. Is there any way of testing to see if the email actually gets sent, or can you only do that when it is hosted on a remote server? From what I can tell, it looks like it should work, but I'd like to check it, obviously. 2. I now want to create a page which allows the user to enter information about themselves into a table called 'userinfo'. However, I want this information to be linked to their login information in 'registered_users', so that the two records are associated with each other. How can i do this, and if it involves a foreign key, how do i set it? 3. I am currently trying to set a session variable in the login screen (in addition to the 'Usename' session variable), that holds the user_ID of the user that logs in. This is what I have so far (Username session variable has been set): $Query = ("SELECT id FROM registered_users WHERE email='textfield'"); $Result_ID = mysql_query ($Query, $Conn); while ($list = mysql_fetch_array($Result_ID)) { $User_ID = "{$list['id']} "; } $_SESSION['User_ID'] = $User_ID; When I echo the session variable User_ID on the next page however, it comes up blank. After playing around a little, it seems that it is looking for 'textfield' in the actual database, rather than taking the user-entered value from the login form. How can I ask it to take the user-entered value rather than the literal term 'textfield'? Thanks so much for all your help so far.- Creating a website in Dreamweaver using MySQL and PHP
Gotcha, so write something like: $quantity = $_POST['quantity']; $item = $_POST['item']; at the top, and then whenever I want to display that value, use the variable: echo $product; or echo $item; Is that what you mean? Going back to what you said about stripping the tags on the previous page, presumably it is possible to strip tags from a POST command? For example, taking a user-entered value from a form and posting it to the database whilst stripping the tags? I don't know whether you would need to include it in the variable, like this: $quantity = $_POST strip_tags['quantity'] Which just seems to create an error, or whether you define the variable as usual and then strip the tags when you run the variable, e.g.: $quantity = $_POST['quantity'] strip_tags $quantity but this creates an error as well (except the error is where the variable was run, not where it was defined). Any ideas?- Creating a website in Dreamweaver using MySQL and PHP
I think I might have misled you on my last post - I realise that you don't create pages using PHP as a scripting language, PHP is a script which can be run inside a HTML page to change the data displayed on the HTML page that is shown to the browser, correct? Ta, I worked through something like that this morning, covering the basics, arrays, loops, and variables. Some of it went over my head, but that one explained some parts clearer. I'm curious as to whether a 'POST' can be given by two values. For example, if you had two fields in a table and wanted to combine them to create a single output. I know the usual POST script would be: $quantity = $_POST['quantity']; but could you do this? $quantity = $_POST['quantity'.'item'];- Creating a website in Dreamweaver using MySQL and PHP
Lol, clearly there is some uncertainty over which is best for beginners. I think I'm going to try and learn both - learning the principles behind PHP, but learning how to do it on Dreamweaver too, 'just in case'. Dreamweaver seems to write PHP a lot differently to the way most of the tutorials are showing me, is that to be expected? I've got the hang of creating tables where users can enter in their details to register on the site, and sending that data to my 'users' table in the database. I can also create a login page (but only on Dreamweaver, I've not managed to do that in PHP yet). I can't figure out what to do with it next - I want to create a kind of 'user profile' page, where the user can enter their own personal details into a form, but how do I link the info they enter to that specific user?- Rate my dolphin.
Lol, gotcha. Yes, I guess it will be pretty tricky to realistically shade the water, and not make it seem too 'monotone' and boring. I'm no expert, but if you start with the white wave crests and work 'down' the wave, going from lighter to darker blue at the wave trough, that may be a way forwards. I'm possibly spouting complete rubbish though, you'd have to ask Aperson or someone :-P- Views on this verse I wrote?[RAP]
You ask for people's views and then shoot down the very first person to comment on it? :-s It's creative, I'll give yer that. Not really my 'thing', but from a musical point of view, shouldn't the phrases at least have the same number of syllables? It's easier to read lyrics if you insert commas after the words that ryhme - it just shows where the phrase begins and ends.- Rate my dolphin.
Makings of a pixel sig? Looks like it could be really nice, whats the idea behind it? As in, is it 'just' a dolphin or are you putting other stuff with it? Can't wait to see it fully rendered, 6/10 atm, good, realistic shape.- I need a Club logo.
Perhaps someone could try a 3D render of the logo? I was going to try but then remembered I only have Truespace (which is AWFUL). Just an idea, perhaps something that could be replicated in real life (i.e. a 3D logo outside)- help with photo manipulation please
Ta-da! http://img123.imageshack.us/img123/2382/mergeun4.jpg Are you sure that render is the one you want? It looks a bit out of proportion to me.- monitor problems
I had this problem with my LCD screen, turned out the power cable had given up the ghost and kept shorting out. Try replacing the cable if it is a detachable one, otherwise, no idea, sorry.- Creating a website in Dreamweaver using MySQL and PHP
Now that explains a LOT clare, thanks!! I'm finding with a lot of these things that secuirty seems to be a really big issue. Especially on the sign-up front, half the code is to submit the information to the right place on the server and the rest of it is spent stripping it down of spaces and tags, and making sure people can't inject SQL. That site is really good Rcty, some of it is way over my head atm and I don't seem to be able to make anything other than the set examples they give work (e.g., if the give an example of a sign-up process involving id, username and password, I'm struggling to add in an email field), but I'll get there in the end! Is it worth buying a Dreamweaver book/getting one out of the library? If so, any tips on which to get?- How do you like your music?
I'd agree to an extent How2PK, but I do both really. I don't like to sit in silence unless I'm struggling to comprehend something, but I often find that I can concentrate better when I'm listening to soft music, even reading. A lot of my friends look at me incredulously when I read/work with headphones in, but I find it more conducive to a focused state of mind that listening to the general babble of a classroom full of people. But like I said, it cuts both ways. I feel, like you, that not enough people really take the time to listen to music properly and appreciate it's true worth. While I work to music, I will often just lie and listen to stuff like Pink Floyd, for example, where there are so many little bits of absolute musical perfection that you could listen to their music for years without getting bored. Ditto with some kinds of more classical music, I'm starting to get really into 'New-Age piano' music at the moment (if you like that kind of thing, look up Jon Schmidt - not very well known, but the music he plays is breathtaking), they are often listened to as background music, but if you listen intimately, you realise the endless mounds of absolute genius that you have been missing, by not giving it your full attention. Not quite sure how I managed to spout that load of gubbins from a discussion about speakers, but you brought up the topic so I ran with it! - Creating a website in Dreamweaver using MySQL and PHP
Important Information
By using this site, you agree to our Terms of Use.