/    Sign up×
Community /Pin to ProfileBookmark

Linking with frames

this is what i have so far:

// connect to mysql and select database

$db = mysql_pconnect(“*********“,”****“,”****“);
mysql_select_db(“*
**
**”,$db);

// build the query

$sql = “SELECT Pass FROM users WHERE Username = [‘user’]”;

// run the query and set a result identifier to the recordset

$res = mysql_query($sql);

// check for matching passwords

if(md5([‘pass’]) = $res)
;

// This is where i am at the moment but i need a code to
// link to another page in another frame

please help

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@SheldonSep 23.2005 — Well i dont no if this is the correct code?
[code=php]WHERE Username = ['user']"; [/code] maybe more like
[code=php]WHERE Username = $_SESSION['user']"; or
WHERE Username = $_POST['user']"; [/code]


the only way i can think of as i dont like using frames is a link, there must be a way, maybe use php to insert some javascript or something.

[code=php]

<a href="success.php" target="rightframe">Successfull</a>

[/code]


If your using php why not scrap your frames and use includes, alot easier, faster, and more compatiable!
Copy linkTweet thisAlerts:
@itwhiz_jnrauthorSep 23.2005 — 
If your using php why not scrap your frames and use includes, alot easier, faster, and more compatiable![/QUOTE]

i can use frames better than includes because i have never used includes before

my website is 82.47.11.59 but it isn't running yet as the server crashed.

visit it on sunday to find out wot im doin
Copy linkTweet thisAlerts:
@SheldonSep 23.2005 — ok. But includes are easy too.

Instead of calling 'left_nav.php' or whatever and 'top.php' then changinf the main frame.

just use

[code=php]
<?php
include('path/to/top.php');

//or

include('path/to/side_nav.php');
?>
[/code]

and place that code where you want the page to come from.

Ill have a look on monday as its saturday 10am here already.
×

Success!

Help @itwhiz_jnr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...