Search found 17 matches

by FreeBaGeL
Thu Jul 09, 2009 3:35 pm
Forum: PHP - Code
Topic: PHP redirects and meta tags
Replies: 1
Views: 134

PHP redirects and meta tags

I have a retail website. The domain for that website is the name of my company. In an attempt to increase online traffic to my site, I bought out the domain name of a common search term with the idea that I would just redirect any clicks there to my main site. So, when I redirect using PHP, do I mak...
by FreeBaGeL
Fri Jul 23, 2004 12:33 am
Forum: PHP - Code
Topic: parsing...
Replies: 4
Views: 613

Awesome, the script now works with your guys help, thanks a million!
by FreeBaGeL
Thu Jul 22, 2004 9:49 pm
Forum: PHP - Code
Topic: parsing...
Replies: 4
Views: 613

Sort of, but wouldn't studentid:detailid just put in the strings studentid and detailid? I need it to be the actual values of the variables.

Also, hadn't heard of explode before but upon looking it up it looks like it returns a string. Again I would need the actual variable returned.
by FreeBaGeL
Thu Jul 22, 2004 7:13 pm
Forum: PHP - Code
Topic: parsing...
Replies: 4
Views: 613

parsing...

Hi, I have a script that allows me to delete multiple rows in one of my database tables with checkboxes. The problem is that the table has a primary key made of two columns: student ID and detail ID. Student ID's may hence show up more than once with different detail ID's. I have the checkbox set up...
by FreeBaGeL
Fri Jul 16, 2004 4:18 pm
Forum: PHP - Code
Topic: Reading from a dynamic amount of text boxes
Replies: 10
Views: 1099

well $EDID shouldn't be an array, it's the value of the detail ID that I brought in from the grades page.

Any idea why $ID is just printing as "Array" rather than the value of that array element? I have a feeling that that has something to do with why the code isn't working.
by FreeBaGeL
Thu Jul 15, 2004 10:27 pm
Forum: PHP - Code
Topic: Reading from a dynamic amount of text boxes
Replies: 10
Views: 1099

Re: Reading from dynamic amount of textboxes

Well, here's what I've got, I put the print statements in to try and error check, when I run it it just prints "ArrayArrayArrayArray" to the screen: //get grades and put into database// $scores = array(); foreach($_POST as $id=>$score) { echo $ID; echo $EDID; //echo $scores; if($id != 'sub...
by FreeBaGeL
Thu Jul 15, 2004 11:24 am
Forum: PHP - Code
Topic: Reading from a dynamic amount of text boxes
Replies: 10
Views: 1099

feyd wrote:name="student[{$student_id}]"

As for storing the event they selected, it may be best to store it into a session variable.

Moving to PHP - Code
Forgive me for my noobishness (new at this), but what is a session variable?
by FreeBaGeL
Thu Jul 15, 2004 11:05 am
Forum: PHP - Code
Topic: Reading from a dynamic amount of text boxes
Replies: 10
Views: 1099

Reading from a dynamic amount of text boxes

Ok, let's see if I can break this down. I'm building a site with php/Oracle for a university class so that students can go on and view their grades, and TA's can go on and enter them. So, when adding a gradeset, I have it setup so that the TA can select an event (added by the admin), like Exam 1, Ho...
by FreeBaGeL
Tue Jul 13, 2004 11:22 am
Forum: PHP - Code
Topic: Populating an array with database column
Replies: 3
Views: 247

Populating an array with database column

I'm looking to populate an array in php with a column from my database for later use. More specifically, I'm trying to make an array that will store all the ID's from a table in my database using an ORACLE database. Here's what I've got so far, not sure why it's not working, but when I print back th...
by FreeBaGeL
Mon Jun 28, 2004 10:29 am
Forum: PHP - Code
Topic: Deleting multiple rows with checkboxes...with a twist
Replies: 6
Views: 595

Deleting multiple rows with checkboxes...with a twist

I've looked through some tutorials on how to delete multiple rows in a database with checkboxes displayed on a website, and have the following general code: <input type="checkbox" name="del[]" value="$recordid"> // in another file: foreach ($del as $row_id) { mysql_quer...
by FreeBaGeL
Mon Jun 28, 2004 9:59 am
Forum: PHP - Code
Topic: [SOLVED] On to the next one...not updating in database...
Replies: 2
Views: 264

Ahhhhhhhhhhhhhhhhhhh thank you thank you thank you. The turning the error checking back on really helped. Turned out I had accidentally had detail_id=:bind1 instead of dtl_id=:bind1. dtl_id was the name I gave it but it stands for "detail ID" and that must've been what I was thinking in my...
by FreeBaGeL
Mon Jun 28, 2004 12:21 am
Forum: PHP - Code
Topic: [SOLVED] On to the next one...not updating in database...
Replies: 2
Views: 264

[SOLVED] On to the next one...not updating in database...

Moving along, I have a webpage that displays the contents of students at a university and their grades from an oracle database. I've gotten it so I can select a row in the table of users and their grades and edit them, but when it "edits" them I have it redirected to the page where the gra...
by FreeBaGeL
Sun Jun 27, 2004 8:36 pm
Forum: PHP - Code
Topic: Bulk uploading to Oracle using PHP..
Replies: 8
Views: 591

Hmmm, not seeing any new errors after I added that. Here's what shows up on the page when I try and run the script: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@cise.ufl.edu ...
by FreeBaGeL
Sun Jun 27, 2004 8:25 pm
Forum: PHP - Code
Topic: Bulk uploading to Oracle using PHP..
Replies: 8
Views: 591

Well, it would appear as if I'm now getting an "Internal Server Error" which likely means something else is the problem.

Also, how do I put that error reporting in?

Just stick error_reporting(E_ALL); in my code?

Thanks.
by FreeBaGeL
Sun Jun 27, 2004 5:59 pm
Forum: PHP - Code
Topic: Bulk uploading to Oracle using PHP..
Replies: 8
Views: 591

parse n' execute// <-- this line $results = OCIParse($connection,$query1); $doquery1 = OCIExecute($results); /tml confirmation of upload// <-- and this line echo "<p>$last_name, $first_name</p>"; are the highlighted lines apart of your actual script? if so, those will cause parse errors. ...