Jump to content

using frameset (php)


kenmay09

Recommended Posts

because im trying to make a chat... our professor said we should use the frameset. this is giving me headache......

 

that's why im asking for some help!

 

Look up how to properly use framesets via HTML first. Once you can create a static page with framesets then look into the dynamic part.

 

The actual frameset page can be html, the pages linked inside the frameset, however, would need to be .php.

 

But since this is a school project and you will not learn by me doing it for you. Research basic html framesets.

Link to comment
https://forums.phpfreaks.com/topic/142490-using-frameset-php/#findComment-746622
Share on other sites

yes! my codes are correct.. but it wont appear on my browser.....

 

anywayz.. thanks for the help.... thank you so much!

 

If you have code, post the code. I am willing to help you if you actually tried first. Just dont expect me to write everything for you.

Link to comment
https://forums.phpfreaks.com/topic/142490-using-frameset-php/#findComment-746636
Share on other sites

http://www.w3schools.com/HTML/html_frames.asp

 

Not quite.

<frameset cols="25%,*">
   <frame src="navigation.php">
   <frame src="message.php">
</frameset>

 

That would probably work, given that you have a navigation.php and message.php and your php server is running.

Link to comment
https://forums.phpfreaks.com/topic/142490-using-frameset-php/#findComment-746652
Share on other sites

<? $conn=mysql_connect("localhost","root","");

mysql_select_db("$chatScript");

?>

 

that's my code if i will connect it to the database

 

You might want to expand that a bit for error testing;

 

<?php

$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
    die('Not connected : ' . mysql_error());
}

// make foo the current db
$db_selected = mysql_select_db('foo', $link);
if (!$db_selected) {
    die ('Can\'t use foo : ' . mysql_error());
}
?>

 

From: http://uk3.php.net/manual/en/function.mysql-select-db.php

Link to comment
https://forums.phpfreaks.com/topic/142490-using-frameset-php/#findComment-746679
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.