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
https://forums.phpfreaks.com/topic/66372-desperate-rookie-needs-help/
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

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 ..

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?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.