Jump to content

cyberRobot

Moderators
  • Posts

    3,145
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by cyberRobot

  1. Ahh...it looks like IE11 doesn't like the comma. Try adding a semi-colon between the "10" and your website address...like the following: <meta http-equiv="refresh" content="10; URL=http://www.google.com/"> More information about the meta refresh tag and its syntax can be found here: http://www.w3.org/TR/WCAG20-TECHS/H76.html
  2. The following <meta> tag works for me: <meta http-equiv="refresh" content="10 ,URL=http://www.google.com/"> One thing that I noticed is your <meta> tag uses "http://www.desmond-otoole.co.uk/". But the text in your <h1> tag says the address is "www.des-otoole.co.uk". Which address is correct?
  3. Showing a message can be useful for those that link to / bookmarked the old address. Hopefully they will see the message and correct their link(s) / bookmark(s). It's easier to miss the address change if you instantly direct them to the new location.
  4. You could try something like this: <?php //CONNECT TO DATABASE $con = mysqli_connect("host","database","password"); if (!$con){die('Could not connect: ' . mysqli_error($con));} mysqli_select_db($con,"database"); //GET EMAILS $sql = "SELECT email FROM emails WHERE id <= 600 AND email IS NOT NULL"; $result = mysqli_query($con,$sql); while($row = mysqli_fetch_assoc($result)) { echo $row['email']; } //CLOSE DATABASE mysqli_close($con); ?> Note: if you're not doing so already, you'll want to look into storing you're database connection script in an external file and use something like require_once() to import it. That way when you want / need to change the database login credentials, you'll only need to change it once.
  5. Have you tried contacting the plugin author?
  6. You currently use getcwd() to define $dirpath: $dirpath = realpath(dirname(getcwd())); That function returns the working path. More information can be found here: http://php.net/manual/en/function.getcwd.php You'll need to find an alternative way to add the domain name. You could start here: https://www.google.com/search?q=php%20get%20domain%20name&rct=j Or...have you tried using a root-relative link? Instead of "http://ebsp.comt/uploads/filename", you could try "/uploads/filename".
  7. If you wanted to move the starting point (y-position) down by 15 every time, you could do something like this: <?php //... imagestring($image, $fontsize, $leftside, $linedown, ($key+1).'..' . $driver, $font_red); //UPDATE Y-POSITION FOR NEXT LOOP ITERATION $linedown += 15; } ?>
  8. The fourth argument for imagestring(), where you have $linedown, should represent the y-position for your text. As far as I can tell, that value isn't being changed for each iteration of the loop. Also, I would image that the call to imagestring() for the "Top 5 Drivers" header should be made outside the loop. Otherwise the header is added for every entry in $rows.
  9. Is PHP set to show all errors and warnings? Note that you can add the following to the top of your script(s) during the debugging process to show them: error_reporting(E_ALL); ini_set('display_errors', 1); Is $customer being set anywhere else in the script...besides when the "customerRef" GET variable is passed? Assuming it's not, you'll want to enclose all the statements involving $customer in that if construct. Note that you'll also want to use isset() in the if construct to avoid an undefined index warning. //IF CUSTOMER REFERENCE WAS PASSED, PROCESS IT if(isset($_GET['customerRef'])) { $customer = explode('~',$_GET['customerRef']); echo $customer[0]; //should be prefix echo $customer[1]; //should be custid $vars = $customer[1]; echo $vars; ///ELSE...SKIP PROCESSING / DISPLAY ERROR } else { echo '<p>GET variable is missing...</p>'; }
  10. cyberRobot

    HI ALL!

    Welcome and congrats on the nearly finished degree!
  11. Have you tried using the WHERE clause? http://www.techonthenet.com/mysql/where.php If I'm understanding the problem correctly, you basically need to get the results WHERE the dealer ID is equal to the one chosen.
  12. It looks like you're calling the mail() function twice. mail($to, $subject, $message, $headers); mail ($email, $subject, $message, "from:".$from); The second call was probably left in there by mistake.
  13. Welcome Quick!
  14. Try changing this $headers = 'From: reply.info@xxxxxx'. "\r\n" . $headers .= 'Reply-To: xxxxxxx' . "\r\n" . $headers .= 'Cc: [email protected]' . "\r\n" . X-Mailer: PHP/' . phpversion(); To this $headers = 'From: reply.info@xxxxxx'. "\r\n"; $headers .= 'Reply-To: xxxxxxx' . "\r\n"; $headers .= 'Cc: [email protected]' . "\r\n"; $headers .= 'X-Mailer: PHP/' . phpversion(); Note that I replace the concatenation characters at the end with semi-colons. I also added the opening single quote for the "X-Mailer" header. By the way, you don't need to include the "Reply-To" address and the "X-Mailer" header...unless you need them.
  15. As ginerjm indicated, $from doesn't look to be define. With that said, the "From" address is defined in $headers...so the fifth argument can be removed altogether. Side note: you define two variables which I assume contain the "To" address here: $email="info@xxxxxxninja"; $to ="[email protected]"; However, the mail() function uses the $email variable. So technically you don't need both variables.
  16. The "Cc" and "From" information need to be included as the fourth argument (where you have $headers). Example #2 in the documentation for mail() should help show you how. http://php.net/manual/en/function.mail.php
  17. Have you looked into using local storage (HTML5)? More information can be found here: http://www.smashingmagazine.com/2010/10/11/local-storage-and-how-to-use-it/
  18. Note that the following line from Psycho's code has some extra characters: ec$projectList .=ho "</form><br>\n"; It should be: $projectList .= "</form><br>\n";
  19. When using tags, this forum sometimes has issues with what comes after the box. However, the issue seems to go away if you preview the post before submitting it. To preview the post you can click the "More Reply Options" button.
  20. I'm not sure why the forum doesn't let you paste the code. But to add code tags, you can use the method describe by davidannis. Or you can type out the tags: your code goes here If the code tags are added properly, you should get a code box like the following: your code goes here
×
×
  • 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.