Jump to content

john010117

Members
  • Posts

    492
  • Joined

  • Last visited

    Never

Everything posted by john010117

  1. Yep, it's echoing out the correct values. Oh, god. How could I have missed this? I have put it in the wrong order. Nevermind. Thanks for helping me out. I appreciate it.
  2. If it doesn't work on free hosting servers, it will never work until they decide to activate that feature (which is very rare). I'm sorry about this, but it's their decision on what is allowed on their servers and what is not.
  3. You're right. None of them are being retrieved. So does that mean there's something wrong with my MySQL query?
  4. I believe this is my first time dealing with mysql_result(), and it's giving me an error. The part of the code: <?php $b_query = "SELECT * FROM $block_tbl_name WHERE user_select = '$session_uid' AND user = '$u' "; $b_result = mysql_query($b_query) OR DIE (mysql_error()); $b_sql_result = mysql_result($b_result, 0); ?> Even though I was executing the query, I needed the result where user = '$session_uid' AND user_select = '$u'. I searched google, but a lot of other sites where showing the error, and there weren't any helpful information on how to actually fix it. BTW, I have 3 rows in that table. How would I solve this problem?
  5. I looked at it with FF2, and I must say, the layout's very smooth and clean. The color scheme is great. But the major downside is iframes. Search engines hate 'em. But other than that, the "contact us" link at the top points to index.php (which shouldn't), and some of the links to the right all point to index.php.
  6. That's image mapping, and it's HTML. I don't know too much about image mapping, though.
  7. Never mind. I have to put the "id" attribute in the textarea. Thanks for that.
  8. For some reason, it's not working. It doesn't "select" the field automatically (and yes, my browser has Javascript enabled).
  9. So it'll be like: <body bgcolor="#000000" onload="document.getElementById('input1').focus();"> ? Thanks. I'll try that out.
  10. First of all, I don't know what the thing is called that blinks inside a textarea. So if you could tell me what the name of that is, that'll be great. I'll called it a cursor for now. Here's the problem. Let's say I had a simple textarea with some values already filled in. Ex: Code: <textarea name="input1" rows="15" cols="75"> <!-- Cursor should go here --> ----- Original Message ----- From: blah To: Blah Date: Blah Blah Some Random Text </textarea> So, whenever a page loads, I need the "cursor" to be automatically at the beginning of the textarea (where "<!-- Cursor should go here -->" is). How would I go about doing that either in just HTML or Javascript?
  11. foreach() PHP MySQL Ever heard of Google?
  12. First of all, you've posted in the wrong section. Second of all, you need to sign up for the main website to be able to use the chat room.
  13. Make the change I showed you, then put the form at the top of the script <?php error_reporting(E_ALL); if(!isset($_POST['Submit'])) { // Form goes here } else { // Upload script goes here // Then the MySQL stuff goes here } ?>
  14. If you're expecting us to make the script for you, you've posted in the wrong section. Post in the "Freelancers" section. But, if you decide you want to actually learn PHP and try to make a script yourself, we can gladly help you along the way.
  15. Where exactly is your /images/gallery directory relative to the file with your script?
  16. Your $filePath = '..images/gallery/' . $randName . '.' . $ext; is not valid. Try $filePath = '../images/gallery/' . $randName . '.' . $ext;
  17. Yep. Even though it uses slightly more resources, it's more secure.
  18. Put <?php error_reporting(E_ALL ^ E_NOTICE); ?> at the very top of the page. It will get rid of the error.
  19. #1 - 3 should be all stored in the database. #4 should create a cookie. Use less cookies as possible, as they are easy to edit.
  20. Eh, I use Programmers Notepad 2. I like it's simplicity. Also, notepad ++ and Notepad 2 are the nice, free, simple ones (with syntax highlighting, of course).
  21. But then YOU should post in the RIGHT forum.
  22. You should post in the "Freelancers" area then. Don't expect us to make you one here.
  23. I made this function a while ago. <?php function date_time_sep($date_time) { global $res_date,$res_time; $date = substr($date_time, -19, 10); $time = substr($date_time, -8, 5); // Date $year = substr($date, 0,4); $month = substr($date, 5, 2); $day = substr($date, 8, 2); $res_date = date("D M jS, Y", mktime(0, 0, 0, $month, $day, $year)); // Time $time_format = $time . ' ' . strtolower(strftime("%p")); $res_time = $time_format; } ?> Use $res_date to display the date and $res_time to display the time.
×
×
  • 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.