chrishea 182 Nearly a Posting Virtuoso

You need to learn more about HTML forms

Click here to see more about how to retrieve the data from the form in your php program.

chrishea 182 Nearly a Posting Virtuoso

Nice sentiments but it looks like a pretty blatant attempt to get a link (which are no-follow anyway so what's the point?).

chrishea 182 Nearly a Posting Virtuoso

Black Screen of Death

Your boot volume problem may be leading to the other problem so you may not be able to clear this up unless the boot problem is corrected (first?).

There is more info out there on this. An example below:
http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/5751bfc9-bfc9-4751-b5d9-d5818905a8f5

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Is this supposed to represent a solution or a problem?

chrishea 182 Nearly a Posting Virtuoso

Some laptops can accommodate a second drive but most can't. You need to check the specs on your laptop (or undo some screws) to see if it has a second HDD bay.

Your choices are to go for an external drive, replace your internal drive with a larger one or maybe use some large USB sticks depending on how much additional space you need. You could put in a new drive, load up XP or Win 7 (either one is better than Vista - I've been there) or Vista if you must, then get an external enclosure and use your old drive as an extra drive (also makes the conversion easier). With a faster and larger drive and a better OS, your machine will seem like new.

I believe that Western Digital and Seagate are the largest and generally, their prices and quality is similar. It's best to check out specific drives before you buy as some models have had problems.

For RAM, again you need to check the specs for the machine. Under 32 bit systems I believe that you are generally limited to 1 gig of RAM. Under 64-bit mode you can go higher.

chrishea 182 Nearly a Posting Virtuoso

I am using AVG with Win 7 64-bit Home Premium on an ASUS laptop (2100mhz dual core). I've been running it for almost a year on this system and I haven't had any obvious problems. The system starts a bit slow compared to what it was at the start but I have a lot of stuff on here so I can't specifically point a finger at AVG. Besides Ultimate vs Home Premium there might be something else different that results in mine working and yours not. AVG still does the job for me.

chrishea 182 Nearly a Posting Virtuoso

If you are using PayPal, you can use their cart. It doesn't get much simpler than that.

chrishea 182 Nearly a Posting Virtuoso

In the program that processes the form you will still see them as individual fields. When you have an unknown number of fields, the best way to handle it is to have a standard field name followed by an index number (as you are doing). In the receiving program, you can check if the variables exist and then concatenate them before you save them to the database. In this example, I separated the values with commas. That would allow you to explode them to process them as individual fields later. You should do some editing on the incoming fields before you save them. if you use a separator, you'll need to check that it isn't in any of the strings.

$features = "";
$i = 1;

while (isset($_POST[feature$i])) {
      $features .=  $_POST[features$i].","; 
      $i++;
}
epicrevolt commented: Solved my problem, I love you :) +1
chrishea 182 Nearly a Posting Virtuoso

This is an idea that should work and you can do it selectively for the pages that you don't want to cache:

Caching. *IF* this is a caching-issue, just append some timestamp to the
url to prevent caching.
From php:
<a href="detailedview.php?recordid=<?= $recordid ?>&t=<?= microtime() ?>">
recordlink here</a>

I just made up the recordid, I guess you managed that part already.
The addition t=543289765983475 makes sure every url is different each time.
That will prevent retrieving cached records.

As a general reference, this is a pretty good tutorial on caching:
http://www.mnot.net/cache_docs/

chrishea 182 Nearly a Posting Virtuoso

You can't have any output before you use the header.

http://lmgtfy.com/?q=php+headers+already+sent+daniweb

chrishea 182 Nearly a Posting Virtuoso

You can do a simple po-up like the following:

<a href="delete.page?id=1" onclick="return confirm('Are you sure you want to delete?')">Delete</a>

If you want something more complex like a help window, you might want to look at using a JQuery plug-in.

chrishea 182 Nearly a Posting Virtuoso

$_POST is needed when the original form has method=post (which in this case it does). If the form has method=get, then you would need $_GET.

chrishea 182 Nearly a Posting Virtuoso

If you didn't try it already, just press enter with no password and see if it will take that as "no password set". The link below probably reflects what you are already doing but if you are getting to the password step and can't get by it, then you need a different approach.

http://en.kioskea.net/faq/6809-gateway-computers-how-to-reset-to-factory-settings

You can download a Vista recovery "disk" from the website below:
http://neosmart.net/blog/2008/download-windows-vista-x64-recovery-disc/

chrishea 182 Nearly a Posting Virtuoso

This is probably not a real windows dll. I checked on my system (Windows 7 64 bit Home Premium) and there is no such file in Windows/System32. There is an mfc42.dll but no mfc45.dll. What I found with a search seemed to confirm that.

chrishea 182 Nearly a Posting Virtuoso

Doing all of this could take a bit of work. If you want to modify the drop-down just for that session it is easy enough to store the modified /additional values in session variables. If you want it to be permanently modified for that user, then you would need to store the new values in a database in a record for that user. This assumes that you already have a user login and associated database table already set up.

This might go part way towards accepting the modified input:
http://efreedom.com/Question/1-3199746/Updating-Contents-Dropdown-List-Javascript-PHP

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

You don't provide a lot of details but let's assume that you are using PHP to import this data into a MySQL database. Why do you think the date field will be changed? It won't be changed by the PHP code or by MySQL unless you have written the PHP code to do that. If it is changed as it is exported by MSAccess (which doesn't make sense but anything is possible), then you have an MSAccess issue and that doesn't belong in this forum. What sort of code are you asking for, VB code to run under MSAccess or PHP code? Unless you provide a clear description of the issue and what it is you want, you're not likely to get the answer you are looking for.

