Jump to content

Lenbot

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

About Lenbot

  • Birthday 04/12/1985

Contact Methods

  • Website URL
    http://

Profile Information

  • Gender
    Not Telling
  • Location
    St. Thomas, ontario

Lenbot's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks man It seems to do the trick though I haven't fully tested it yet. Thanks in advance I think it will work. // Update (edited)/// Ya it doesnt seem to work. Thanks for pointing me in the right direction perhaps I will have some success with the link you sent me. //Update agian// shouldn't this work, it should return atleast something right? $sqlquery = "SELECT * FROM NEWS"; $result = mysql_query($sqlquery) or die('MYSQL Error : '.mysql_error()); $returnedRecords = mysql_num_rows($result); for($i = 0; $i < $returnedRecords; $i++){ $row = mysql_fetch_array($result); $TITLE = $row['NEWSTITLE']; $NEWS = $row['NEWSARTICLE']; $DATE = $row['NEWSDATE']; } If so why doesnt it. Is there something there I am missing
  2. I have a news table and a Primary key on it. the table is pretty simple set up like so PrimaryKey, NewsTitle,NewsArticle,DateStamp I would usually query and pull the information from the news table but I find that very unefficient. I only want the last 5 articles added. I am not exactly sure how to even query for such a thing :(. Any help is highly appreciated and I would like to thank whom ever responds in advance :). Cheers -Lenbot
  3. ya the website won't allow me to upload the .htaccess file. buggers. anyone else have any other ideas it must be possible
  4. Hello all I have always been in control of my server and could put the database password in a safe secure location, out side of the website directory. Now I don't have access to the server and I have to set up File permission to do so, except you can't find anything online or I don't know what I am looking for. I need to have a Folder inside my main directory with a dbpass.inc File that only the script I run can have access to it and No one else. I have literally tried a million combinations and I give up, I need help I don't know what the Hell I am doing it is all greek to me. I have 3 sets of options Owner Group Public each with permission to Read [] Write [] Excute [] I need to know the right combination to put on the folder, and on the file so I can include the file where I need it but the public can't see it or reach it in any way. Thanks for all the help, I assume it's something I might have to do in PHP I honestly have no clue, please help and its highly appreciated for any help anyone gives me. cheers -Lenbot
×
×
  • 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.