Jump to content

vanyok

Members
  • Posts

    30
  • Joined

  • Last visited

vanyok's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. No way to go without Java ? I'm not familiar with it
  2. Hey guys Sorta new to PHP here but getting better day after day. I have a question that I cant seem to figure out.Lets say I have a login form that asks user for the ID and Password.How do I pass the user name as $_GET so it displays in the address bar but pass the password as $_POST so no one can see what the password is ?Is there another way to go about it ? Possibly encrypt that password in the address bar? ( but I'd need to run SSL for that, right ? )Thank you
  3. vanyok

    Current Time

    justsomeguy, you're awsome, dude, as always
  4. vanyok

    Current Time

    $time() returned 1165945816From reading varios things it seems like I need to create some kind of a timestamp prior to using date()?
  5. vanyok

    Current Time

    This should be simple .. I hope :)Trying to get current system to store it in the DB ( MySQL format). I'm using$date=date("Y-m-d");For some reason $date returns me 0000-00-00 Whyyyyyyyyyy ? Thank you.
  6. vanyok

    Uploading file

    hey, good morning.I have a simple script that uploads the file but I cannot get it to work.. says that " No such file or directory" even though the folder is there and i have CHMOD set to full rights.This is the form:<form enctype="multipart/form-data" method="post" action="ProfileResults.php"><input type="hidden" name="MAX_FILE_SIZE" value="3000"><input type="file" name="picture" size="30"><input type="submit" name="imageSubmit" value="Upload"></form>and here is the upload php file: if ($picture != "") { $path="/pictures/$picture.jpg"; copy($picture, $path) or die("Couldn't Upload the file!"); } else die("Please go back and select a picture to upload");What's wrong ?
  7. vanyok

    hide my files?

    You can disable right click so no one will be able to righ click and save...But then again, some computer savy people will find a way to get to the link through the page source.
  8. Thanks MrAdam, I found what it was. Appearently I forgot to close the <title> tag on that included hdr.php so the browser was concidering the whole thing as one long title.
  9. I'd do what justsomeguy posted. I find it the best way. I usually assign it to the variable. Here:$num=mysql_num_rows($result);if ($num>0){echo "My query returned $num rows";}else{echo "Your query didnt return any results";}
  10. I can't remove session_start()... I mean my my Sessions wont work.
  11. Yup.. thats because I added error_reporting(E_ALL); just right now to see if that will help me figure out what's going on.That warrning means that I'm including another php file that has session_start() function as well but it shouldn't cause a problem, should it ?
  12. Hi guys I'm confused.. very confused and hope that someone will know what's going on. I have a very simple school homework project that's coming up as a blank page. I dont understand why. Here is the script of index.php:<?php session_start();if (!$_SESSION['userEmail'] && !$_SESSION['userPassword']){include 'hdr.php';include 'content/'.$page.'.php';}else{include 'ProfileResults.php';exit;}include 'ftr.php'; ?>it's located at:http://www.shopperstart.com/vanyok/phphomework/group/I tried on 4 different computer and the web site coming up as a blank page in Interenet Explorer but works fine in Firefox. The problem started after I added sessions so I assume that's the problem. Please help.Thank you in advance.
  13. Hey guys, I'm in the process of making my web site and wanted to know...Once I integrate some open source PhP Forum is it possible to make Forums Database a primary web site member Database ? So I could have users log into their accounts, track possible orders etc...Just trying to avoid extra work of creating registration pages, DBs...Also.. would you possiby recommend some good SQL/PHP open source recourses for this ? ( creating member login/pages )
  14. vanyok

    CSS Style sheets

    Anyone can suggest a good web site where I can download various free CSS style sheets templates ?Thank you.oops, sorry, just noticed there is a separeate Forum for CSS
  15. Thank you sir.. I'm a little too new to PhP so excuse my newbiness
×
×
  • Create New...