Jump to content

droidus

Members
  • Posts

    160
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

droidus's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I am trying to format my date that I retrieve from a database. here is my code: $date = 1346078003; echo $date->format('Y-m-d H:i:s');
  2. ok; anything else that sticks out as to why it wouldn't work?
  3. but i have this defined: $filesCount = count($file);
  4. // If the folder is not in the default position, we must place it in the right spot for ($i = 0; $i<$filesCount; $i++) { if($filesCount[$i] != null) { if($folderDestination!="default") { if (file_exists("users/" . $_SESSION['user'] . "/uploads/" . $folderDestination . "/" . $_FILES["file"]["name"][$i])) { echo $_FILES["file"]["name"][$i] . " already exists.<br>"; } else { move_uploaded_file($_FILES["file"]["tmp_name"][$i], "users/" . $_SESSION['user'] . "/uploads/" . $folderDestination . "/" . $_FILES["file"]["name"][$i]); echo "Your file has been successfully uploaded, and you can now view it right away!<br><a href='users/' . $_SESSION[user] .'/uploads/' . $folderDestination . '/' . $_FILES[file][name][$i]Click here to go to your file!"; } } else { // If else, we put it in the uploads folder if (file_exists("users/" . $_SESSION['user'] . "/uploads/" . $_FILES["file"]["name"][$i])) { echo $_FILES["file"]["name"][$i] . " already exists.<br>"; } else { move_uploaded_file($_FILES["file"]["tmp_name"][$i], "users/" . $_SESSION['user'] . "/uploads/" . $_FILES["file"]["name"][$i]); echo "Your file has been successfully uploaded, and you can now view it right away!<br><a href='users/$_SESSION[user] /uploads/$_FILES[file][name][$i]' target='_blank'>Click here to go to your file</a>!"; } } } else { echo "Please select some files to upload first!"; } }
  5. i am trying to check if the array element (which would be a file) is null or not. when i run it, uploading one file, it says "Please select some files to upload first!" X 3. what am i doing wrong? my code: http://pastebin.com/m0k3fEd2
  6. oh, ok, it does work. sorry
  7. http://pastebin.com/ufbuWukM
  8. i am using an echo statement though, so i had to change the code around: echo " $checked = ($IPCheck) ? \"checked='checked' \"; : ''; echo \"<input type='checkbox' name='ip_automatic_login' id='ip_automatic_login' value='1' {$checked}/>\"; "; all i get though, is this: ? = (1) ? "checked='checked' "; : ''; echo "";
  9. how do i echo "checked=checked" for a checkbox? here is what i have: <input type='checkbox' name='ip_automatic_login' id='ip_automatic_login' value='1' if($IPCheck == true) {/"checked=checked/" } /> this code will be echoed!
  10. i have an issue with my tabs container not being properly placed in the page content div holder. here is an image of what it looks like. how can i change this, so it works? code: <div style="margin-left:auto; margin-right:auto; background-color:#FF9; padding:15px; width:75%;"> <p> <ul id="menu"> <li class="active"><a href="#description">Inbox</a></li> <li><a href="#usage">Sent</a></li> <li><a href="#download">Compose</a></li> </ul> <div id="description" class="content"> <h2>Inbox</h2> </div> <div id="usage" class="content"> <h2>Tab Two</h2> </div> <div id="download" class="content"> <h2>Compose</h2> <a href="http://mywebsite.com/uploader/compose.php">Compose a message here</a>.</div> <script type="text/javascript"> $(document).ready(function () { $('#menu').tabify(); }); // ]]> </script> <hr /> <span style="font-size:12px;">Copyright 2011 All Rights Reserved. Contact Us. Using this service, you agree to the <a href="#">Terms and Conditions</a>. V 1.0.</span> </div> is it more of a css issue? thanks in advance. [attachment deleted by admin]
  11. where can i find a good tutorial, or code online, that will give me this result: http://webdesign14.com/wp-content/uploads/2011/01/post21_23.jpg
  12. droidus

    tabs

    hm, so how else can i go about this? i want a tab for inbox, sent, and logout.
  13. droidus

    tabs

    i have some tabs, and they use to work. http://pastebin.com/bddmBJYK it use to print out the tabs, but when i put php code into it, the tabs don't show up at all.
×
×
  • 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.