Search found 6 matches

by scrtagt69
Tue Jul 16, 2002 11:08 am
Forum: PHP - Code
Topic: Comparing a text file to a DB
Replies: 2
Views: 710

Comparing a text file to a DB

I was wondering if this is possible: Compare a row from a table to a row from a text file, and if that row is not in that text file, then delete it from that table, and move it to another one. Say for example I read in a text file and assign the following variables: $fd = fopen ("d:\active.txt&...
by scrtagt69
Mon Jul 08, 2002 12:24 pm
Forum: PHP - Code
Topic: inserting data from text file to DB
Replies: 0
Views: 491

inserting data from text file to DB

I have the following code to read in a text file I have: $fd = fopen ("d:active.txt", "r"); while (!feof ($fd)) { $line= fgets($fd, 4096); } fclose ($fd); $MyArray=explode("|", $line); $fd = fopen ("d:active.txt", "r"); while (!feof...
by scrtagt69
Thu Jun 13, 2002 5:45 pm
Forum: PHP - Code
Topic: How to use hyperlinks to remove data from DB
Replies: 6
Views: 1514

thanks for your help DSM...worked great
by scrtagt69
Thu Jun 13, 2002 5:07 pm
Forum: PHP - Code
Topic: How to use hyperlinks to remove data from DB
Replies: 6
Views: 1514

i did that DSM and this is the error it gave me Warning: Cannot add header information - headers already sent by (output started at D:\php\markcourse.php:29) in D:\php\markcourse.php on line 152 Any clues?? By the way I appreciate the help, you are the only who has even attempted to help with this t...
by scrtagt69
Thu Jun 13, 2002 4:21 pm
Forum: PHP - Code
Topic: How to use hyperlinks to remove data from DB
Replies: 6
Views: 1514

hey dsm, i put this in $refresh_url = "$PHP_SELF?key=$userkey&lastname=$lname&firstname=$fname"; header("Location:$refresh_url"); at the very beginning of my code and it gave me an error that header cant be sent. Its the very first line in my code. Where should I place it??
by scrtagt69
Thu Jun 13, 2002 11:56 am
Forum: PHP - Code
Topic: How to use hyperlinks to remove data from DB
Replies: 6
Views: 1514

How to use hyperlinks to remove data from DB

I have a form which displays one employee record at a time, with different training courses and a link next to each course to Remove the course from MySQL. The problem is, is when I click on the link to delete a course, it removes it from the DB, but it physically stays on the page until the page is...