-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
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!
-
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"; } } } } ?>
-
Direct from the manual <?php /* example 1 */ for ($i = 1; $i <= 10; $i++) { echo $i; } //... snip ?>
-
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.
-
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
-
Solved ? if so please click topic solved (bottom left)
-
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 ?
-
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
-
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
-
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>"); } } } ?>
-
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
-
use is_dir()
-
yeah you can do it, most use ASPX, but it all depends on the API
-
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!
-
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!
-
Meah.. i did say the idea is sound
-
Make your minid up but you started with Hows that working for you ?
-
Also your not returning any thing! try this SET @usr_count = (select count (*) from table) RETURN @usr_count
-
But that will wipe out the whole line, i thought you just wanted the = STRING: removed in anycase solved ? (bottom right topic solved)
-
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; ?>
-
$Number="\$395.00";
-
What code, mines an example, yours i havn't seen, without any useful data i'm not sure what i can say!
-
So this $result = preg_replace('/\s=\s.*?:\s$/m', '', $str); to
-
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!
-
That shouldn't be a problem, have you got it emailing ?