User Profile

Collapse

Profile Sidebar

Collapse
mlevit
mlevit
Last Activity: Mar 19 '09, 08:34 PM
Joined: Jun 4 '07
Location: Melbourne, Australia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mlevit
    replied to Trying to upload file to MySQL, file not found
    in PHP
    Fair enough. I've removed that part of the if statement but it still doesn't pass the

    $_FILES['form_data'][’size’] > 0

    part. Can anyone recommend me an upload script they actually know works?
    See more | Go to post

    Leave a comment:


  • mlevit
    replied to Trying to upload file to MySQL, file not found
    in PHP
    Ok I've updated my code, still nothing.

    Code:
    <form action="members.php" method="post" enctype="multipart/form-data">
    										Report Upload:<input type="file" name="form_data" id="form_data" size="30" />
    										<input type="hidden" name="MAX_FILE_SIZE" value="1000000"> 
    										<input type="hidden"
    ...
    See more | Go to post

    Leave a comment:


  • mlevit
    started a topic Trying to upload file to MySQL, file not found
    in PHP

    Trying to upload file to MySQL, file not found

    I'm trying to upload a file. I use to get the fread(): supplied argument is not a valid stream resource error, but then I placed the code in an if statement with file_exists.

    The problem is, the if statement never gets executed.

    Code:
    if ($_POST)
    	{
    		include ('scripts/db_connect.php');
    		
    		$reviewId = $_POST['review_id'];
    		$form_data = $_POST['form_data'];
    		
    		if (file_exists($form_data))
    ...
    See more | Go to post

  • mlevit
    started a topic Adding task/events to Outlook from Access

    Adding task/events to Outlook from Access

    Hi,

    I was just wondering if anyone had some information/code for using Access to create new tasks/events in Outlook?

    I know VB behind Access has the Microsoft Outlook library which I can reference just like I have done with Word.

    Any help would be appreciated.

    Thanks
    See more | Go to post

  • mlevit
    replied to Filling in Word document with Access values
    The bookmark property is the name of the Form Field in Office 2003, but I can't see that same property in Office 2007.

    When I add the Form Fields to my Word document, I can set their Title, but I'm not sure if that is their name that I would use in .FormFields("du eDateTem").Resu lt = DateDueToClient .Value.

    I know there is a comment on the tutorial: "Hi is the office 2007 version avaliable yet? If so where...
    See more | Go to post

    Leave a comment:


  • mlevit
    replied to Filling in Word document with Access values
    Ok I've tried moving the lines as you recommended but nothing. The Word document opens but none of the fields that I have in the Word document get filled in.

    Maybe you could try doing the tutorial yourself quickly and see if it works for you?
    See more | Go to post

    Leave a comment:


  • mlevit
    replied to Filling in Word document with Access values
    Well the document never appeared on the screen (but now does after i inserted appWord.visible = True), so I'm not sure if it ever filled the data from Access (but I don't think it did).

    The Word document opens but the fields that I want filled in with data from Access do not get filled in. I'll try your suggestion when I get home from work.

    Thanks...
    See more | Go to post

    Leave a comment:


  • mlevit
    replied to Filling in Word document with Access values
    Thanks man, that worked. But now it's not actually filling in the values from access.

    Any ideas?...
    See more | Go to post

    Leave a comment:


  • mlevit
    replied to Filling in Word document with Access values
    The code is under a button and everything is fine. The file is in the right place and all the code gets executed, but this code was written to use Office 2003 and it doesn't seem to work completely with Office 2007.

    Like I said above, when the code executes, the WINWORD.exe process runs in Task Manager, but the actual document does not appear in the foreground.

    I am just wondering if anyone knows how to fix the problem...
    See more | Go to post

    Leave a comment:


  • mlevit
    started a topic Filling in Word document with Access values

    Filling in Word document with Access values

    Hi,

    I've found a tutorial that shows you how to fill in Word documents with values from Access

    Code:
    'Print customer slip for current customer.
    Dim appWord As Word.Application
    Dim doc As Word.Document
    'Avoid error 429, when Word isn't open.
    On Error Resume Next
    Err.Clear
    'Set appWord object variable to running instance of Word.
    Set appWord = GetObject(, "Word.Application")
    ...
    See more | Go to post

  • mlevit
    started a topic Form contents dissapeared

    Form contents dissapeared

    Hi,

    I've been working on a form in Access using the tab controls. Everything was working fine and then suddenly the next time I checked what the form looks like in the normal view the tab control doesn't appear there anymore. This is the second time this has happened.



    Does anyone know what the problem could be? I haven't touched any of the visibility settings for any part of the page.

    ...
    See more | Go to post

  • Yeah it's a tricky one. Thank for trying to look it up. I know it can be done because there are programs that do it.

    It should also be able to be done through Hibernation like TV Tuner cards do. You can set a program to be recorded at a certain time, and the computer will be placed into hibernation mode and will wake at the of the recording.

    I just haven't been able to find any code for it. I might have to contact one...
    See more | Go to post

    Leave a comment:


  • Putting the computer to sleep and having it automatically wake

    Hi,

    I currently have a VB program that uses the Shell command to shut it down. I use shutdown -f to shut the computer down.

    I was wondering if anyone knows what I can use to put the computer to sleep (S3 mode) and at the same set it to wake up at a certain time?

    I know there are programs that can do that but I need to a command that I can use in VB using Shell.

    Thanks
    See more | Go to post

  • mlevit
    replied to Automatic emails
    in PHP
    But what happens if the auction closes without any bids on it. Then there has been no user input and therefore no action has been initiated by the user. And with cron jobs, that would require you to set the date/time for the actions to take place, but again in terms of the auction example, auctions end at any time and straight after they have ended the emails are sent out by the website.

    I just can't wrap my mind around this....
    See more | Go to post

    Leave a comment:


  • mlevit
    started a topic Automatic emails
    in PHP

    Automatic emails

    Hey guys,

    I don't have an issue right now but I am starting a trading website similar to eBay and I cannot get my head around one thing. How do you code so that emails are sent out automatically without any user input/events.

    Like when an eBay auction ends, you the seller would receive an email telling you that it ended. Or if say you have a yearly subscription to something and it's about to end, an email would be sent...
    See more | Go to post

  • That was perfect mate. Thanks a lot for your help, fixed all my problems.
    See more | Go to post

    Leave a comment:


  • Cannot modify header information - headers already sent by

    I've been getting this error on my website since I first starting making up but I didn't know how to fix it, so I just ended up using HTML redirects to other pages instead of Header("Locatio n:...").

    Now I'm trying to retrieve uploaded files from my SQL database and going by the little tutorial from About.com the following file should download my uploaded file.

    I get the header message because of "Header(...
    See more | Go to post

  • mlevit
    replied to Drop Down Menu not posting values
    in PHP
    OMG I don't know how I missed that :) I'm amazed it never came up as an error in the browser.

    Any ways, thanks for the help....
    See more | Go to post

    Leave a comment:


  • mlevit
    started a topic Drop Down Menu not posting values
    in PHP

    Drop Down Menu not posting values

    Hey all,

    This is really simple but I just can't get it work. I have a drop down menu, you select your filter which will repost to the same page and grab that filter which will be used for an SQL query.

    [PHP] $filter = $_POST['selectedFilter '];

    if ($filter == "" || $filter == "All")
    {
    $query = "SELECT * FROM orders WHERE orderStatus = 'New'";
    }...
    See more | Go to post

  • mlevit
    replied to Cookie always return NULL
    Just found out, the code works on:

    http://games.swirve.co m/utopia/login.htm

    but not on:

    http://u1.swirve.com/logout.cgi?

    Anyone know the reason why this might be?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...