Follow us on Twitter!
The important thing is not to stop questioning. - Albert Einstein
Saturday, April 19, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 31
Guests Online: 31
Members Online: 0

Registered Members: 82841
Newest Member: and3rv1sh
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

Database Driven Navigation System


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 22:04
Right, due to the outcome of my last thread I am ditching the script from php-fusion and making my own Database Driven Navigation System ... So ...
Config.php =
Code
<?php
// database settings
$hostname="localhost";
$username="********";
$password="********";
$database="dotticms";
$con = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to MySQL");
mysql_select_db($database, $con);
?>




And Navigation.php =
Code
<?php
include ("extension.inc");   
include ("config.".$php);
include ("core.".$php);
("SELECT * FROM sitelinks WHERE pos<='50' ORDER BY pos");
?>




Hokay, I am new to using sql and php together ... So ...

My database dotticms has a table called sitelinks ...
Site links contains
id
name
link
pos
class

I just need to use name for the text to be displayed
I just need link to be the location when the name is clicked
I just need position their order and etc.
Any help please...
I want it like =

<a href=$link class=$class>$name</a>

Ty
Dotti


Author

RE: Database Driven Navigation System

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 22:19
You must be fucking kidding right? RIGHT?!

Did you just cut off the code you didn't understand, and now you're asking us how to code your cms.

Somehow that doesn't seem right. Look kid, first go try to do it yourself, if you have any questions then, you can come back, post any errors (if any) and show you actually put some effort into this.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Database Driven Navigation System


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 22:21
okay then ... if you agree to stop having ago at me ... This is what i have now ....
Code
<?php
include ("extension.inc");   
include ("config.".$php);
include ("core.".$php);
$query  = ("SELECT * FROM sitelinks WHERE pos<='50' ORDER BY pos");

while(list($name,$link,$class) = $result)

echo ("<a href=".$result['link']." class=".$result['class'].">".$result['name']."</a>");
?>




Wrote it myself ... From stuff i picked up from w3 schools and various other sites ...


Author

RE: Database Driven Navigation System

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 22:24
Just one question though, the last one I will ask before I will help you.

What does
Code
while(list($name,$link,$class) = $result)



mean? What does it do?



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Database Driven Navigation System


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 22:26
erm ... Im not sure ... I got it from some reallly dodgy site .. Would you care to help PfftSmile


Author

RE: Database Driven Navigation System


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 22:30
djdotti wrote:
erm ... Im not sure ... I got it from some reallly dodgy site .. Would you care to help PfftSmile


that kind of confirms everything that spyware said in the last topic.


Author

RE: Database Driven Navigation System


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 22:33
necr0six wrote:
djdotti wrote:
erm ... Im not sure ... I got it from some reallly dodgy site .. Would you care to help PfftSmile


that kind of confirms everything that spyware said in the last topic.



That just comfirms that another thread is about to be wrecked ...

What a way to write my 100th forum post


Author

RE: Database Driven Navigation System

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 22:35
HAHAHAHAHAHA *stares up in the sky* HAHAHAHAHAHA

SEE, I TOLD YOU I WAS RIGHT. HAHA YOU OWE ME 10 BUCKS DUDE HAHA

Oh and djdotti, thanks.. I love betting with god <3



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Database Driven Navigation System


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 22:41
i give up .... I GIVE UP .... WHY WHY WHY WHY WHY CAN SOMEONE NOT JUST HELP ME WITH MY F*****G SCRIPT FOR GOODNESS SAKE .....