javadi82
May 3rd, 2003, 11:34 AM
i have attached the fla file of my guestbook which does not seem to work.
could you please download and help me?
the code for the php script is as follows:
code for postguestbook.php is:
<?php
$db=mysql_connect("http://members.lycos.co.uk/myperception","myperception","password");
mysql_select_db("myperception_uk_db",$db);
$request1=insert into guestbook values(a,b);
$result1=mysql_query($request1);
$request2=select * from guestbook;
$result2=mysql_query($request2);
$desiredContent=mysql_fetch_array($result2,MYSQL_A SSOC);
mysql_free_result($result1);
mysql_free_result($result2);
print "guestbook=$desiredContent[guestbook]";
?>
//Code for viewguestbook.php is:
<?php
$db=mysql_connect("http://members.lycos.co.uk/myperception","myperception","password");
mysql_select_db("myperception_uk_db",$db);
$request=select * from guestbook;
$result=mysql_query($request2);
$desiredContent=mysql_fetch_array($result2,MYSQL_A SSOC);
mysql_free_result($result);
print "guestbook=$desiredContent[guestbook]";
?>
i could not attach the php scripts because the forum allows only one file to be attached.
please see through the php scripts and download the .fla and help me.
note: the password in the php scripts was intentionally typed as password because i was posting the php scripts in the forum.
could you please download and help me?
the code for the php script is as follows:
code for postguestbook.php is:
<?php
$db=mysql_connect("http://members.lycos.co.uk/myperception","myperception","password");
mysql_select_db("myperception_uk_db",$db);
$request1=insert into guestbook values(a,b);
$result1=mysql_query($request1);
$request2=select * from guestbook;
$result2=mysql_query($request2);
$desiredContent=mysql_fetch_array($result2,MYSQL_A SSOC);
mysql_free_result($result1);
mysql_free_result($result2);
print "guestbook=$desiredContent[guestbook]";
?>
//Code for viewguestbook.php is:
<?php
$db=mysql_connect("http://members.lycos.co.uk/myperception","myperception","password");
mysql_select_db("myperception_uk_db",$db);
$request=select * from guestbook;
$result=mysql_query($request2);
$desiredContent=mysql_fetch_array($result2,MYSQL_A SSOC);
mysql_free_result($result);
print "guestbook=$desiredContent[guestbook]";
?>
i could not attach the php scripts because the forum allows only one file to be attached.
please see through the php scripts and download the .fla and help me.
note: the password in the php scripts was intentionally typed as password because i was posting the php scripts in the forum.