TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 17, 2024, 12:27:24 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 55
  • Total: 55

Where do I find this in the code and how can insert it in...

Started by shawnlg, October 16, 2007, 10:40:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shawnlg

Thanks!  As I said all this has lead me to wanting to learn sql and javascript

When I get some of these projects off my plate I am going to start taking some courses.

shawnlg

I am going crazy now.  Now when I go look at the articles instead of seeing an article I see html code.  Not sure if permissions got messed up or what but it is not working now.  Please help!

Look at this page for example..

http://www.scifiandgod.com/content/index.php?page=36

Please feel free to look at the backend to see if some how the code got changed.

Thanks!
Shawn Larson

shawnlg


shawnlg

I made a design change and order to make it look right on the page and now the user rating isnt working.  Can you give me an idea how you formated the code so that I can know how to change it to make it work.  Below are the pages affected..

http://www.scifiandgod.com/content/index.php?cat=11
http://www.scifiandgod.com/content/index.php?page=36

Thanks again for all your help..  PS I figured out way to make large scale article changes by using php mysql and a php mysql manager.  Works great!

IchBin

Its because you moved the array declaration. You had stuff being put into the array before it was declared an array.

You had this:
$rate = explode(",", $row['rating']);
$rate = array();
$rating_votes = count($rate);


When it should have been this:
        $rate = array();
        $rate = explode(",", $row['rating']);
$rating_votes = count($rate);


I fixed your first page. But the second link you posted did not have the problem or the code you are using.

shawnlg

Got it...  Thanks!

or this.. rating_average

I think I lost this when I went to an earlier backup.  Thanks for your help again!