Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. LMAO, sure.. I have given you 3 ways to return data, via last call, field returns and output.. these are the ONLY options.. Techie Out!
  2. little fun try this <?php if (file_exists($this->path . $this->path_compile . $folder . $file)) { echo 'got it'; } else { echo 'tough luck, nope: ' . $this->path . $this->path_compile . $folder . $file; if(is_dir($this->path)) { echo "Found: ".$this->path."<br />\n"; if(is_dir($this->path.$this->path_compile)) { echo "Found: ".$this->path.$this->path_compile."<br />\n"; if(is_dir($this->path.$this->path_compile.$folder)) { echo "Found: ".$this->path.$this->path_compile.$folder."<br />\n"; } } } } ?>
  3. Direct from the manual <?php /* example 1 */ for ($i = 1; $i <= 10; $i++) { echo $i; } //... snip ?>
  4. Gezzz, I try to help and you have no idea what your doing, yet insist your right read back 6 posts! I personally give up, with you.
  5. What! change your php.ini back, create a file called test.php, and put the code from this post, inside it, put the phpmailer classes in the same folder, and run test.php from that point it should be sending emails, after that, just create a form to pass what you want to the test.php
  6. Solved ? if so please click topic solved (bottom left)
  7. Whenever, i see a post with a subject like this, it reminds me of my a sales manager i know, every project his involved with goes wrong, now is it the people around him that mess it up ?
  8. Make sure your $fileImage array keys are lowercase $fileImage = array( 'pdf' => 'images/Adobe_PDF_icon.png', 'jpg' => 'images/jpeg_icon.jpeg'); is ok, but $fileImage = array( 'Pdf' => 'images/Adobe_PDF_icon.png', 'Jpg' => 'images/jpeg_icon.jpeg'); will fail if that doesn't work can you post what you have
  9. okay firstly i don't get the reasoning behind having it as two statements ? select * from table select count (*) from table select count (*) as Count, * from table
  10. I made a few A slight change to kickstarts code including unknown.gif for files without a known type, and irgnore list (don't show files) <?php $ignore = array(".","..","FTPCss.css","images","Thumbs.db"); $fileImage = array( 'pdf' => 'images/Adobe_PDF_icon.png', 'jpg' => 'images/jpeg_icon.jpeg'); while(false != ($file = readdir($dir))){ if(!in_array($file,$ignore)){ if(is_dir($file)) { echo ("<p><a href=\"$file\"> <img src='images/jpeg_icon.jpeg' /> $file</a> </p>"); }else{ $FileParts = explode(',',$file); $FileExtension = strtolower($FileParts[count($FileParts) - 1]); echo("<p><a href=\"$file\">".(isset($fileImage[$FileExtension]) ? "<img src='".$fileImage[$FileExtension]."' />" : "<img src='unknown.gif' />")." $file</a> </p>"); } } } ?>
  11. Can you post some PHP code your using also the full SP, i'm not using MSSQL here, but i'll see if i an get something returning
  12. yeah you can do it, most use ASPX, but it all depends on the API
  13. Yes, theirs a few mainly in the USA only a few in the UK (thats me) google "Premium SMS" you should find a few, find one with an API to manage it, basically they text the number and will get back a code, then they enter the code on the site for whatever! PS, this is NOT PHP related!
  14. Is a SP returns something it returns to the requester.. if php is the requester then its going to return their!!!!! There are two basic elements to return values: [*]putting your SELECT query results in a variable and [*]using the RETURN function to return your variable contents. Remember, use return values to have the stored procedure kick back a single value, not an entire record. If you need more output from your stored procedure than just a single value, the OUTPUT function would be more appropriate. as your returning a single value (the count) you sould use return.. its funny how you have no idea how to do this but want to do it your way! in anycase, continue doing it the why you want!.. if that works for you!
  15. Meah.. i did say the idea is sound
  16. Make your minid up but you started with Hows that working for you ?
  17. Also your not returning any thing! try this SET @usr_count = (select count (*) from table) RETURN @usr_count
  18. But that will wipe out the whole line, i thought you just wanted the = STRING: removed in anycase solved ? (bottom right topic solved)
  19. heres 2 options <?php //loop $ext = strtolower(array_pop(explode('.',$filename))); switch($ext) { case "txt": $icon = "notepad.gif" break; case "php": $icon = "script.gif" break; case "html": case "htm": $icon = "ff.gif" break; } echo $icon; ?> option #2 <?php $icons = array( 'txt' => 'notepad.gif', 'htm' => 'ff.gif', 'html' => 'ff.gif', 'php' => 'script.gif'); //loop $ext = strtolower(array_pop(explode('.',$filename))); $icon =(isset($icons[$ext]))?$icons[$ext]:"none.gif"; echo $icon; ?>
  20. $Number="\$395.00";
  21. What code, mines an example, yours i havn't seen, without any useful data i'm not sure what i can say!
  22. So this $result = preg_replace('/\s=\s.*?:\s$/m', '', $str); to
  23. To send to more just use $mail->AddAddress("John@doe.com", "John Doe"); $mail->AddAddress("Jane@doe.com", "Jane Doe"); subject, same idea $mail->Subject = "PHPMailer Test Subject via smtp (Gmail), basic"; No idea what you mean!
  24. That shouldn't be a problem, have you got it emailing ?
×
×
  • 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.