Thursday, May 29, 2008

Hi-

I m new to PHP and am trying to write code that allows a user to upload a file- along with a number of different inputs (name- description- etc.) that will all go into a MySQL database.

I ve checked countless forums and tutorials and can successfully create a script that simply uploads a file into a folder in my directory- but I can t find anything that allows me to add forms and inputs so I can get additional information in my database.

I m currently doing it from a "upload.php" file which connects to a "config.inc.php" file as well as an "uploader.php" file. The config.inc.php file also connects to a "mysqli connect.php" file.

Not sure if I m even doing it the right way- but any explicit help would be greatly appreciated!

Thanks

I have a page which uses a session_user_id from

if(!isset($_SESSION
[ SESS_MEMBER_ID ]) ||
(trim($_SESSION
[ SESS_MEMBER_ID ])== )) {
header("location: login.php");

with a a dropdown list of 30-50 countries like

<select name="country" id="country">
<option value="Bosnia and Herzegowina">Bosnia and Herzegowina</option>
<option value="Korea- Democratic People s Republic of">Korea- Democratic People s Republic of</option>
<option value="Federated States of Micronesia">Federated States of Micronesia</option>
<option value="Sao Tome and Principe">Sao Tome and Principe</option>
<option value="South Georgia and South Sandwich Islands">South Georgia and South Sandwich Islands</option>
.
.
.
</select>

to get a row of record from

mysql_query("SELECT CName- Country-... FROM customer
WHERE CuserID =
$_SESSION
[ SESS_MEMBER_ID ] ")

But how do I fetch the Country from the table & make it the selected value in the dropdown list?

I am looking around Portland- Oregon for a summer job in the general area of computer programming. The problem is- I m not quite sure which jobs I would be able to get and where to find them.

I am a college student (computer science major) going into my junior year. I ve done some web design- but my only serious production level project was a set of relatively simple set of PHP scripts combined with MySQL to manage entries in a county wide contest in Clackamas County. However- I know several languages- though I don t have complete mastery of them. I good knowledge of the mechanics of HTML/CSS- but I m not great when it comes to layouts.

Languages:
Thorough: (X)HTML- CSS
Solid working knowledge: Python- PHP- generic XML
Basic knowledge: C++- Java- JavaScript- bash- SQL

This isn t a classified ad- I m just looking for advice as to what s out there and how to get it.

im thinking of making a simple database of my friends info such as phone number- addresses- email and name. instead of jotting down using pencil and key it in in computer by myself- i wanted to try a more hi-tech approach. How to make a simple form that i can upload to the internet and ask my friends to fill it- it just like registration process and when they clicked done- it will save in a database that i can access later. i heard of ASP- mySQL but i cant understand reading on my own..i need a teacher to teach me from A-Z..thx

when i try to install my database- i get the following error message:

ERROR 1153: Got a packet bigger than max_allowed_packet bytes
ERROR 2006: Mysql server has gone away

i researched about it and found out that the server issues Packet too large error and closes the connection when it receives a packet bigger than max_allowed_packet bytes. However- I couldn t find any resources on how to set that variable to a larger value.

I will appreciate ANY suggestion...thanks!

No comments: