Jump to content

desperate rookie needs help!!


jadebabe

Recommended Posts

Hello all,

 

I have a little situation here.

 

I have to finish a project by tomorrow but had an accident which caused me some temporary memory loss...

 

The thing is that i need to connect a web form to a database, and generate reports from what is sent in those forms

 

I'm looking for some scripts like sylex php forms / reports and they wont run on my website.

 

I need help, and.. i honestly dont want anyone else to get a better mark than me. Can you help me with some ideas, or scripts that can do such job for me?

 

I appreciate it!

Link to comment
Share on other sites

We don't do homework. If you have specific problems, post your problematic code and a description of the problem, otherwise, your on your own.

 

Whatever mark you get needs to be reflected by how much effort you have put in.

Link to comment
Share on other sites

ok i have concrete questions i wasnt looking for anyone to do my homework but help me out with some suggestions.

 

i know i can find scripts to generate reports from a database but i just need proper orientation.

 

Anyway

 

I installed my form whith the corresponding form processor and after filling it to test it it shows this message:

 

Parse error: syntax error, unexpected T_STRING in /home/os000332/public_html/srcf/processor.php on line 32

 

i checked line 32 which reads:

 

En caso de haber seleccionado "Otro", Especifique:: " . $_POST['field_11'] . "

 

which translates to>  In case of selecting Other, Specify

Its just an "if other please specify" text area after some radio buttons.

 

How do i correct that? shall i just delete it from the form?

 

I appreciate your patience i am a rookie

Link to comment
Share on other sites

Oh you are right!.

 

Well, i have another question, i would like to assign a specific table.. so far i've done this:

 

$link=mysql_connect("localhost","---supresed---","----passw---");

mysql_select_db("os000332_srcf");

if(!$link) die ('Could not connect to database: '.mysql_error());

mysql_select_db($db_name,$link);

$query = "INSERT into `".$db_table."` (field_1,field_2,field_3,field_4,field_5,field_6,field_7,field_8,field_9,field_10,field_11,field_12,field_13,field_14,field_15,field_16,field_17,field_18,field_19,field_20,field_21,field_22,field_23,field_24,field_25) VALUES ('" . $_POST['field_1'] . "','" . $_POST['field_2'] . "','" . $_POST['field_3'] . "','" . $_POST['field_4'] . "','" . $_POST['field_5'] . "','" . $_POST['field_6'] . "','" . $_POST['field_7'] . "','" . $_POST['field_8'] . "','" . $_POST['field_9'] . "','" . $_POST['field_10'] . "','" . $_POST['field_11'] . "','" . $_POST['field_12'] . "','" . $_POST['field_13'] . "','" . $_POST['field_14'] . "','" . $_POST['field_15'] . "','" . $_POST['field_16'] . "','" . $_POST['field_17'] . "','" . $_POST['field_18'] . "','" . $_POST['field_19'] . "','" . $_POST['field_20'] . "','" . $_POST['field_21'] . "','" . $_POST['field_22'] . "','" . $_POST['field_23'] . "','" . $_POST['field_24'] . "','" . $_POST['field_25'] . "')";

mysql_query($query);

mysql_close($link);

 

How can i specify a table there? i am not very familiar with these things since i skipped classes after the accident but i really want a chance so i can keep up with the course. If you could also recommend literature on the subject ..

Link to comment
Share on other sites

Are there really that many classes that teach PHP? Just a few years ago my HS made the switch from C++ to Java, and my university never offered any PHP classes. I understand we don't do homework for people, but is it that often that someone has PHP homework?

 

How can someone get "better marks" than you if it's not homework? And what class is it for?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.