Jump to content


Photo

Database Query Display


  • Please log in to reply
25 replies to this topic

#21 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 25 June 2006 - 12:23 PM

[!--quoteo(post=387731:date=Jun 25 2006, 06:49 AM:name=hackerkts)--][div class=\'quotetop\']QUOTE(hackerkts @ Jun 25 2006, 06:49 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
>.<! It couldn't be totally empty, is that the full script in your news.php ?
[/quote]

which one? which >.<? no its not the full script.
what I did was to use
include_once($path."mysql_connect.php");
include_once($path."getNews.php"); // <-- content of this is the script, where known as news.php.

Now I am looking a way to echo "sorry database empty" if the database is totally empty. otherwise, the script was working :)

Also I am looking for script to protect my add_news.php and delete_news.php and edit_news.php, you might have a suggestion for this? I am looking the one with user database so the user could add account to other users which is authorized to add news to the site, however, the simply authenticaion method will do as of yet.

Thanks again in advance. :)

#22 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 25 June 2006 - 02:58 PM

Hmm.. Let me get this right first..
Post #19 is the news.php ? or is it index page ?

And I don't think you should include the getNews.php it will make a mess in your script. As for add, del and edit news try session.

Don't ask me about session, I'm still learning it. :s

Hmm.. Do you have a live demo site ? I'm getting lost.. Not sure which is which.

Post#18 it should be the index page, I have added "sorry database empty".
And the only way to view the full article from getNews.php is go to
[a href=\"http://domain/getNews.php?id=1\" target=\"_blank\"]http://domain/getNews.php?id=1[/a]
1 and above.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#23 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 26 June 2006 - 07:24 AM

Hi Hackerkts,

Thanks a lot for the help! :) you should not worry about add edit delete, I was able to do so, I am looking right now is how to protect my add edit delete page using authentication.

My add edit delete page was working, i just need to have an authentication methid to protect them.

As far as live demo site, I still havent upload the files to my server, its still in my local computer. :)

once again thanks you :)

#24 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 26 June 2006 - 08:16 AM

Already, hmm sorry I don't think I could help out on time.
School open, and my stupid teacher giving me tons of homework. >.<

I don't think I really have the time to play lolz. :s
If you had any problem feel free to ask others. :D

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#25 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 27 June 2006 - 11:22 AM

[!--quoteo(post=387962:date=Jun 26 2006, 03:16 AM:name=hackerkts)--][div class=\'quotetop\']QUOTE(hackerkts @ Jun 26 2006, 03:16 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Already, hmm sorry I don't think I could help out on time.
School open, and my stupid teacher giving me tons of homework. >.<

I don't think I really have the time to play lolz. :s
If you had any problem feel free to ask others. :D
[/quote]

Hi Hackerkts,

Thank you so much for your help! I was able to secure my pages :) it work using session :)

Thanks again!


#26 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 28 June 2006 - 06:34 AM

No problem Mr Lee. :)

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users