[Solved] Move my site content up WordPress [closed]

[ad_1] Remove the padding in your css, comment it out body { overflow-x: hidden; /* padding-top: 80px; */ } The file is http://greatrateprint.website/wp-content/themes/printing-shop/style.min.css?ver=1.0 Learn to inspect your webpage it tools like chrome inspector. 0 [ad_2] solved Move my site content up WordPress [closed]

[Solved] Unique Random DIV ID using javascript [closed]

[ad_1] Here’s a simple random string generator in a working snippet so you can see what it generates: function makeRandomStr(len) { var chars = “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”; var result = “”, rand; for (var i = 0; i < len; i++) { rand = Math.floor(Math.random() * chars.length); result += chars.charAt(rand); } return result; } document.getElementById(“run”).addEventListener(“click”, function() { … Read more

[Solved] Laravel 8: Missing required parameter for [Route: edit.question] [URI: editquestion/{question}] [Missing parameter: question]

[ad_1] From public function editQuestion(Question $slug) { return view(‘questions.editquestion’,[ ‘slug’ => $slug ]); } you are injecting Question model in editQuestion(Route-model binding), so you should pass your question class instance in your form too. <form action=”{{ route(‘edit.question’, $show) }}”> <button type=”submit” class=”text-blue-500″>Edit Question</button> </form> or <form action=”{{ route(‘edit.question’, [‘question’ => $show]) }}”> should work fine. … Read more

[Solved] How to create a dotted shadowy effect on an image with CSS?

[ad_1] Mikel, you can’t achieve a silk-screen effect using CSS and a single image. It’s not going to happen any time soon, in any cross-browser compatible way. Maybe, eventually, when you can custom-program CSS filters using HLSL or similar… But for the time-being, even with near-ish-future CSS-filters, I don’t think that they’re going to offer … Read more

[Solved] Retrieve data from database and display in text boxes [closed]

[ad_1] I’ll give a very simple example that should get you started. The values are accessible via (most likely) $_POST[‘input_name’]. Without using Post/Redirect/Get, you can just get the input values like: $input_name = isset($_POST[‘input_name’]) ? $_POST[‘input_name’] : ”; Then later you’ll display it in the form like: echo ‘<input name=”input_name” value=”‘ . htmlspecialchars($input_name, ENT_QUOTES) . … Read more

[Solved] PHP – header(‘location:profile.php’); not working [duplicate]

[ad_1] Here is your code: echo “Invalid log in information.”; exit(); header (‘location:profile.php’); First when you execute an echo the server sends headers to the browser, so you can’t have that before a header call. But past any of that you have an exit(); before the header (‘location:profile.php’); call. So that will never execute it. … Read more

[Solved] how to call array index in php [closed]

[ad_1] I think you don’t realy get the way PHP is handling objects and arrays. As kingkero said, the proper way to access your buttons by “id” is $page[‘button’][‘Your id’] As so, you will have to change function that you use to create the actual button. You could create an object that is callable the … Read more

[Solved] Something on my site doesnt display until I refresh the page

[ad_1] Go into wp-ecommerce/wpsc-includes/shopping_cart_functions.php and adjusting this line if ( isset( $cart ) ) { echo wpsc_shopping_basket_internals( $cart, false, true ); } to this //if ( isset( $cart ) ) { echo wpsc_shopping_basket_internals( $cart, false, true ); //} [ad_2] solved Something on my site doesnt display until I refresh the page

[Solved] re-arrange multidimensional php array

[ad_1] If I got your logic right then this function is what you need. (Edited) function strange_reformat($srcArray) { $newArray = []; $c = count($srcArray); $i = 0; $groupStart = null; $collect = []; while($i < $c) { $row = current($srcArray[$i]); if ($row == $groupStart) { $newArray[] = $collect; $collect = []; } $tmp = array_values($srcArray[$i]); … Read more

[Solved] Get real base URL

[ad_1] If I understood you right, you may need this.. $uri = isset($_SERVER[‘REQUEST_URI’]) ? strip_tags($_SERVER[‘REQUEST_URI’]) : ”; $urlvariables = (substr($uri, 0, 1) == “https://stackoverflow.com/”) ? substr($uri, 1) : $uri; $variables = explode(“https://stackoverflow.com/”, $uri); echo $whatyouneed = $_SERVER[‘HTTP_HOST’] . “https://stackoverflow.com/” . $variables[‘1’]; You may give it a try. [ad_2] solved Get real base URL

[Solved] radion button selection based on input value [closed]

[ad_1] You can do in this way $checked = $_POST[‘gender’]; <input type=”radio” value=”male” <?php if($checked==”male”){echo “checked”}; ?> > Male <input type=”radio” value=”female” <?php if($checked==”female”){echo “checked”}; ?> > Female 1 [ad_2] solved radion button selection based on input value [closed]

[Solved] Property Feed for Website [closed]

[ad_1] Rightmove doesn’t ‘automatically’ populate its listings. Agents upload their properties to Rightmove in one of two ways: 1) Directly – using the agent website, RMPlus 2) Using the Rightmove ADF The ADF uses feeds provided by – surprise surprise – feed providers!! The biggest feed that Rightmove handle is from Vebra. I think the … Read more

[Solved] Use PHP to render multiple images to the browser [closed]

[ad_1] You use a while loop in to fetch the results. $coverpic=””; $sql = “SELECT filename FROM photos WHERE user=”$u””; $query = mysqli_query($db_conx, $sql); if(mysqli_num_rows($query) > 0){ while($row = mysqli_fetch_row($query)) { $filename = $row[0]; $coverpic .= ‘<img src=”https://stackoverflow.com/questions/16442747/user/”.$u.”https://stackoverflow.com/”.$filename.'” alt=”pic”>’; //notice the .= to append to the string instead of overwrite } } But if you … Read more