Jump to content

popescuradhoo

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

popescuradhoo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I have the following php code that should return a rss page, but the problem is that nothing from my sql data base appears on the rss page. All the connection info are correct. Can you tell me why doesn't return any article?? Thanks <?php $db = new mysqli("localhost", "user", "pass", "site_db"); ?> <?php header('Content-type: text/xml'); ?> <?php echo "<?";?>xml version="1.0" encoding="iso-8859-1"<?php echo "?>";?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>Quantic Lab</title> <link>http://www.quanticlab.com</link> <description>Press Releases</description> <language>en-us</language> <copyright>2009 Quantic Lab</copyright> <pubDate>Tue, 10 Apr 2009 22:31:45 EDT</pubDate> <lastBuildDate>Tue, 10 Apr 2009 22:31:45 EDT</lastBuildDate> <category>Quality Assurance</category> <generator>QL RSS Generator</generator> <ttl>60</ttl> <image> <url>http://www.quanticlab.com/feed/Sigla_alb.jpg</url> <title>Quantic Lab</title> <link>http://www.quanticlab.com</link> <height>95</height> <width>133</width> <description>Quality Assurence</description> </image> <?php $query = "SELECT * FROM news"; $results = $db->query($query); $number = $results->num_rows; for ($i = 1; $i <= $number; $i++) { $row = $results->fetch_assoc(); $title = $row['news_titlu']; $description = $row['news_short']; $link = "http://www.quanticlab.com/press.php?id_news=".$row['id_news']; $date = date("r", $row['timestamp']); ?> <item> <title><?php echo $title; ?></title> <description><?php echo $description; ?></description> <link><?php echo $link; ?></link> <pubDate><?php echo $date; ?></pubDate> <guid><?php echo $link; ?></guid> </item> <?php } ?> </channel> </rss> <?php $db->close(); ?>
  2. I have a exchange 2003 mail server. What config. is needed to send mail with php?
  3. If you want to import your db you need first to go in your wamp/xampp phpmyadmin and choose export . Then copy all that text into your phpmyadmin of your host and choose SLQ and paste the code there. Did you manage to do it?
  4. There are a few solutions: 1. Try to untick the SVC check box from xampp cpanel and start mysql again. 2. Go to \xampp\mysql\ and run mysql_uninstallservice.bat and start xampp again; 3.Close your Skype... (odd problem with xampp) Do any of this work?
  5. Hello, I have a web server running on WIndows 2003 server. My problem is that I can't send mails using this php code: <?php $to = "someone@example.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "someonelse@example.com";[url] $headers = "From: $from";[/url] mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> On other web hosting severs, the script works fine, but on mine, it doesn't send the mail. I think that is a problem on my configurations. I have here (http://radupopescu.ro/phpinfo.rar) some screenshot of my phpinfo file, maybe you can help me with this. Thanks.
×
×
  • 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.