Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.