Jump to content

Viper76

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

About Viper76

  • Birthday 12/12/1976

Profile Information

  • Gender
    Male
  • Location
    Toledo Ohio

Viper76's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok, I am not very skilled with using the cron jobs portion of CPanel.  perhaps someone here can inform me of what I am doing wrong. What I want to do is update my database every so often, and to do this, I just made a php page with all the updates needed.  Now, I want the cron jobs portion of CPanel to run this page every 15 minutes. I have gone into the cron jobs page, and used the standard method (figuring I won't understand the advanced settings at all).  I have entered my e-mail at the top, got the time right.  But, now I am not sure what to enter into the bar for the task.  Here is what is in that bar right now: /home/MYFOLDER/public_html/admin/run.php however, nothing seems to happen.  I don't get an e-mail telling me it worked, I don't get one saying it failed. I get nothing at all.  I know its not working, I had to check it manually to see if it was making the changes it was supposed to be making, and it is not.  Can someone please tell me what I am doing wrong here?  Thank you for your time.  Hope to hear from someone soon!
  2. instead of running it as a query I changed it over to an echo, to see what was printing on the screen and found my problem, I was not properly defining $at before the string.  Got it all fixed now, thanks though guys  ;D
  3. thanks a lot for the help guys!  Works great now, and yes, thats new since my last coding project.  8)
  4. I am working on a page that will limit how many items are given to me by the database at one time, here is the line of code that I am for some reason having trouble with: $result = mysql_query("SELECT spic, name FROM $tb1 LIMIT $at, 1 WHERE cat1 = '$cat' OR cat2 = '$cat' OR cat3 = '$cat'",$db) or die(mysql_error()); And this is the error I am getting: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE cat1 = '116' OR cat2 = '116' OR cat3 = '116'' at line 1 If I take out the LIMIT portion, it works fine, so I assume it has something to di with how, or where I added it.  If someone could help, that would be just great, thanks for your time!
  5. I've been offline for about a year, took a break.  I am now back and building a website, but I find that a few things seemed to have changed.  Here is a small snip of code that does not work.  From what I see, form handling has changed.  Can someone fill me in? <?PHP IF ($B1) echo "yes"; ELSE echo "no"; ?> <form method="POST" action="http://www.the-home-decor-store.com/test.php"> <p><input type="submit" value="Submit" name="B1"></p> </form> This returns no every time.  Its VERY simple, and just by clicking the button, it should return yes.  I have found that nothing entered into a form is being passed to the PHP code on the next page.  I've tried with both the "post" and "get" methods of creating a form.  Someone please help! Sean
×
×
  • 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.