chrishea 182 Nearly a Posting Virtuoso

First of all, it is only providing a Notice.It isn't a show stopper. The PHP interpreter seems to want a simple definition first. If you add:

$webRoot = "";
$srvRoot = "";

before line 8, the notice goes away.

chrishea 182 Nearly a Posting Virtuoso

Not clear on your problem. Also don't understand why you have chosen to use a header. Why not use:

if (isset($_SESSION['image'])) {
  echo "<img src=".$_SESSION['image'].">";
}
chrishea 182 Nearly a Posting Virtuoso

Apparently, it can be done but it isn't well documented or supported. One site suggested using the Com interface as follows:

$cr=new com("Crystal.CRPE.Application") or die("cannot load cr com");
$rn="/path/to/your/report.rpt";
$rap=$cr->OpenReport($rn);

I believe that the COM interface is strictly Windows so if your are on a Linux server???

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Wow, quite a pile of code. We can't see what is in the files that you are reading in. That could be a source of a problem or not (but probably not at this point). It seems that on line 67 it should have been $var_Ulist = ...

On line 109 you should probably dump the arrays (print_r) and the two variables (with an echo) so you can verify that the data is what you think it is.

Your Else If statements at 120, 127 and so forth will never be executed / true. If the statement at line 113 is true, then the statements immediately following the IF will be executed and it will ignore the else if's. On the other hand, if the IF statement at line 113 is false, then all of the Else If statements will also be false because they have the same condition as the initial IF.

chrishea 182 Nearly a Posting Virtuoso

Have a look at some of the previous posts on the same topic:

http://www.daniweb.com/forums/search13400429.html

chrishea 182 Nearly a Posting Virtuoso

You can't remove it but you should mark it as solved and add any final notes that may make it useful to someone else who has a similar problem. Old posts are there as a reference and can be searched before posting something as a "new" problem.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Your sql file dump doesn't show the database table as having any content. I didn't attempt to debug your code but the first step would be to ensure that you are writing to the db and saving a comment. If it's not there, you can't display it.

chrishea 182 Nearly a Posting Virtuoso

There may be some things you could do with Activex but that would only work in IE. You could do this using a local program (triggered indirectly by the web program) but the user would have to be prepared to download and run that program (or it would need to be installed in advance). That would only work consistently with a closed user group (e.g. employees of the company implementing the solution). If this is going to be used by the public, then there would be a trust issue and that means that many users wouldn't complete the process.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

The php commands to do it all exist, you just need to put together a bit of code.

* Create a directory: mkdir
* Set file permission: chmod

I think that you will need to set a default permission on files that prevents access by other users and change it to allow access by others on an exception basis when the user wants to allow it. If you want to limit that access just to registered users, then you might have to have a group and provide access to the file to the group.

You can see info (pertinent to Linux) here. If you are on a windows server then it will probably be somewhat different.

chrishea 182 Nearly a Posting Virtuoso

Do you have a sample file created in 1.6 format. All of my PDF files seem to be created with older versions.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Your code didn't display properly because you used (php) not (code=php).

Most of the encryption methods used for passwords are not reversible because it makes them more secure. Even with access to the database, you can't determine what the actual password is (except maybe by brute force). The normal approach for a lost password is for you to replace the lost password with a temporary password that you give them (and force them to change on the first login) or, allow them to create a new password to replace the one that was lost.

