Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Location
    Zenica, Bosnia

webtrix's Achievements


Newbie (1/7)



  1. Ohh?Where did you changed it?Why don't you add this at the start of mailsend.phperror_reporting(E_ALL);ini_set('html_errors', 1);ini_set('log_errors', 0);ini_set('display_errors', 1); And also: Also there is a spelling error hereif($activate == "0"){$CheckUser = mysql_query("SELECT emial FROM mail_list LIMIT $begin,$everytime");$CheckUserN = mysql_query("SELECT id FROM mail_list");$field="emial";}Change emial to emailAfter you do that, post your mailsend.php again here ..
  2. Have you changed hendawy_cpmail to hendawy_mail, like here:// START GET MSG$CheckUserC = mysql_query("SELECT * FROM hendawy_cpmail order by id desc limit 0,1");Double check ...
  3. subject,activate,message,dateThere are no any of these fields in your tableYou will have to log in to your cPanel > phpmyadmin and add these fields to hendawy_mail table
  4. OK, can you tell us you database & table namesAlso, list your field names for each table
  5. Dreamweaver can't display PHP same as HTML ... It just can't ...
  6. webtrix

    Blank Page

    And your php & mysql versions are same, on your server & computer?
  7. It would be nice if you could post your html output..<?php echo result1 \n result2 \n result3 ;?>
  8. Start > Run > cmdcd yourself to /mysql/bin (I suppose)mysql --user=user_name --password=your_password db_namehttp://www.google.com/search?q=mysql+command+linehttp://dev.mysql.com/doc/mysql/en/mysql.htmlhttp://dba.fyicenter.com/faq/mysql/mysql_c...face_mysql.html
  9. Yes! That's it!It works, finally :)OK, give me some time and I'll post full code here@Deirdre's Dad You're such a - Keep up the work!@alexnofue Thanks!!!!
  10. Oh well, Error console now reports:Error: document.getElementById("id") is nullSource File: http://www.couponflux.com/wp-content/themes/cf/votes.jsLine: 25Current HTML output:<div id="[b]poll4325[/b]" name="[b]4325[/b]"> <!-- DO THIS FOR ALL -->Did it work for you?<form><input type="radio" name="vote" value="[b]0 4325[/b]" onclick="getVote([b]this.value[/b])">Yes | <input type="radio" name="vote" value="1 4325" onclick="getVote(this.value)">No</form></div>
  11. Seems to me, you mixed it all up.. Check this out <html><head><?php$mybanner_url = "http://www.w3schools.com";$my_banner_img = "banner.gif";?><script>function openwindow(){window.open("<?=$mybanner_url?>","welcome","menubar=1,resizable=1,width=350,height=250");}</SCRIPT></head><body><?php$str = "<a href='{$mybanner_url}' target='_blank'><img src='{$my_banner_img}'></a>";echo $str;?><?php echo ("<a href='java script: openwindow()'>open Sesame</a>"); ?></body></html> Works like a charmHere is an HTML output: <html><head><script>function openwindow(){ window.open("http://www.w3schools.com","welcome","menubar=1,resizable=1,width=350,height=250");}</SCRIPT></head><body><a href='http://www.w3schools.com' target='_blank'><img src='banner.gif'></a><a href='java script: openwindow()'>open Sesame </a></body></html> Hope you'll get out of this what you need! :)E.g.echo ("<a href='java script: openwindow()'><img src='<?=$my_banner_img?>'> </a>"); Edit: NOTE:I guess Codebox breaks word javascript into java script in above example
  12. I'm sorry, but it doesn't work :)Using code exactly as you posted, & I removed that unnecessary lineHere is current html output:<div id="poll4325" name="4325"> <!-- DO THIS FOR ALL -->Did it work for you?<form><input type="radio" name="vote" value="0 4325" onclick="getVote(this)">Yes | <input type="radio" name="vote" value="1 4325" onclick="getVote(this)">No</form></div> Error console reports:Error: val.substr is not a functionSource File: http://www.couponflux.com/wp-content/themes/cf/votes.jsLine: 24I. Explorer reports an error: Line 25, char 5, Object doesn't support this property or method ... Not sure if it helps..Other than that, nothing happens... Any ideas?btw, I really appreciate your help!
  13. Google this first, and learn what's a filesystem(local) directory and what's webserver directoryLet's say you have web server on your Windows computer, and /admin/ directory inside it... Then your webserver directory for admin area would be http://www.yoursite.com/admin/, and your filesystem directory would be something like C:\webserver\public_html\admin\Since this on windows & linux(unix) systems isn't the same "/home/your_username/public_html/admin" is where your admin directory would be...Uhm, I hope it make sense...Trial and error! Until you find out how it doesn't work you will not know how it works...The following may, or may not be correct: define('DB_SERVER_USERNAME', 'p89zq7_rodger'); // your username that you use to log into your web serverdefine('DB_SERVER_PASSWORD', 'PASSWORD_HERE'); // your password that you use to log into your web serverdefine('DB_DATABASE', 'p89zq7_store'); // your databasedefine('DIR_FS_CATALOG', '/home/p89zq7/public_html/'); define('HTTP_SERVER', 'http://www.yoursite.com'); define('HTTP_COOKIE_DOMAIN', '.yoursite.com'); // do not include the wwwdefine('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'p89zq7_rodger'); // your username that you use to log into your web serverdefine('DB_SERVER_PASSWORD', 'PASSWORD_HERE'); // your password that you use to log into your web serverdefine('DB_DATABASE', 'p89zq7_store'); // your databasedefine('DIR_FS_ADMIN', '/home/p89zq7/public_html/admin/'); // replace username with your web server usernamedefine('DIR_FS_CATALOG', '/home/p89zq7/public_html/'); define('DIR_FS_DOCUMENT_ROOT', '/home/p89zq7/public_html'); define('SITE', 'www.yoursite.com'); define('WWW', 'http://www.yoursite.com'); define('HTTP_SERVER', 'http://www.yoursite.com');define('HTTP_CATALOG_SERVER', 'http://www.yoursite.com');define('DB_SERVER', 'localhost');
  14. Seems to me that you probably don't need empty() here... I've found that when using if(isset($_POST)), $_POST is an autoglobal and is always set. But when using specific keys like here $_POST['day'], if e.g. $_POST['day'] is not set (!isset), can it be anything else but empty?(?!) So, I think:if (!isset($_POST['year']) OR !isset($_POST['month']) OR !isset($_POST['day'])is just enoughTest it! Experiment!?(Am I wrong, anyone?)
  15. I think that's Googlebot.Apart from Google bot, there are more google's robots:(from the below page)# Googlebot: crawl pages from our web index and our news index# Googlebot-Mobile: crawls pages for our mobile index# Googlebot-Image: crawls pages for our image index# Mediapartners-Google: crawls pages to determine AdSense content. We only use this bot to crawl your site if AdSense ads are displayed on your site.# Adsbot-GoogleHow do I block or allow Googlebot?: http://www.google.com/support/webmasters/b...mp;answer=40364And also, find the difference:bad >> if($_SERVER['HTTP_USER_AGENT] = 'Google')good >> if($_SERVER['HTTP_USER_AGENT'] = 'Google')
  • Create New...