Jump to content

ipwnzphp

Members
  • Posts

    129
  • Joined

  • Last visited

    Never

Everything posted by ipwnzphp

  1. I have attached the full file of the code. [attachment deleted by admin]
  2. Still no luck. <?php $pull_url = mysql_query("SELECT * FROM `jos_autolinks`"); echo (empty($recipe->ingredients)) ? 'Ingredients is empty ' : ''; $theviddetails2 = $recipe->ingredients; echo (empty($theviddetails2)) ? 'Vid Details is empty ' : ''; while ($url = mysql_fetch_array($pull_url)) { $keyword = $url['phrase']; $link = $url['link']; $target = $url['target']; echo (empty($theviddetails2)) ? 'Vid2 Details is empty ' : ''; $theviddetails2 = preg_replace("/$keyword/", "<a href='$link' target='$target' style='text-decoration:none; border-bottom: 1px dotted;'>$keyword</a>", $theviddetails2); } echo (empty($theviddetails2)) ? 'Vid3 Details is empty ' : ''; global $theviddetails2; print $theviddetails2; ?>
  3. What about if i did $mn = split("\n", $recipe->ingredients); print_r($mn); to put the content in a array, Now how would i search and link?
  4. i know what global is, i just dont understand what you are saying to do.
  5. umm say wat? lol. would it help if i showed u the link with my code?
  6. Returned Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid2 Details is empty Vid3 Details is empty
  7. Nope, Still does not show the content at all.
  8. Dose not show the content at all now.
  9. Shows content once now. But does not link the keywords now.
  10. Anyone? still trying to get this. nothing i am trying is working.
  11. The code below just keeps displaying the content over and over. It links the auto keywords. But not in every repeat of the content. Also when i add a keyword phrase to the database it will remove the keyword form the other pages and show the new keyword i entered in only. Need it so i can have multiple keywords on every page. I thought this would work. But i must need to array something. Any help is much appreciated. <? $pull_url = mysql_query("SELECT * FROM `jos_autolinks`"); while ($url = mysql_fetch_array($pull_url)) { $keyword = $url['phrase']; $link = $url['link']; $target = $url['target']; $theviddetails2 = preg_replace("/$keyword/", "<a href='$link' target='$target' style='text-decoration:none; border-bottom: 1px dotted;'>$keyword</a>", $recipe->ingredients); print $theviddetails2; } ?>
  12. yea i know that but it should say 0.00 this is a gift card coupon
  13. $amount = "155"; // Cookie = 155 setcookie("vouch_price", $amount, time()+(60*60*24*5), "/", ""); if (isset($_COOKIE['vouch_price'])) { $order_total = $_COOKIE['vouch_price'] - $total; } else { $order_total += $shipping_total + $total; } the price of $total = 35 the price of the cookie = 155 now when it comes back it says 120 insted of saying 0.00 for the total of the order.
  14. i am setting the $$ in the cookie
  15. but im not dealing with dates here im dealing with $$$
  16. umm? could you show some code?
  17. what dose time half to do with math?
  18. $balanc = mysql_query("SELECT * FROM `jos_vm_vouchers` WHERE voucher_number = '$cop_code'") or die (mysql_error()); $balan = mysql_fetch_array($balanc); $amount = $balan['voucher_value']; setcookie("vouch_price", $amount, time()+(60*60*24*5), "/", ""); echo $_COOKIE['vouch_price']; if (isset($_COOKIE['vouch_price'])) { $order_total = $_COOKIE['vouch_price'] - $total; } else { $order_total += $shipping_total + $total; } say the cookie is 155 and the price is 35 well. the amount is coming back as 120 but it should come back as 0 why is it not working?
  19. o but wait.. if i have 2 services in the db it dont show both the services in the email it only shows 1
  20. thanks works great! i had tried continue; but it didnt work but break; did! Thanks again!
  21. so it will pull the key words to match up with the services then it sends a email to the user.
  22. $keyword = mysql_query("SELECT * FROM `sl_keywords` WHERE c_id = '$id'"); while ($keywords = mysql_fetch_array($keyword)) { $key = $keywords['keyword']; $find = strpos($Desc, $key); if ($find == true) { $service = mysql_query("SELECT * FROM sl_services WHERE service = '$key' && c_id = '$id'"); $num = mysql_num_rows($service); $services = mysql_fetch_array($service); $service = $services['service']; $price = $services['price']; $hours = $services['hours']; $option = $services['option']; $Name = "$_POST[name]"; $Email = "$_POST[email]"; $Phone = "$_POST[phone]"; $Budget = "$_POST[budget]"; $Site = "$_POST[site]"; $Work = "$_POST[work]"; $Desc = "$_POST[desc]"; $Im_client = "$_POST[im_client]"; $message = "$company Free Quote System Form" . "\n\n"; $message .= 'Name: ' . $Name . "\n"; $message .= 'Email: ' . $Email . "\n"; $message .= 'Phone: ' . $Phone . "\n"; $message .= 'Project Budget: ' . $Budget . "\n"; $message .= 'Current Site: ' . $Site . "\n"; $message .= 'Type Of Work: ' . $Work . "\n"; $message .= 'Project Desc: ' . $Desc . "\n"; $message .= 'IM Client: ' . $Im_client . "\n\n"; if ($num) { mail($email, "$company - New Quote Request", $message, "From: $Name"); } } }
  23. i have a mail() function inside a while loop of mysql and i need to make it only send the email 1 time for all the results like if joomla and web design is found only send 1 email for both.
×
×
  • 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.