Jump to content

Love2c0de

Members
  • Posts

    364
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Love2c0de

  1. Have you got a live version? Would be a lot easier to debug. You see the text 'TIM 1', what element is that? If it's a <p> element, try giving it a margin-top: 0px; because <p> elements have a default margin. Kind regards, L2c.
  2. You've not actually saved the return value of move_uploaded_file(). Change this: move_uploaded_file($_FILES["file"]["tmp_name"], $path); To this: $moved = move_uploaded_file($_FILES["file"]["tmp_name"], $path); You need to do what requinix said because had you turned on error reporting, it probably would have give you an error of 'Undefined variable $moved'. Hope this helps, Regards, L2c.
  3. Hey dude, Take a look at this website right here: http://www.wpdfd.com...eadcentre4.html See if you can have a go at integrating these styles into your own. Hope it helps. Let me know how you get on. Kind regards, Lab.
  4. dang theres more to Excel than I anticipated VLOOKUP >:@

  5. Thank you for your replies. I know it seems redundant to create a clock and display it on a webpage and I completely agree with you. I just wanted to add some content to my left sidebar on my website and was struggling for ideas! Thanks for your advice, I'll have a look into those techniques. Regards, L2c.
  6. To create a live updating clock with PHP? Are there variations depending on where a server is hosted which can make it inaccurate for a user? For example is someone lives in east USA, they may be connected to a server in mid america which would create a time difference.... I live in south UK and have been connected to a server in Scotland before so that distance across america could cause a time difference for someone. I'd rather use a serverside language rather than javascript but I know a Javascript clock is based on users local time so it will be accurate. I've searched google and php.net and can't seem to find anything relating to PHP timers/clocks...... Thank you for your thoughts. Kind regards, L2c.
  7. Oh sorry. Try this: $subject = "Enquiry number: {$_GET['pageSubject']}"; echo $subject; You may want to check and see if it is set first by doing this: if(isset($_GET['pageSubject'])) { $subject = "Enquiry number: {$_GET['pageSubject']}"; echo $subject; } else { //do something here. } Does this help? Regards, L2c.
  8. Try this: $subject = "Enquiry about {$pageSubject}"; echo $subject; Although it should print it without the curly braces? It's only single quotes which print the variable name rather than the value. Regards, L2c.
  9. Hey dude, I've done this before. There are a number of ways although I've only done it with PHP. Note sure if there is another way to create breadcrumbs. Can you post your code and show me what you have done so far? Kind regards, L2c.
  10. Can you post your code please? Regards, L2c.
  11. Active only executes during the time that the mouse button is pressed down. For example, try this example and hold your mouse down on the link, you see that it sets the background to yellow. <!DOCTYPE html> <html> <head> <style> a:active { background-color:yellow; } </style> </head> <body> <a href="http://www.w3schools.com">w3schools.com</a> <a href="http://www.wikipedia.org">wikipedia.org</a> <p><b>Note:</b> The :active selector styles the active link.</p> </body> </html> I get the feeling you mean that if you go to a certain page, while you are on that page, the link will have a different style so the user can easily determine the page he's on. Is that right? Regards, L2c
  12. Hey dude, give this a try: <?php $_GET['q'] = (isset($_GET['q'])) ? $_GET['q'] : "some_default_value"; $rss->load("http://wordpress.org/{$_GET['q']}/feeds/"); ?> Let me know how you get on. Regards, L2c.
  13. Thank you for your reply. i'll give that a read and see how I get on. Kind regards, L2c.
  14. woop woop and another week

  15. Sorry if this is not the correct sub-forum, I just went through most sections and didn't really know the best place. I want to learn object oriented php but can't seem to find any resources which are written in good english. I was wondering if someone knows of any reliable resources for learning pdo? I've already looked on php.net but I wanted more of a tutorial based website written for novices. I hope someone can throw me a few links. Kind regards, L2c
  16. Got a weeks trial at a web development company starting monday. Doing some data inputting. Absolutely cacking it! :o

  17. Hey bud, you can give this a try: <?php $textlevel= "Intermédio"; $words = str_word_count($textlevel,0,"éç"); if($words == 2) { $textlevel = str_replace("Intermédio avançado","high_intermediate",$textlevel); } else { $textlevel = str_replace("Intermédio","intermediate",$textlevel); } echo $textlevel; ?> Just wrote it works pretty well. EDIT: LOL just do what jessica said. Hope this helps you, Regards, L2c.
  18. Can you explain a little more about the problem, your question is very vague. The image is displaying in the top left corner already. You left out the closing '/>' on your <img> tag and also some of the <input tags. I've added double quotes around your HTML attribute values also. I updated your code: <div id="logo"><img src="logo.jpg" alt="yourImg" /></div> <div id="login">login page</div> <table> <tr> <td >Name</td> <td width><input type="text" name="myname"></td> </tr> <tr> <td>Age</td> <td><input type="text" name="myage"></td> </tr> <tr> <td> </td> <td><input type="submit" value="submit" /><input name="Reset" type="reset" value="Reset" /></td> </tr> </table> </div> Also, there is an extra closing div </div> tag, but not opening div. Post your full code please Regards, L2c.
  19. You are using the assignment operator '=' instead of the comparison operator '==' in the second if statement, therefore the if statement interprets the 1 as a TRUE value and will always execute the if statement. Just change the second if to ==. Kind regards, L2c
  20. After sending each email, do this: $message = ""; This will clear the $message variable and set it to an empty string. The reason it was sending the emails was because you are concatenating the $message variable all the way through the script so it's literally just adding the other email to the end of the string for the first email. Regards, L2c.
  21. You can use double or single quotes I think, but you definitely need to use one of them. See my edited code above, I just tested it and it returned an error when I used no quotes whatsoever. Is your error reporting turned on? Regards, L2c.
  22. I'm not the best at debugging php code, but just as a rule of thumb I would stick your $_POST indexes in single quotes. $_POST['name']; EDIT: I think you do have to explicitly set the double or single quotes and its returning an undefined constant error That's another great debugging tool - var_dump(). Tells you the type and value of a variable and key/values of arrays. hope it helps. Regards, L2c
  23. http://www.php.net This is the official site. There is all the documentation you need and a manual. Hope it helps, Regards, L2c.
  24. You can only apply id's to a single element on any given page. For what you said there, if you have multiple div's which have the same styles (i presume so because you said you were using the id multiple times), you should be giving them a class. It works in pretty much the same way. For example, I query products from a database, for every row that is found, it prints a div with the information inside for each individual product. I have styled the div's identical so I decided to give the <div> a class when writing the php. Not sure if you're bothered about this but it won't pass validation neither. Regards, L2c
  25. Awesome I got it working. I'll carry on reading those links. Very interesting. Kind regards, L2c.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.