Search found 11 matches

by gregsometimes
Tue Oct 23, 2007 1:48 pm
Forum: PHP - Code
Topic: Not sure what would handle this task.
Replies: 2
Views: 418

This can be accomplished with HTML image maps:
http://www.elated.com/articles/creating-image-maps/

image-mapping the map of the US is a time-consuming task. If you have a spare $10 to $20, you can speed up this process by buying some image map software, simply Google it.
by gregsometimes
Mon Oct 22, 2007 12:39 am
Forum: PHP - Code
Topic: Retrieving values from database table to list box
Replies: 3
Views: 375

I don't clearly understand what you are trying to accomplish, but it seems like you may need to learn AJAX.

There isn't a simple way to do "real time" MySQL functionality (without refreshing the page)
by gregsometimes
Sun Oct 21, 2007 6:55 pm
Forum: PHP - Code
Topic: Error with my code....
Replies: 10
Views: 644

a-ha! update syntax: UPDATE [LOW_PRIORITY] [IGNORE] tbl_name SET col_name1=expr1 [, col_name2=expr2 ...] [WHERE where_condition] [ORDER BY ...] [LIMIT row_count] // so, replace the query line to: "UPDATE userregistration SET IllnessType='Winter Flu', TimeOfIllness='$Date' WHERE CountryID='1'&qu...
by gregsometimes
Sun Oct 21, 2007 6:02 pm
Forum: PHP - Code
Topic: Error with my code....
Replies: 10
Views: 644

Are the rows originally empty? Don't forget that an UPDATE query will only "update" ___already existing___ rows. Otherwise use INSERT. It makes sense to me. The query is successful, because there is nothing to update. Correct me if I'm wrong. If this isn't the case though, the problem is w...
by gregsometimes
Sun Oct 21, 2007 5:50 pm
Forum: PHP - Code
Topic: passing actionable info...
Replies: 3
Views: 324

There isn't a "best" way for one specific task in particular. It depends on the context. For example do you want your site to be secure? or does speed of execution matter to you? Anyway, this is just theory. Have you considered using $_POST instead of $_GET? You can pass parameters from wi...
by gregsometimes
Sun Oct 21, 2007 5:42 pm
Forum: PHP - Code
Topic: Error with my code....
Replies: 10
Views: 644

can you replace this: $update_user = ""; $result = mysql_query($update_user) or die(mysql_error()); echo $update_user, '<br>'; with: if (($q = mysql_query("UPDATE userregistration SET IllnessType='Winter Flu' And TimeOfIllness='$Date' WHERE CountryID='1'")) != FALSE) print "...
by gregsometimes
Sun Oct 21, 2007 5:32 pm
Forum: PHP - Code
Topic: php dynamic select boxes
Replies: 6
Views: 618

you can also do this with Flash Movie <-> JavaScript communication. But that's also no easy task.
by gregsometimes
Sun Oct 21, 2007 5:05 pm
Forum: PHP - Code
Topic: php dynamic select boxes
Replies: 6
Views: 618

javascript and sql are usually not used in the same sentence, unless to indicate that there is just no straight communication interface between the two. This problem you are having is exactly why we now have ajax. If you've studied ajax for at least 1 hour you'd know that ajax is... Asynchronous Jav...
by gregsometimes
Sun Oct 21, 2007 4:41 pm
Forum: PHP - Code
Topic: Error with my code....
Replies: 10
Views: 644

Explain what you're trying to do here:

$rand = rand(1,1); // this will always return 1, then why is it a condition?

Are you generating a (whole) random number between 1 and 1, which is always 1?
by gregsometimes
Sun Oct 21, 2007 4:23 pm
Forum: PHP - Code
Topic: php dynamic select boxes
Replies: 6
Views: 618

You can't do this with PHP in, how you say it, "real time". PHP does not have functionality similar to JavaScript's "onClick" or "onSelect". Is there a good reason why you don't want to use JavaScript? What you're looking for is an AJAX implementation.
by gregsometimes
Sun Oct 21, 2007 4:12 pm
Forum: PHP - Code
Topic: Retrieving values from database table to list box
Replies: 3
Views: 375

problem (among others): $form is being overwritten

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Of course...