Outline ·
[ Standard ] ·
Linear+
Change of content, PHP help~
nxfx
|
Mar 25 2006, 03:25 PM
|
|
put the html in the php code. eg. If the return value is true then //php part Display html tabke here //html part else Display none
|
|
|
|
TSBlueSilver
|
Mar 25 2006, 08:05 PM
|
|
ok i'll give it a try. Thanks so much nxfx.
|
|
|
|
nexus-
|
Mar 26 2006, 08:16 AM
|
The intrepid coward
|
Perhaps you are looking at AJAX. http://en.wikipedia.org/wiki/AJAX
|
|
|
|
TSBlueSilver
|
Mar 26 2006, 12:10 PM
|
|
I'll take a look at AJAX too. Thanks nexus.
|
|
|
|
crynobone
|
Mar 26 2006, 12:20 PM
|
|
A more direct toturial totally to get you started > http://www.pixel2life.com/twodded/t_ajax_a...nd_data_/page1/This post has been edited by crynobone: Mar 26 2006, 12:20 PM
|
|
|
|
TSBlueSilver
|
Mar 26 2006, 07:26 PM
|
|
i've surf through lots of stuff about AJAX and most of it was about form components and i'm still stuck. Does anybody know of any good AJAX tutorial websites?
|
|
|
|
sunsuron
|
Mar 26 2006, 07:32 PM
|
|
|
|
|
|
TSBlueSilver
|
Mar 26 2006, 08:45 PM
|
|
thanks sunsuron
|
|
|
|
zorex
|
Apr 2 2006, 05:51 PM
|
|
Alternative ways beside Ajax : CODE <?php //Assume your have your data in database oledi //Select your DB with the connection $link //$var is the content name u want or whatever key (primary key)
$result_array = @mysql_query("SELECT * FROM tablename WHERE fieldname='$var'",$link);
while($data = mysql_fetch_array($result_array)) { $content = $data["fieldname"]; //depend on your fieldname //remember to replace quote and < > after you retrive the data. } ?> <!--html part!--> <html> <body> <form name="" method="post" action=""> my content : <br><textarea style="width:400px;height:150px;" name="txt"><? echo $content ?></textarea> </form> </body> </html>
This should works! Else reply again
|
|
|
|