Follow us on Twitter!
Imagination is more valuable than knowledge - Albert Einstein
Thursday, April 24, 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: 27
Guests Online: 25
Members Online: 2

Registered Members: 82904
Newest Member: jamessmith123
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Page 1 of 2 1 2 >
Author

More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:15
Yea, im trying to make a CMS okay ... Right .... For my navigation system i tried to copy phpfusion's idea ....
My table in my db has 5 collums

ID (id)
name (text to display for link)
link (the location of page to call)
pos (Where to place the link ((order)))
class (the class used to display the item in)

and this is my code

Code

<?php   
include ("config.".$php)
$result = dbhandle("SELECT * FROM ".$db_prefix."inks WHERE pos<='50' ORDER BY pos");
if (dbrows($result) != 0) {
   while($data = dbarray($result)) {
         if ($data['link_name'] != "---" && $data['link'] == "---") {
            echo "<div class='side-label'><b>".$data['name']."</b></div>\n";
         } else if ($data['name'] == "---" && $data['link'] == "---") {
            echo "<hr class='side-hr'>\n";
         } else {
            if (strstr($data['link'], "http://") || strstr($data['link'], "https://")) {
               <a href='".$data['link_url']."'".$link_target." class='side'>".$data['name']."</a><br>\n";
            } else {
               echo "<a href='".$data['link']."'".$link.". class=".$data['name'].">".$data['name']."</a><br>\n";
            
         }
      }
   }
} else {
   echo "died";
}

?>





I keep getting errors, any ideas ... Need any more information ... pm me or post here




Edited by on 19-05-07 15:16
Author

RE: More php & sql problems

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 19-05-07 15:20
Post the errors you are getting, and also, where is the variable $php declared? As you are using: include ("config.".$php)


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 15:26
I glanced over the code and I came to one conclusion: You don't have any fucking clue what you're doing.

Stop trying to do something you cleary can't. First learn PHP and SQL and then create something with it. IN THAT ORDER!



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce

Edited by spyware on 19-05-07 19:30
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:28
ah sorry system ....
i missed out a link

include ("extenison.inc"Wink <-- my extensions are all in there
But i still have errors =


Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\navigation.php on line 13



Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:29
whopps ... fixed that last error .. and now >
Fatal error: Call to undefined function dbhandle() in C:\xampp\htdocs\navigation.php on line 4

But that is in my config.php file for deffo


Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 15:29
<a href='".$data['link_url']."'".$link_target." class='side'>".$data['name']."</a><br>\n";

should be echoed.



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:30
spyware wrote:
<a href='".$data['link_url']."'".$link_target." class='side'>".$data['name']."</a><br>\n";

should be echoed.


yea i changed that ... still have errors .. read above ^
djdotti wrote:
whopps ... fixed that last error .. and now >
Fatal error: Call to undefined function dbhandle() in C:\xampp\htdocs\navigation.php on line 4

But that is in my config.php file for deffo


my latest error :
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\navigation.php on line 4




Edited by on 19-05-07 15:32
Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 15:32
We are no debugging tool you ... tool! Go study your PHP first and then ask questoins.

Sheesh..



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:33
I came here for help ... advice ... not to be shouted at by you ... I'm focing no-one to be a debugging tool, simply asking for help on my problem ..... "sheesh"


Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 15:34
djdotti wrote:
I came here for help ... advice ... not to be shouted at by you ... I'm focing no-one to be a debugging tool, simply asking for help on my problem ..... "sheesh"


Your problem is you have no fucking clue of what you're doing. I gave you good advise, if I were you I would take it.

Sheesh²...



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:36
...... Im learning alright ... And I am testing scripts as I learn .... and every now and then try editing some for fun ... etc....

Sheesh ...


Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 15:41
Stop trial and erroring your ass to your free hosting account and back here. If you want to help, start helping yourself by learning something before attempt to do things that you clearly don't understand.



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:43
spyware wrote:
Stop trial and erroring your ass to your free hosting account and back here. If you want to help, start helping yourself by learning something before attempt to do things that you clearly don't understand.


ACTUALLY ... I am using Xampp server on my machine ... if you didnt notice half of my errors included a path to c:\Xampp\...etc.

.... SO .. i suggest you read and think before insulting and shouting at people who dont do exactly as you'd like them to.
Sheesh...


Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 15:45
Completely offtopic you tard. That doesn't fucking matter. You know what, the only problem is YOU, if YOU knew how to program in PHP then YOU could fix the errors/stop copying code.

So YOU should dash over to W3schools or whatever, and start learning what YOU got to do.

And now stfu.



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 15:48
.....:vamp: I no-longer like you .... IM ASKING FOR HELP .. for goodness sake ..... if your not going to give it to me then stop posting insults .....
Sheesh


Author

RE: More php & sql problems

richohealey
Member



Posts: 1022
Location: #!/usr/local/bin/python
Joined: 01.05.06
Rank:
Monster
Posted on 19-05-07 16:21
Ok.

Both of you: Shut the FUCK UP

Spyware, he's just trying to do his best.

Dj_Dotti: Spyware is right. you're no where near ready for a project like this.


Now play nice kids


bitchohealey at hotmail dot com skype:richohealey www.psych0tik.net
Author

RE: More php & sql problems

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 19-05-07 16:21
djdotti wrote:
whopps ... fixed that last error .. and now >
Fatal error: Call to undefined function dbhandle() in C:\xampp\htdocs\navigation.php on line 4

But that is in my config.php file for deffo


Show me your config file, but * out your sensitive info, then I might be able to help.


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 17:03
<?php
// database settings
$hostname="localhost";
$username="********";
$password="********";
$database="dotticms";
$con = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL"Wink;
mysql_select_db($database, $con);
?>


Author

RE: More php & sql problems

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 19-05-07 19:16
richohealey wrote:
Ok.

Both of you: Shut the FUCK UP

Spyware, he's just trying to do his best.

Dj_Dotti: Spyware is right. you're no where near ready for a project like this.


Now play nice kids


Hm, I don't see any additional value in your post, actually, you've just copied my statement and told me to shut the fuck up also.

Way to go richo, way to fucking go.

*cheers*

And now lets see if system is actually going to help djdotti.

*watches*



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
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: More php & sql problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-05-07 19:23
spyware, stop throwing your ego around like a little girl and try to help him. its a question forum, for gods sakes, not a PHP pro forum. you dont learn if you dont make mistakes and learn how to fix them. but i also agree with you, dotti you should start with a smaller project to get you going, like a single script or something, not a CMS.


Page 1 of 2 1 2 >