Jump to content

ManicMax

Members
  • Posts

    38
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    manicmaniacmax@hotmail.co.uk

Profile Information

  • Gender
    Male
  • Location
    United Kingdom - Essex

ManicMax's Achievements

Member

Member (2/5)

0

Reputation

  1. O well how can I name the output ?
  2. thanks for the quick replys. The reason to send $name in my function is so if the $var is $_POST you can name the output $email instead of $_POST everytime.
  3. Hello I have written this function and want to use it within mysql_query's but am unsure whether this will work. I don't fully understand the rules when concerning single quotes within single quotes. function clean($var,$name){ if(!get_magic_quotes_gpc()) { $$name=mysql_real_escape_string($var); }else { $$name=$var; } mysql_query(SELECT * FROM users WHERE email='clean('$_POST[email]','email')' AND pass='clean('$_POST[pass]','pass')')
  4. All these people are signing up specifically to recieve these emails. Could someone explain more about this server I could route my emails through. I will most likely be using GoDaddy as my clients host.
  5. So if I add the optout it will mean I should not get blacklisted?
  6. What this is for is to send updates to members of a site. I'm guessing it will be lets say an email every few days to around 25 -75 users at first, but these arbitrary amounts could greatly increase.
  7. Hello I'm looking for some advice and maybe a point in the right direction. I understand how to use the PHP mail() function, but I would like some advice on how to use this to send to large volumes of people from a hundered to maybe a few thousands. I'm guessing I should use a loop function and if I did this I might be able to have a counter on the page like 1 out of 100 sent and increment as it sends. I also am guessing that the page the script is run off would have to also stay open until it was completed. All help is welcome.
  8. Your a start chigley you really are!! Thats two problems solved by you today ok make it three how do I change the subject title and image of this post to be solved?
  9. it is only letting me update one field at a time. Date field is varchar. the query will only work if i update one field at a time
  10. yes, im also running it directly in phpmyadmin and it says 0 rows affected ran in 0.022 seconds
  11. Here is the mysql query and it is running I have an or die on the end and it doesnt die. is something in my syntax wrong??? UPDATE calendar SET am700='1' AND am730='1' WHERE date='14/04/08'
  12. ok well i have the array times this contains the field names of the fields in my databse. $times[0]='am700'; $times[1]='am730'; $times[2]='am800'; $times[3]='am830'; $times[4]='am900'; $times[5]='am930'; A mysql query is run selects one row and all of the fields. I then want to echo certain ones depending on the script. What I need to do is put which every varaible from the times array is picked into the $row[HERE ]. So at the moment it comes out looking like echo $row[$times[1]]; Along those lines
  13. Here is how the time structure is made up: $times[0]='am700'; $times[1]='am730'; $times[2]='am800'; $times[3]='am830'; $times[4]='am900'; $times[5]='am930'; What I'm trying to do is query a database then echo a result from a particular field. The $times array is the field names and $row is the mysql_fetch_array() variable. I want to combine then like i tried. I need to put the $times variable into the [] of the $row array
  14. I want to define what exact variable to echo but my attempts so far have failed. My code is below but it just will not echo. echo "$row[" . $times[0] . "]";
  15. I'm trying to store the data and time informations is inserted into the database. I don't know what the best method is and also I need to be able to search the data by month and then output the day it was submitted also maybe output the date it was submitted in a dd-mm-yy format. Any Help Appriciated!
×
×
  • 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.