Jump to content

buconine

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

buconine's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i had an == instead of a = in my select statement. i appreciate the help! next dumb question, my cron is working great, but it is sending out emails to the same people repeatedly. is there any way to make it only send that user 1 email and skip them next time it runs?
  2. running php 4.4.4 i am getting errors with my cron. the error is: Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource for this line of code: if (mysql_num_rows($result) > 0) { being used in a select statement which in my books should be a legal statement. is this a php5 or better statement? any ideas?
  3. hmm, now i am getting errors with my cron. the error is: Warning</b>:  mysql_num_rows(): supplied argument is not a valid MySQL result resource for this line of code: if (mysql_num_rows($result) > 0) { being used in a select statement which in my books should be a legal statement. any ideas?
  4. ok, but the code isn't generating anything but a blank screen. any ideas? i've tried adding {} after else and the echo, no difference. i'm stuck. is the way i'm doing it just wrong completely? is there another way to view a pdf file thru a form?
  5. hello, i'm trying to view a pdf file off a form and got the form working, but when you submit the form i just get the html from the page, no php. here is the code. any ideas? [code]<?php         if (!$_POST['submit'])         {        ?>         <form action = "<?=$_SERVER['PHP_SELF'] ?>" method = "post">     Image Number <input type = "text" name = "img_num">         <input type = "submit" name = "submit" value = "search">         </form>             <?php         }     else                 $img_num = ($_POST['img_num']);         echo '<img src= /home/images/$img_num.pdf >';                                                                                                                                                ?> [/code] and the cron question is: i have a cron running twice a day on my host. it sends an email once a criteria is met. unfortunatly it keeps sending the email. is there a way to have it only email that address once then skip it next time it checks the database? thanks for the help. i am just learning sql/php and it is pretty challenging to a newb!
×
×
  • 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.