Search found 8 matches

by meannate
Tue Jan 21, 2003 12:46 pm
Forum: PHP General
Topic: Dynamic sites - <title> change
Replies: 4
Views: 1784

This might help

The nice thing about PHP is the ability to integrate with HTML so nicely. Hope this helps! -Nathan <? if (condition) { $title = "this and that" } else { $title = "that and the other" } ?> <HTML> <HEAD> <TITLE><? echo "$title"; ?></TITLE> </HE...
by meannate
Thu Jan 16, 2003 2:50 pm
Forum: PHP coding => General
Topic: How to seperate data from line in txt file
Replies: 0
Views: 906

I would imagine the data in your datafile is separated by a colon, coma, or maybe a space... you say your interested only in the last item. $datafilename = "datafile.log"; $datafile = fopen($datafilename, "r") or die("Couldn't Open"); $data = fread($...
by meannate
Mon Jan 06, 2003 5:36 pm
Forum: PHP coding => General
Topic: Login Adminsitration struggles
Replies: 1
Views: 888

An Idea?

Try this on for size: <HTML> <HEAD> <? $connection = @mysql_connect("hostname", "admin", "pass") or die("Couldn't Connect to Database"); $db = @mysql_select_db("admin", $connection) or die("Couldn't Select Database&qu...
by meannate
Mon Jan 06, 2003 4:51 pm
Forum: PHP coding => General
Topic: Smilies in my guestbook
Replies: 2
Views: 1283

I think you want to parse the input string, (the TEXTAREA for instance), for certain occurances, such as that smily. So, once you've sent the form to be processed, use: ereg_replace (":)", "<IMG SRC=\"images/smily.gif\">", $input); Where $input is the input string from the previous page, which will ...
by meannate
Mon Nov 04, 2002 12:55 pm
Forum: PHP coding => General
Topic: Auto Filling Form Data ... specifically a select drop menu
Replies: 6
Views: 2654

Jay:

I think that's the way... I'm retarded... thanks dude!

-Nathan
by meannate
Mon Nov 04, 2002 12:50 pm
Forum: PHP coding => General
Topic: Auto Filling Form Data ... specifically a select drop menu
Replies: 6
Views: 2654

hmmmmmm...

Okay, so here's where I'm at now: I'm forming the output table and trying to test the value of $job_status for each <OPTION> field... so before it's like this: $display_block .= "<SELECT NAME=\"job_status\">OPTION VALUE=\"In Progress\">In Progress</OPTION><OPTION VALUE=\"Finished\">Finished</OPTION>...
by meannate
Mon Nov 04, 2002 12:36 pm
Forum: PHP coding => General
Topic: Auto Filling Form Data ... specifically a select drop menu
Replies: 6
Views: 2654

DoppyNL: Thanks for the reply! However I'm trying to dynamically select which field... like this: The user comes to the page, selects the option they'd like from the drop-down menu... they hit the update button, my script updates the MySQL database with their option, and the page reloads... on the r...
by meannate
Mon Nov 04, 2002 12:26 pm
Forum: PHP coding => General
Topic: Auto Filling Form Data ... specifically a select drop menu
Replies: 6
Views: 2654

Auto Filling Form Data ... specifically a select drop menu

Howdy- I'm developing an online inventory database with a status field containing three "states" (new order / in progress / finished). This is done using a form <INPUT SELECT> field, as you might imagine. The problem I'm having is having the SELECT field reflect my user's choice after they hit the u...