Jump to content

fastsol

Moderators
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by fastsol

  1. FTP is not needed for what you are trying to do, that's a completely different thing. Please post your current code so we can see where the issue may be.
  2. In this block else{ // No error found! Move uploaded files if(move_uploaded_file($_FILES["files"]["tmp_name"][$f], $path.$name)) $count++; // Number of successfully uploaded file } Add {} to your if(), then make an array to store all the $path.$name that are moved. Then below use a foreach to build an actual full path link to each file and insert it into the email where you want. $moved_files = array(); else{ // No error found! Move uploaded files if(move_uploaded_file($_FILES["files"]["tmp_name"][$f], $path.$name)) { $count++; // Number of successfully uploaded file $moved_files[] = $path.$name; } } $full_paths = ''; $domain_path = 'http://domain.com/'; foreach($moved_files as $m) { $full_paths .= $domain_path.$m."\n\n"; } $message = "Please find below links to file transfer from : " . $from . "(" . $from_email . ") \n\n The following message was included with the files : " . $comment . "\n\n Links here : " . $full_paths . "\n\n Regards Adlantic Team "; That should get you started.
  3. I use EZ Texting on my site to send out messages in an automated fashion but I don't have anything setup for incoming messages so I can't comment on the ability to do that with these guys. Pricing for what I do is very reasonable.
  4. Yeah if the image file size was large from way back then, it probably makes sense to do it the way you are. Otherwise in todays time it would be best to just photoshop the image and save it for web to keep the file size down and then there are also compression things that can be done, all without making 2 of the same images.
  5. Why even bother serving 2 different images based on device. Unless the original image is just way to high a file size. The better way is to simply allow the image to scale down automatically via css. Then the image will just shrink when it's container is smaller than the image. Unless I am unclear as to why you are wanting to change the images in the first place. Something like this img { height: auto; max-width: 100%; }
  6. You need to get rid of the css height on this div <div class="su-column-inner su-clearfix"> And then put each of the <a> tags in the div into their own div. When you remove the height of the div I said, the Events image doesn't line up right cause you are placing it relative to the parent div rather than the <a> like you think you are.
  7. In my opinion, whoever built the code that lead to the vulnerability. So just because a web designer used a third party script, they shouldn't be held responsible for the issue if the issue lies in the third party script.
  8. Here is a good tutorial on how to use the new PayPal API. He shows the concept of what to do. https://www.youtube.com/watch?v=BD1dOWIABe0&list=PLfdtiltiRHWFNND8ISev9O4SmDx2g1HyW&index=1
  9. Do an echo on the $sql var and see if the query string looks correct.
  10. This is misspelled, missing a r $error = $db->erroInfo(); //Should be $error = $db->errorInfo();
  11. Sounds like a pretty straight forward process, what are you having problems with?
  12. Correct, you can't have 2 returns in the same function and expect any data to exist or processing to happen after the function encounters the first return. So in this instance, you would need to combine the data and then return it only once. There are better ways to go about this by using a more advanced db wrapper class that would automatically do the second query and have that info available to you in a number of ways after the fact. Or make your original query run a sub query to get all the found rows and store them in a temp column in the query result.
  13. Well the example you showed is not an array, nor is it a multidimensional array. So please post an actual array example and the actual kind of output you are trying to achieve.
  14. None of that made any sense at all. Try again to explain what the problem is. Code for the page in question might help also.
  15. Please post your current css and html code here. Posting it to a image site does nobody any good, we can't copy it to test against. Just make sure to use the <> button in the WYSIWYG forum post editor to post the code.
  16. Ok, it's most likely the default margin on the h1 and ul tags. You should use a reset.css file to strip off all the browser default padding and margins. Then you can set everything the exact way you want it. This is the reset that I use on every website. /*////////////// CORE FILE DO NOT MODIFY ////////////////////*/ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } Just include that before your other css file. You may have to adjust some other things too after using this, but it's truly the best way to do css.
  17. Without the html is almost impossible to tell you anything. But it would be much easier to figure out with a link to the actual page.
  18. Well if you're going to use mysqli then you would obviously need to use the mysqli functions to get info from the db too. Simply connecting with mysqli doesn't mean you can use the standard MySQL functions after that, umm like you are.
  19. You're missing a , (comma) at the end of this line `Statistics` int(11) NOT NULL DEFAULT'[ [ ] ]'
  20. You need to actually use html name attributes, not your native language. Change this line <input type="submit" nazwa="submit" value="submit" /> To this <input type="submit" name="submit" value="submit" />
  21. You need to wrap all the processing and query code from this line down in an if() to check if the form has been posted. $dane_z_tab = ($_POST['checkbox']); Something like this if(isset($_POST['do'])) // Checks the post var from the name of your submit button { $dane_z_tab = ($_POST['checkbox']); // echo "dane_z_tab ".$dane_z_tab.'<br />'; // $dane_z_tab It is an array when you select one checkbox // echo gettype($dane_z_tab).'<br />'; while ($val_checkbox = current($dane_z_tab)) { // echo "value_checkbox ".$val_checkbox; //value = "wartosc" if ($val_checkbox == 'wartosc') { $klucz = key($dane_z_tab).'<br />'; //pulling the key (id record) echo "Klucz: ".$klucz; } next($dane_z_tab); } $selectOption = $_POST['select']; $name = $_POST['name']; $description = $_POST['description']; echo "Klucz: ".$klucz; if ($selectOption == 'add' and $name and $description) { echo 'zaznaczyles dodawnaie'; $ins = mysql_query("INSERT INTO test SET name='$name', description='$description'"); }elseif ($selectOption == 'edit') { echo 'zaznaczyles edit'; mysql_query("UPDATE test SET name='$name',description='$description' WHERE id='$klucz'"); }else if($selectOption == 'remove' and isset($_POST['checkbox'])) { mysql_query("DELETE FROM test WHERE id='$klucz'"); echo 'zaznaczyles remove'; }
  22. For starters, you need to move the closing </form> below the submit button. All the inputs besides the checkbox are not even being submitted with the form cause they are outside of the form.
  23. You missed a / in the include include( C_URL . '/incs/header.php' );
  24. That's a permissions issue on the table itself, not the query or coding at this point. The table is denying you from using SELECT on it.
×
×
  • 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.