Jump to content

jbwebdesign

Member
  • Posts

    167
  • Joined

  • Last visited

Everything posted by jbwebdesign

  1. I am trying to edit a Script but i'm having problems with it because I keep getting this error Fatal error: Call to a member function value() on a non-object Can anyone tell me what this means?? and how can I fix it?? this is the line of code that gives me the error...... $row_user = $db->get_sql_row("SELECT user_id FROM probid_users WHERE user_id=" . $session->value('user_id'));
  2. okay, sounds good thanks......Because I really want to know what I am doing wrong
  3. hello everyone, I was wondering if anyone can help me out..... I created a script and I want it to display the data inside the directory but I cant get it to display properly..... you see I am trying to make a link so that the file inside the directory becomes clickable and it will display when you click it but I am having a problem with the loops.... here is my script when i run the script it doesn't link to the proper data file inside the directory...... does anyone have any idea why?? <?php $dir = "FORMfields/forms/generated/"; $files = scandir($dir); foreach($files as $key => $value){ echo '
  4. I created a script that sends 10,000 emails in 1 shot but I was wondering if anyone knows how can i do this without any problems. It turns out that when I try to send the email, my host will not allow it. Does any one know if I can do this with my own dedicated server?? If I have a dedicated server, what does it mean when it has 1,000 relays per day?? does that mean that I cannot use my newsletter script?? any help will be appreciated. Thanks
  5. oh okay.....thanks for the info...........how would i find out how many emails i can send though? you see I am working on a non for profit organizations website and they host raffles and they have an emailing list of about 10,000 people so i want to send out the email of the winning ticket number.
  6. I am trying to create a script that emails about 10,000 different emails.........i want to email the same message to them all.......does anyone have any ideas on how i can do this? my script is as follows.......... where it says to, I have all 10,000 email addresses and when i hit send it gives me an error..... how ever when i send to only 1 or 2 different emails it works fine......... <?php // Contact subject $subject = $_POST['subject']; // Details $message=$_POST['text']; // Mail of sender $mail_from=$_POST['email']; // From $header="from: <$mail_from>"; // Enter your email address $to =$_POST['send_txt']; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "your message has been sent"; echo " Your message was sent to: $to"; } else { echo "ERROR, Please contact the Web Developer of this Website!"; } ?>
  7. first of all I would like to thank you very very much for your help! what I am trying to do is...... I want the value inside the while loop to be returned inside the text box..... with the code the way it is now, it returns the following...... 2 apples are left 3 apples are left 4 apples are left 5 apples are left 6 apples are left 7 apples are left 8 apples are left 9 apples are left 10 apples are left 11 apples are left I want that to be inside the text box......what am I doing wrong? how come it just says on inside the text box instead of returning the correct value??
  8. apples: oranges: <?php $a = $_POST['apples']; $o = $_POST['oranges']; $count = 1; $monster = $a; if(isset($a)){ while($count<=10){ echo ++$count . " apples are left "; } } if(isset($o)){ while($count<=10){ echo ++$count . " oranges are left "; } } ?> message:
  9. hello everyone, I was wondering if anyone can help me out.....I want to be able to set a variable as a value of one of my forms.....here is my code but it doesn't work Untitled Document send to: <?php $test = $_POST['test']; if(isset($test)){ $monster = "testing"; } ?> i want the value for $monster to be inside my text box by the name of "send_to" if you have any ideas on how i can do this, please help me out. thanks:D
  10. I added an input name to the submit button, then i added this //DEFINE VARIABLES FOR MYSQL ROWS $id = $_GET['ff_id']; $get_record = $_GET['get_records']; if(isset($get_record)){ echo $my_rows; }
  11. Hey stephan, To answer your question about what I did to fix my problem,......... <?php //=============================================== //CONNECT TO MY DATABASE AND SELECT MY DATABASE $con = mysql_connect('localhost','root',''); $sel = mysql_select_db('calendar'); //=============================================== //DEFINE VARIABLES FOR MYSQL ROWS $id = $_GET['ff_id']; $get_record = $_GET['get_records']; if(isset($get_record)){ echo $my_rows; } //BUILD MY QUERY $Q = "SELECT * FROM ps69_school_registration WHERE ff_id = '$id'"; $res = mysql_query($Q); $my_rows; //NOW I WILL CREATE A LOOP COMMAND while($row = mysql_fetch_array($res,MYSQL_ASSOC)){ $my_rows = $my_rows . ' Student id: ' . $row['ff_id'] . ' Student Name: ' . $row['Student_full_name'] . ' Route Number: ' . $row['Route_number'] . ' Begining Service Date: ' . $row['Begining_service_date'] . ' ' . ' ';} ?> student id: <?php echo $my_rows; ?>
  12. I never got an error, I just wasn't able to display records from mySQL but I fixed the problem thanx any way
  13. copy an paste the whole code from your form as well and then I can help you out
×
×
  • Create New...