Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter azmut

    (@azmut)

    Kim09,

    Thank you for your reply. I spent time reviewing the admin and cleaned up those messages/posts/pages that I was not using.

    I have a better understanding now of the admin and it’s features.

    I spent time searching this forum and was able to make my images appear in the sidebar. What I discovered is that the page they are coming from must be from a post.

    I believe that if I tried to suppress the display of that page or its associated link in the menu sidebar that that would also cause the images to disappear from their sidebar..

    I think what I need is to create a new table in the database and retrieve them in a “in the loop” manner.

    I am not sure how yet to accomplish this but I am pretty sure that this task has been tackled and solved somewhere in this forum already. There may even be a plugin that will do this too.

    I will keep searching but if you or anyone else who reads this knows where or how a pointer in that direction is appreciated.

    Thank you again.

    Andrew

    One more thing:

    If I got an error message like yours I would want to look closely at the call to the db as you may be able to fix it at that level first.

    I might look at the variable names and make sure that they are exactly the same throughout.

    but…without seeing your code I cannot say for sure.

    az

    I assume that you are using something like the wamp server and that this is not occuring while your site is viewed live from the web??

    If you are using a package like the wamp server there is a option to turn off error reporting in it. Look at its control and click what you think would be the correct choice. If that does not work unclick it and then try another.

    If not you will need to look at your pnp.ini file and choose the line to suppress the error reporting.

    You may have more than one php.ini file so make sure you take one of them and keep it clean so that if you make a mistake and inadvertently make php not work at all you have a fresh file to use as a replacement.

    All of the php.ini files can be edited but I believe only one of them is used when php is running.

    Hope this helps.

    az

    Hi,

    This is the format I used for setting a cookie:

    $cookie_number = “123456789”;
    setcookie(“the_name_you_chose”, $cookie_number, time() + 3600);

    Then to test if it is set with PHP:

    $browser_cookie = $_COOKIE[‘the_name_you_chose’];

    if($browser_cookie != $cookie_number){

    or

    if($browser_cookie == $cookie_number){
    — > do you stuff here < —
    }

    This works for me..

    az

Viewing 4 replies - 1 through 4 (of 4 total)