chrishea 182 Nearly a Posting Virtuoso

You need a loop around the mail statement or if it is always limited to 4 addresses you could just repeat the mail statement 4 times with one addressee in each one.

chrishea 182 Nearly a Posting Virtuoso

If you are doing this for privacy reasons, you could also make all of the addressees BBC's and use yourself as the To.

chrishea 182 Nearly a Posting Virtuoso

I believe that this one is the best for generating PDF's from HTML:

http://html2pdf.fr/en/default

It handles forms and Javascript and pictures and almost anything that you can throw at it.

chrishea 182 Nearly a Posting Virtuoso

It sounds as if you are trying to install each one individually. There are a number of packages that install everything for you. Xampp, Wamp, Uniform Server, EasyPHP. Probably easier to start over using one of these.

chrishea 182 Nearly a Posting Virtuoso

There are a lot of photo albums out there already that are probably fancier than anything you would develop yourself. Coppermine is one. Coppermine creates thumbnails automatically when pictures are uploaded.

There are a bunch of JQuery photo albums as well. Suggest that you take a look at what is available before you do any development.

chrishea 182 Nearly a Posting Virtuoso

What is your objective in "managing" the session. PHP will take care of this for you automatically. If you need to make the session timeout shorter or longer there are values in php.ini that you can change. I'd say that best practice is to leave it alone unless you have a specific need.

chrishea 182 Nearly a Posting Virtuoso

You haven't provided any code so the chances of anyone being able to help you are pretty slim based on your brief definition of the problem.

chrishea 182 Nearly a Posting Virtuoso

For starters, you should have a proper form (Starting with <form>, ending with </form> and including a <input type=submit...>). If you aren't familiar with forms, go to W3schools and look for information there.

Second: Using a form works in two stages. First the form is displayed and the user enters the values and clicks the Enter button. Then, the receiving module (specified in the "action" on the Form statement) is activated and receives the input from the form and takes action on it. The receiving module can be the same one that contains the form (that is the default) but then you need logic in that module to determine if you are at the initial entry stage or if you are processing the input from the form. You can check for one of the variables in the form - you can use the variable created by the <input type=submit...> statement.

In your code, the program doesn't stop after it displays the form variable, it keeps right on going. It then processes the select statement but it doesn't have any conditions so it is going to select all records from the table. You will need a Where clause in the Select statement using the variable received from your form.

I'm not handing you the code but I've given you enough that you can figure it out. If it's too easy you won't learn anything.

chrishea 182 Nearly a Posting Virtuoso

The good news is that it only seems to happen for the corp directory. The root address http://www.lifeline400.com works ok. You need to determine what is different about /corp and change it.

chrishea 182 Nearly a Posting Virtuoso

You probably aren't getting any replies for the following reasons:
1. Many people will think that you want help with a school thesis and aren't interested.
2. This is a pretty specialized topic. If you have purchased the Thesis theme then you should be using the DIY - Thesis support staff and members forum that are included in the purchase.

chrishea 182 Nearly a Posting Virtuoso

If you don't already have a copy of the PHP manual please download a copy and consult it first when you have an issue (as I do).

chrishea 182 Nearly a Posting Virtuoso

This is the standard php email statement but there will have to be more to your script than just this. At a minimum, the variables used in the mail statement need to be set to the required values. With respect to 'safety' have a look at the link below:
http://www.w3schools.com/php/php_secure_mail.asp

chrishea 182 Nearly a Posting Virtuoso

fwrite has a third parameter that is the length to be written.If you don't have a copy of the PHP manual, you should download a copy.

chrishea 182 Nearly a Posting Virtuoso

Do you have anything else running successfully in your Wampp server environment? Make sure something is working before trying this again. This is a general approach that works:

<?PHP

    exec("notepad", $output, $return);
    echo "The command returned $return, and output:\n";

    echo "<br><pre>";
    var_dump($output);
    echo "</pre>";
    
?>

You can use notepad or notepad.exe it will work either way. For notepad, there is no output so the last part isn't needed in that case. To see it work where there is output, use a command like ipconfig in place of notepad.

chrishea 182 Nearly a Posting Virtuoso

There could be a more sophisticated way to check this but a simple way would be to set some session variables in the receiving module equal to your post variables (first time thru). On each call you check the session variables against the $_POST variables and if they are the same, you take no action and optionally issue a warning message.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

You can't have a where clause in an Insert statement. See the format here.