-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
MadTechie last won the day on April 12 2021
MadTechie had the most liked content!
About MadTechie
- Birthday 07/03/1978
Profile Information
-
Gender
Male
-
Location
UK
MadTechie's Achievements
-
How can I make the tryguess.php appear on the trynumber.php?
MadTechie replied to idk_php's topic in PHP Coding Help
While I like @Barand approach, and YES I know this is a basic script, it would be kinda easy to cheat ☺️ However, it does suit your assignment better. -
Hi DaveMag First off, please use the <> script button for pasting code, it really does help, Like so <?php $cat=$_REQUEST['cat']; ?> <SCRIPT language=JavaScript> <!-- function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='reports.php?cat=' + val ; } </script> <?Php ///////// Getting the State from Mysql table for first list box////////// $Cyquer2="SELECT DISTINCT breweries.State, states.state FROM breweries INNER JOIN states ON breweries.State=states.abbr ORDER BY states.state"; $Cyresult2 = mysqli_query($con, $Cyquer2); /////// for second drop down list we will check if State is selected else we will display all the cities///// if(isset($cat) and strlen($cat) > 0) { $Cyquer="SELECT DISTINCT City FROM breweries where State='" . $cat . "' order by City"; } else { $Cyquer="SELECT DISTINCT City FROM breweries order by City"; } $Cyresult1 = $con->query($Cyquer); echo "<form method=post action='brewerylistbycity.php'>"; ////////// Starting of first drop downlist ///////// --> echo "<select name='cat' onchange=\"reload(this.form)\"><option value=''>Select State</option>"; while($Cynoticia2 = mysqli_fetch_array($Cyresult2)) { if($Cynoticia2['State']==@$cat) { echo "<option selected value='$Cynoticia2[State]'>$Cynoticia2[state]</option>"."<BR>"; } else { echo "<option value='$Cynoticia2[State]'>$Cynoticia2[state]</option>"; } } echo "</select>"; echo "</br>"; ////////// Starting of second drop downlist ///////// echo "</br>"; echo "<select name='subcat' selected=''><option value=''>Select City</option>"; while($Cynoticia = $Cyresult1->fetch_assoc()) { echo "<option value='$Cynoticia[City]'>$Cynoticia[City]</option>"; } echo "</select></br>"; //// End Form ///// echo "<input type=submit value=Submit>"; echo "</form>"; ?> Now you do have some issues main one would be security (SQL injection) but ignoring that for now. I'm curious about the following. This maybe use do to the use of the first caps of State in the breweries table, as on a windows system the case is (for the most part) ignored, but on Linux, it's not. So my first set would be to check the database and see if states has a cap S, are you getting any errors ? Hope this helps
-
My PHP test file <?php $url="asset/go/"; ?> <!DOCTYPE html> <html> <head> <title>Page Title</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> </head> <body> <script> var user="mayor"; var url ='<?php echo json_encode($url); ?>'; if(user=="mayor"){ alert(url); } </script> </body> </html> Here is mu result <-- view-source:http://localhost/test/312485.php --> <!DOCTYPE html> <html> <head> <title>Page Title</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> </head> <body> <script> var user="mayor"; var url ='"asset\/go\/"'; if(user=="mayor"){ alert(url); } </script> </body> </html> So except for the extra quotes it seems fine I can't seem to get the unparsed php code.
-
The file with the HTML AND PHP has to be a PHP file type not at HTML, i am assuming you are calling something.html instead of something.PHP
-
How can I make the tryguess.php appear on the trynumber.php?
MadTechie replied to idk_php's topic in PHP Coding Help
Ok, save the guess result in a session, then if the session is not empty then display result the problem you'll have is you randomise the number every time the form page is loaded. Ideally one page is better for this project but you could do something like this: Without writing the code i'll try to explain what i mean. Checker on a guess check if the guess is correct, save the result message to a session -- if the number is correct then also set the random number to nothing Form if the random number is empty, then generate a new number, if a result has been saved, then display it. Hope that helps -
Malware, that's what I said WordPress ☺️ (I'm joking, kinda) Well done,
-
How to auto populate custom field with current user role
MadTechie replied to JayX's topic in PHP Coding Help
Can you check the following? $fields['customer_firstname'] = "testing"; I know this isn't the end result i just want to check that you can receive the data passed- 10 replies
-
- php
- woocommarce
-
(and 1 more)
Tagged with:
-
How to auto populate custom field with current user role
MadTechie replied to JayX's topic in PHP Coding Help
Can you pass the object? What happens when? Just trying assign a string function onboarding_update_fields( $fields = array() ) { $user = wp_get_current_user(); //$fields['customertype'] = $user; $fields['customer_firstname'] = $user->user_firstname; return $fields; } does customer_firstname work? You might need to assign what you need instead of the entire object- 10 replies
-
- php
- woocommarce
-
(and 1 more)
Tagged with:
-
Let me start by saying phppup, your questions are very unclear, This makes it very difficult to help and will put people off offering help, You can save the images in a folder(s) or blobs in a database or save the image to a file and refer to it as via a script, Now, with "serving images" you will need to use the img tag when you display in html, you might use base64 instead of a path, e.g. URL vs BASE64 <!--URL image --> <img src='https://forums.phpfreaks.com/uploads/monthly_2020_10/logo-light.png.8ca2dc089c4e8fa3336b49fa0855692d.png' /> <!--Base64 image--> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAB9CAYAAACMEjUkAAAgAElEQVR42u19e3xV1Zn2s/a5REk82WBCuURzAMWClB7ECl4SD3akte2HoaV1ih0I8llpHZD8vEwvU/JlLr/WUeagdKZVVFABxxYltk69zZQI9VZ1zCCEcVolweAtCCcHEkhy9lrfH3utvdfeZ59rEkjCen5uczi3vfc6e7/Pet73Xe8LKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj0G0QNQWbMnn2xpkZh6OPNN9+gahQUFBSBDCmieGjjQxFCiK4GcnDBcnzfxx9/3PyDv/lBQnqKKmJRUFAEcsqI44EHHggXFQWriabNIoRECCFhApwLQkDEEJFcBkvRyGDQB3M8YGD8L2VsJ2Mszijd3dvXt2P5Dct3ZiIWRSYKCopABoQ0Hnn0kQU+TVtINC1KCDmXgIAQczOJA/wxLBIhBGDisbp2TgqlEIswAAYG8z/+lzFOKGIDKDV2JpPJpw4fOfKbutV1rV6EoohEQUERSN54e8+eSCAQqCOELNAI0QnRLNJwbxZxcDKRicQ5akQx8oDqD5by0CYOQLCJRRryY8bAGAWj5mPK6O7e3t71f/7znxv/8R/+Ma6IREFBEUje2LN3b9Tv9zdoRKvWNAJCNBDNJA/NkzzEY7hcWPZwEaLE3KDTCLPowyYQoUgYA3OpD8YYJw9qEgi1/ib6kn33trS0rL/zZ3fGJRKh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T/JKzVXBckVFBSUAhmpKCoqqiZcZZg1sKx16FYqbyKRuPt7Zv0q5a5SUFBQBKJgua8WwtIb/P+8x0dfMvny/+z7nx//9Kc/bYFKzVVQUFAEoiCDELJAxMulvh6JRCJx5/e/9/37ZTWhVIeCgsJpayvVEDixt6WlxufzbZefSyaTv2tsbLx5+5PbE9LTKkiuoKCgFIiCDXP1uQnG2IHOzs6/ufn7N/8OzlLvufTWVuShoKCgCOR0AY9/LOCq4+d/fO2P//gv//Ivx2A3l4IiDgUFBQUTyoUlYc/evRG/3//wiRMn6pbfsPwPsFveah7kAagguYKCglIgCgBw/Pjx1hU3rZglkUa6bndKdSgoKCgFoobACanlraw8NGRo8qTIQ0FBQSkQBWRQHFDEoaCgoKAUSK4qxK0+FHEoKCgoKALJi0QUcSgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgonD74/wnQsU64Q/dXAAAAAElFTkSuQmCC" /> If you are trying to restrict access then store the images outside public access and display via a script, <!--URL to image script --> <img src='image.php?hash=hsdgfhjsdghgsdjgj' /> //image.php $path = 'path to images outside public_html'; if($no_access){ exit(); } header('Content-type:image/png'); readfile($path.$_GET['hash']; I hope this helps with some direction .
-
Hi oymediasolution, I am assuming that WP or another system is installed some (another domain) the problem is these share the folders, it doesn't matter if its another domain, that only see the folders, if the add-on domain inside another domain? (folder wise) for example, /public_html <- main domain /public_html/new_domain <-addon_domain if this IS the case then it maybe worth looking at the main domain and checking if the same .htaccess file exists if so then you should be able to create a addon domain at the top level instead, this MAY solve the problem e.g /public_html <- main domain /new_domain <-addon_domain Lets us know your findings and i hope this helps
-
How to auto populate custom field with current user role
MadTechie replied to JayX's topic in PHP Coding Help
I'm about to go to sleep, but for a quick first look, You'll need to have the $user inside the function. e.g. function onboarding_update_fields( $fields = array() ) { $user = wp_get_current_user(); $fields['customertype'] = $user; return $fields; } Hope this helps- 10 replies
-
- php
- woocommarce
-
(and 1 more)
Tagged with:
-
I should also point out instead of building a class you could include the database.php and just use the $db_conn variable.. Depending on your end goal
-
Maybe build an array for errors $errors = []; // This is the attempted validation code if(empty($firstname)) { $errors[] = "- Please enter your firstname"; } if(empty($email)) { $errors[] = "- Please enter your email"; } if (!empty($errors)) { $result="<p class='alert error'>There is an error. Please correct the following:"; $result =. implode("<br />", $errors); $result =. "</p>"; } else { //.... } echo $result; Untested code but should give you the idea EDIT: i always validate server side, but add client side validation to improve UX
-
See mac_gyver post and for the 500 error, its probablty the missing ; <?php session_start(); $conn = $_SESSION['dbhandler'] //<--missing ; mysqli_close($conn); echo "DB closed"; ?> Instead of passing parameters for the connection, just include the details <?php //db_config.php defined('DB_HOST') or define('DB_HOST', 'localhost'); defined('DB_USERNAME') or define('DB_USERNAME', 'username'); defined('DB_PASSWORD') or define('DB_PASSWORD', 'password'); <?php //database.php require(__DIR__.'/db_config.php'); // Create connection $db_conn = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; ?> (code above is not tested and is just as an example) you could build classes from this etc Hope this helps