Jump to content

Bogey

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Bogey

  1. Got it working... Some ajustments with display did the trick. Thnx again!!!!!
  2. Bogey

    Mysql issue

    Thnks, thats clear!
  3. Can't get it accomplished :S Would you like to look at this site? www.nikkishome.nl When viewing page "gastenboek" (the orange page) in all browsers it looks good, but only IE shows it wrong... IE stretches the UL a lot so the page becomes twice as width as screensize. Any clues? I tried it with table instead of ul, but same problem. Hope you can help me without the code? If not, then let me know, then I got to go to filter the needed code and post it here.
  4. Thanks, got it working... Only one last thing to do on this website... Maybe I come back to that last thing, if I can't get it accomplished in a couple of hours...
  5. SEO stuff I will dive in lateron... first want site be up and running... thanks for your tip/comment about SEO... Been reading all post in here, but still can't get accomplished what I want with your suggestions... :s I go setup one or two new pages to test, to make sure no other code is affecting the pages... I come back to this with some code
  6. Bogey

    Mysql issue

    Build in mysqli for now... was alreadt busy with that some time ago... First thing on my list when I have time is to dive into PDO... What would you suggest? mysqli or PDO? thnx!!!!
  7. Bogey

    Mysql issue

    Thanks.... I go check out that tut...
  8. My website needs to be filled till bottom of screen, even when there is only one line of text. In all browser top of my page looks good: - companyname; - navigation - content If content is a little text, for example just one line, then I want background color of content div be till bottom of page, so this div needs to be filled all the way down to bottom. With the code I provide here, I accomplish this in Chrome and Opera, but in IE and Firefox the collored content div is only filled till there is no more content, so when just a little content, the page is white all the wat down till bottom of screen... hope you can help me out? This is the index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>TEST</title> <meta http-equiv="X-UA-Compatible" content="IE=8"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta http-equiv="Content-Language" content="nl"/> <meta name="robots" content="index,follow"/><meta name="description" content="<?php echo $rowSEO['meta_description'];?>"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <link rel="stylesheet" type="text/css" href="/css/test.css"> <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script></head><body><div id='container'><div id='wrapper'><div id='header'><div id='nav'><div id='nav_button' class='magenta' onclick="location.href='/index.php';"><p class='navFont'>Home</p></div><div id='nav_button' class='lightblue' onclick="location.href='/openingstijden.php';"><p class='navFont'>Openingstijden</p></div><div id='nav_button' class='yellow' onclick="location.href='/ervaringen.php';"><p class='navFont'>Ervaringen - Diploma's</p></div><div id='nav_button' class='green' onclick="location.href='/fotos.php';"><p class='navFont'>Foto's</p></div><div id='nav_button' class='orange' onclick="location.href='/gastenboek.php';"><p class='navFont'>Gastenboek</p></div><div id='nav_button' class='darkblue' onclick="location.href='/contact.php';"><p class='navFont'>Contact</p></div></div></div><div id='content_container1' class='border border1'><div class="container_content"><p>test</p></div></div></div></div></body></html> This is the css file: * {margin:0;padding:0;}html, body{height:100%;}#container{width:100%;top:0;bottom:0;display:block;position:absolute;background:#DEF0FA;}#wrapper{width:100%;height:100%;display:table; margin:0 auto;overflow:hidden;z-index:2;}#header{height:200px;width:100%;background:#DEF0FA;overflow:hidden;position:relative;}#nav{padding-left:0;padding-right:0;height:20%;width:100%;bottom:0px;position:absolute;}#nav_button{width:16.666%;height:100%;float:left;text-align:center;vertical-align:middle;font-weight:bold;cursor:pointer;display:table;border-top:3px solid #26B249;}#nav_button.magenta{background:magenta;/*border-left:5px solid #643609;*/}#nav_button.lightblue{background:cyan;}#nav_button.yellow{background:yellow;}#nav_button.green{background:green;}#nav_button.orange{background:orange;}#nav_button.darkblue{background:blue;}.container_content{position:relative;width:100%;height:calc(100% - 200px);height:-webkit-calc(100% - 200px);height:-moz-calc(100% - 200px);}#content_container1{height:80%;/*fall back if needed*/height:calc(100% + 200px);height:-moz-calc(100% + 200px);height:-webkit-calc(100% + 200px);overflow:hidden;}#content_container1{background:#E68FE6;}
  9. Bogey

    Mysql issue

    Hi all, Don't know to ask it here or in the SQL section, I assumed here, cause it is about Mysql instead of SQL. 1.) On page I have an textarea, where user fills in text; 2.) Then a js function sends this value to a php page; 3.) This PHP page, stores value in Mysql database. When for example I fill in this -> hello world then everything goes well. When for example I fill in this -> hello world's then nothing is stored in database. I has to do something with the single quote, but can't get it managed... Under here I post some code: 1.) <a href="javascript:void(0)" class='changeSaveLink' id='changeAlbum' onclick="changeTekst('change','textarea','1','50','50','iconIDalbum','changeAlbum','albumNaam','','albumnaam','<?php echo $GLOBALS["db_albums"];?>','50',<?php echo $albumID;?>)" title='Albumnaam aanpassen'></a> 2.) function changeTekst(saveORchange,inputKind,rows,cols,maxLength,iconID,ahrefID,inputDivID,inputID,columnName,dbTable,maxChars,albumID){var inputIDvalue="";if (inputID){var inputIDvalue = document.getElementById(inputID).value.replace(/n/g,'<br />');}if (saveORchange=='change'){var saveChange = 'saveAlbum';}if (saveORchange=='save'){var saveChange = 'changeAlbum';}document.getElementById(iconID).className=saveChange; run_xmlhttp();xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200) {document.getElementById(iconID).innerHTML=xmlhttp.responseText;run_xmlhttp();xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200) {document.getElementById(inputDivID).innerHTML=xmlhttp.responseText;}}xmlhttp.open('GET', '/cms/modules/changeTekst.php?a=' + saveORchange +'&b=' + inputID +'&c=' + inputIDvalue +'&d=' + columnName +'&e=' + inputKind +'&f=' + rows +'&g=' + cols +'&h=' + maxLength +'&i=' + maxChars +'&j=' + dbTable +'&id=' + albumID, true);xmlhttp.send(); }}xmlhttp.open('GET', '/cms/modules/changeIcon.php?a=' + iconID +'&b=' + saveORchange +'&c=' + ahrefID +'&d=' + inputDivID +'&e=' + columnName +'&f=' + dbTable +'&g=tekst' +'&h=' + rows +'&i=' + cols +'&j=' + maxLength +'&k=' + maxChars +'&l=empty' +'&id=' + albumID, true);xmlhttp.send();} 3.) <?phpfunction br2nl( $input ) {return preg_replace('/<br(s+)?/?>/i', "n", $input);} $saveORchange = stripslashes($_GET['a']);$inputID = stripslashes($_GET['b']);$inputIDvalue = stripslashes($_GET['c']);$inputIDvalueDB = utf8_decode($inputIDvalue);//$inputIDvalueDB = utf8_decode(addslashes($inputIDvalue));$columnName = stripslashes($_GET['d']);$inputKind = stripslashes($_GET['e']);$rows = stripslashes($_GET['f']);$cols = stripslashes($_GET['g']);$maxLength = stripslashes($_GET['h']);$maxCars = stripslashes($_GET['i']);$tableName = stripslashes($_GET['j']);$albumID = stripslashes($_GET['id']); include($_SERVER["DOCUMENT_ROOT"]."/config.php"); //Include de config met username en passwordsmysql_connect("localhost",$GLOBALS["dbuser"],$GLOBALS["dbpass"]) or die(mysql_error());mysql_select_db($GLOBALS["dbname"]);$resultQuery = mysql_query("SELECT * FROM " . $tableName . " WHERE id='$albumID'");$rowQuery = mysql_fetch_array($resultQuery);if ($saveORchange=='change'){if ($inputKind=='textarea'){?><textarea id='areaHomeTekst' maxlength='<?php echo $maxLength;?>' rows='<?php echo $rows;?>' cols='<?php echo $cols;?>' value='' onfocus="setbg('areaHomeTekst','#BD5C5C');" onblur="setbg('areaHomeTekst','white')"><?php echo br2nl(utf8_encode($rowQuery[$columnName]));?></textarea><br /><font class='sublabel'>maximaal <?php echo $maxCars;?> tekens!</font><?php}}if ($saveORchange=='save'){ mysql_query("UPDATE " . $tableName . " SET$columnName = '$inputIDvalueDB'WHERE id = '$albumID'");$resultQuery = mysql_query("SELECT * FROM " . $tableName . " WHERE id='$albumID'");$rowQuery = mysql_fetch_array($resultQuery);echo utf8_encode($rowQuery[$columnName]);}?> So how can I make it managed, that also the ' (or ") is send to DB... I also tried to change those chars to numeric html code, but still can't get what I want...
  10. Got it working... thnx!!!! :-)
  11. Thanks again!!! I go further with it later on.... come back with my results!
  12. I have pictures on server and thumbs for example: imagespicture1.jpg imagespicture2.jpg imagespicture3.jpg imagesthumbspicture1_thumb.jpg imagesthumbspicture2_thumb.jpg imagesthumbspicture3_thumb.jpg I could happen, that a picture is wrong, for example up side down. Then I would like that user is able to rotate picture 2 times 90degrees, so picture shows how supposed. When rotate picture by user, then the rotated picture needs to be save over the source picture, so I don't want a copy, just the new (rotated) picture repace the old one.
  13. Hi all, Users can upload their own photoalbums on my website, but I want them to be able to rotate the photo's: I have this code, the code rotates the photo (in browser is show rotated) but picture itself on server isn't changed, so when viewing picture, it still not rotated... what's wrong with code underneath? How can I save the rotated picture over the existing picture? <?php$fotoID = stripslashes($_GET['a']);$tableName = stripslashes($_GET['b']); include($_SERVER["DOCUMENT_ROOT"]."/config.php"); //Include de config met username en passwordsmysql_connect("localhost",$GLOBALS["dbuser"],$GLOBALS["dbpass"]) or die(mysql_error());mysql_select_db($GLOBALS["dbname"]); $resultFotos = mysql_query("SELECT * FROM " . $tableName . " WHERE id='$fotoID'");$rowFotos = mysql_fetch_array($resultFotos);$bestandsnaam = $rowFotos['bestandsnaam'];$albumID = $rowFotos['album_id']; // File and rotation$fotoFile = $_SERVER["DOCUMENT_ROOT"]. "/images/fotoalbums/id" . $albumID . "/" . $bestandsnaam . ".jpg";$thumbsFile = $_SERVER["DOCUMENT_ROOT"]. "/images/fotoalbums/id" . $albumID . "/thumbs/" . $bestandsnaam . "_thumb.jpg";$degrees = 90; // Content typeheader('Content-type: image/jpeg'); // Load$sourceFoto = imagecreatefromjpeg($fotoFile) or die('Error opening file '.$fotoFile);$sourceThumb = imagecreatefromjpeg($thumbsFile)or die('Error opening file '.$thumbsFile); // Rotate$rotateFoto = imagerotate($sourceFoto, $degrees, 0);$rotateThumb = imagerotate($sourceThumb, $degrees, 0); // Outputimagejpeg($rotateFoto);imagejpeg($rotateThumb); // Free the memoryimagedestroy($sourceFoto);imagedestroy($sourceThumb);imagedestroy($rotateFoto);imagedestroy($rotateThumb);?>
  14. Hi all, Internet Explorer: Goes perfect Opera: On my website page show normal when window is maximized, but when I make window smaller, then page loses some items. Look pictures for example: This looks good: This looks bad: Chrome: Page looks good mostly, but when I open the Javascript console (ctrl+shift+j) then also page loses some items. Any clues?
  15. Bogey

    check email stuff

    Maybe your right... :s I wasn't aware that this will be spam, cause I want to send emails to particular bussiness instead to a whole kind of bussiness... I (will) got the emailadresses right from there own website, or from the website of the branch organisation. So I did not buy a list with addresses where I can send to. Is your advise not to mail them, but to make website appear on a high ranking in search-engines... and hope companies will join in lateron. Or maybe visit some compagnies (not all 3000, thats to much for me, cause I work 40hours a week for a boss) and tell them about my website and ask them to join.
  16. Bogey

    check email stuff

    Thanks for the response... I will go further with it... If I come to any problems, then I come back in this topic
  17. Bogey

    check email stuff

    So if I make some new different email-accounts (google/yahoo/hotmail/....) and in those accounts I get the emails in inbox instead of in spam, then that will go well in all email accounts of the certain hosts (google/yahoo/hotmail/....)? Most business don't have gmail/hotmail/..., but have their own domain "info@compagniename.com", how can I make sure most emails go to inbox of their outlook (or other mail programms) instead of spam? Is it also wise to make lets say a hundred gmail-accounts, a hundred hotmail-accounts, a hundred yahoo-accounts. And send to each account 1 email... and in each of that account mark the mail as NOspam or add address to adressbook...? Does this help to put my domain on whitelists or something like that? I know this wil take a lot of time, but if it helps me to avoid spamboxes... One more thing... I want to send little over 3000 emails at first (lateron up to 30k, cause there a 30.000 compagnies that could sell their product on my website... from those 3000 there are at most 50 emails like gmail/hotmail/yahoo, the rest is like "info@compagny.com"
  18. Hi all, Is there a website/tool/something else, which I can use, to check the mail(s) I send from my domain? I have been building a website which I finished lately... Now I want to send about 3000 mails to different compagnies to ask them to join my website.... I want to be in as little spamboxes as possible, so is there a way to check my sended mail on being spammed or INbox material... I have googled about this and saw a lot of tip/trics andso... but did not find a manner to run/send my email to, to check what needs to be overlooked by me... Hope I get myself clear...
  19. Yes... thank you!!!! that dit the trick (I added the type='button' attribute)
  20. Bogey

    Mail hack attempt?

    sounds plausible... but why does the code comes with it? some sort error in the traffic somewhere from there to here?
  21. Hi all, Main page (tester.php) is this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>TEST</title> <?php include ($_SERVER["DOCUMENT_ROOT"]."/0_head.php"); ?> </head> <body> <div class="entry" id="form_rebo"> <form id='form_verkoperAanmeld' method='GET'> <fieldset> <button tabindex='15' class='button radius right' id='buttonSend' onclick="aanmeldenTester('form_rebo')">TEST</button> </fieldset> </form> </div> </body></html> js-files is this: function aanmeldenTester(targetDiv){ alert ("aanmeldenTester"); document.getElementById('buttonSend').disabled = true; run_xmlhttp(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById(targetDiv).innerHTML=xmlhttp.responseText; } } xmlhttp.open('GET', '/unsecure/aanmelden/db_addTempUserTEST.php', true); xmlhttp.send();} db_addTempUserTEST.php files is this: <?phpecho "testTESTtest";?> conclusions: IE and Chrome gives me this: - the alert box with message "aanmeldenTester" - an empty page (tester.php) with: "testTESTtest" FireFox gives me this: - the alert box with message "aanmeldenTester" - a page (teste.php) with the TEST-button So how comes FF still gives me the TEST-button and IE and Chrome gives me the "testTESTtest"... What IE and Chrome do I want, what FF does is not what I want... Any clues?
  22. Hi all, This is a email I got lately. It kind of disturbing me, am afraid it has to be some sort of hack attempt? Mail comes from the ex-partner of my wife. He he is an "ethical hacker". I am curious on your responses... -----BEGIN PGP SIGNED MESSAGE-----Hash: SHA512Here was the message send to us-----BEGIN PGP SIGNATURE-----Version: APG v1.1.1iQI8BAEBCgAmBQJUpHuwHxxSdWR5IDxydWR5Yi5hbmRyb2lkQGdtYWlsLmNvbT4ACgkQ6HVDAKdlunjkXA//cRuS2/R3uZReY8M9hyeqxFCmfJiVqhw/mpcSBRpnxchmg0bLUm/zjN0DAQp32C+VIg9VhMHBwdxNdWda22fAd8vMzQNRkgsLWMbyDHdfoQWXkS3T3BFXJ5PxqgX+BXRBz7V9mX0rpSVnB61vmv8OPO1CPshC5GMkpaLWBC6LaDv7/4gUCmnbIvISB/+r7b1KxdgDCfl5gjyhAIhabKslLCHV7WanfWaviqEewCRDX4/ZrnY5bq7ZpKEgha5TzodKo0eEIaJzYwiasNt6RpBgHrfi5zQCu6uJWB9qevScJfj4bA28nK9adZeIV6mDEGWAn+rNJJCBo8HgIVJy0pJXiD4PFx9S4okUO46yRvCNoufSqy3InlhypwUTHuIspK3EAw6f00DeY99cr6E5q+3fnYrU+8a+Ubb5GZqJr+VTKKrHoJsvDXWr+hxlATteSgWUGIfpeHopFZSHXqZtaHEKZ8fxMPsdOpm6P4F3XSZR+cJygeOdSYiSxF/nwgnZ4lT0voJOCKNZxHnYdW7/hf+rSBcumwnMWX/VbjBOhm5lJiqS9mn9mBvRvR1tMVVe9P+ZpBuRUpVo1iVlQeQDSzSzuEtz+Uqb9xZ2GOHzehPIHsxQfgESN+KIds00nK9OI57LWrrKZEv5sojGJdedeEfycsGQEJ7NJIdDGIuAU9dyX70==kQUv-----END PGP SIGNATURE-----
  23. Solved... I approached it in an other way...
  24. I have a mysqldb with this in a cell <p>test's test.</p> The coalition is: utf8_general_ci This code in my page runs fine: <?php echo utf8_encode($rowMerken['omschrijving_test']);?> it echo's his: test's test. But when I get the info with javascript from the DB I got an error. This is the js-file: function Test(targetID2,omschrijving){//var textOmschrijving = omschrijving.replace(/n/g,'<br />');//document.getElementById(targetID2).innerHTML = utf8_encode(omschrijving);//textOmschrijving = utf8_encode(omschrijving)document.getElementById(targetID2).innerHTML = omschrijving;} The error occures is: Uncaught SyntaxError: Unexpected identifier any help?
  25. I also tried the hidden field / button tag / value / and a lot more.... But the solution in my post before this post was the first and only thing that made it work like I wanted...
×
×
  • Create New...