Jump to content

sayjoy

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by sayjoy

  1. Try this and see if you get an error: mysql_query("UPDATE msm_content SET created = '2011-01-02 00:00:00', modified = '2011-01-01 00:00:00'") or die ("cannt update ".mysql_error()); if you didnt get an error message, then check the data types of your fields in the database. you can try using data type VARCHAR with field length 30 or using data type text.
  2. I tried something like: $imap = imap_open ("{localhost}INBOX","c_panel username here","password"); I got: Warning: imap_open() [function.imap-open]: Couldn't open stream {localhost}INBOX in /home/nilaalum/public_html/admin/mails.php on line 10
  3. Try adding a line of error message to know it the problem is from the database: if ($no==0) { $sql = "insert into mail(id,fname,lname,email) values(NULL,'$fname','$lname','$email')"; //$result = mysql_query($sql) or die("insert fails"); // replace this line with: $result = mysql_query($sql) or die("insert fails ".mysq_error()); //this will tell where the error is from, if it is a database problem echo "Email added to list: " . LISTNAME; } else {
  4. Hi all, how do I read emails sent to an email account on my site such as admin@mysite.com?
  5. try echoing something at the begining of each while loop as a test. It may be that your condition didnt execute true and this implies that there will be no running of the codes within the frame. but try something like: while (condition){ echo "something "; // continue your codes; } in this case, something is echoed for as many times as the condition executes true, else nothing is echoed. If nothing is echoed, you can then check your conditions to verify it executes true.
×
×
  • 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.