I have dynamic page which is loading and preview page from database retrieved values. I did this with successfully. I want to remove parameters from page url. Note that I only used one parameter in url. My url is something like this. (with parameters) http://ads/ad?this=daihatsu-boon-m700s-new-design-2016-nugegoda-2019-04-05-22-49-04 I tried to remove parameters from url, (it success) then my url look like this, http://ads/ad/daihatsu-boon-m700s-new-design-2016-nugegoda-2019-04-05-22-49-04 To do that I added following codes to htaccess file, RewriteEngine On #RewriteCond %{SERVER_PORT} 80 ReWriteRule ^ad/([a-zA-Z0-9-/]+)$ ad.php?url=$1 ReWriteRule ^ad/([a-zA-Z0-9-/]+)/ ad.php?url=$1 Options +FollowSymLinks -MultiViews # Turn mod_rewrite on #RewriteEngine On RewriteBase / # To externally redirect /dir/foo.php to /dir/foo …

Member Avatar
+0 forum 0

I am new in Codeigniter And I have no knowldge about Anything in it. This is my Code Snippent Error . A PHP Error was encountered Severity: Notice Message: Undefined property: stdClass::$theme Filename: core/MY_Controller.php Line Number: 117 Backtrace: File: D:\xampp\htdocs\rms\application\core\MY_Controller.php Line: 117 Function: _error_handler File: D:\xampp\htdocs\rms\application\core\MY_Controller.php Line: 72 Function: _setup File: D:\xampp\htdocs\rms\index.php Line: 337 Function: require_once

Member Avatar
Member Avatar
+0 forum 4

Hi, I am using Windows 10 on my Core i5 laptop. from last 1 month I am facing an issue. This issue does'nt arise every time. Sometimes I logged into windows account without any problem, but some times it takes hours to go to the logon screen. It shows "Attempting Repair" or Attempting Automatic Repair screen when I power on my laptop. After some time it goes to the next screen where I select the Advanced Option and from there I select Exit and continue to Windows 10. After that laptop restart and same process begins, attempting repair scren and …

Member Avatar
Member Avatar
+1 forum 9

Hi, I want to display the avearage row as images. Is it possible? function reviews_average(){ $avgproduct_id = escape_string($_GET['id']); $avgquery = "SELECT avg(rating) as average_rating FROM reviews WHERE product_id = $avgproduct_id"; $avgresults = query($avgquery); confirm_query($avgquery); while($row = fetch_array($avgresults)){ $avgratings = **--THIS IS THE ONE I WANT TO DISPLAY AS IMAGES--** "{$row['average_rating']}"; echo $avgratings; } } This is the image `<img src='../public/images/star.png' height='20px' width='20px'/>`

Member Avatar
Member Avatar
+0 forum 1

Show error when I login to the SQL server management. First, I change the server name. Second restart the server/1st stop services the start services. Then I check the server name SELECT @@servername AS 'ServerName' using this line the show new change server name. Then I closed the window of SQL server then open it and type the new change server but show error. Please help me.... I use SQL Server 2008 r2. Windows authentication [Click Here](https://ibb.co/mzL2BdC) SELECT HOST_NAME() AS 'host_name()', @@servername AS 'ServerName\InstanceName', SERVERPROPERTY('servername') AS 'ServerName', SERVERPROPERTY('machinename') AS 'Windows_Name', SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS 'NetBIOS_Name', SERVERPROPERTY('instanceName') AS 'InstanceName', SERVERPROPERTY('IsClustered') AS 'IsClustered' EXEC …

Member Avatar
+0 forum 0

I'm a novice in PHP and I would like to know on how exactly could I define said row. Any helps/tips are appreciated. Thank you in advanced! function add_review() { if(isset($_POST['add_review'])){ (THE UNDEFINED ROW) **$product_id = $row['product_id'];** $review_name = escape_string($_POST['review_name']); $review_email = escape_string($_POST['review_email']); $review_content = escape_string($_POST['review_content']); $review_created = date("Y-m-d H:i:s"); $rating = escape_string($_POST['rating']); $review_query = query("INSERT INTO reviews(review_id, product_id, review_name, review_email, review_content, review_created, rating) VALUES('NULL', '$product_id', '$review_name', '$review_email' , '$review_content' , '$review_created' , '$rating')"); confirm_query($review_query); set_message("Thank you for the feedback!"); }}

Member Avatar
+0 forum 0

I want to add capcha to Mobirise builder's form. When I'm adding the code below, formd doesn't send any messages after that. What should I do? May be someone have solved this issue. <head> <script src="https://www.google.com/reCAPTCHA/api.js" async defer></script> </head> <body> <form action="?" method="POST"> <div class="g-reCAPTCHA" data-sitekey="your_site_key"></div> <br/> <input type="submit" value="Submit"> </form>

Member Avatar
+0 forum 0

Hiya, looking for some help on this bit of code: def save(x,y,z): user=x yourinventory=y score=z allinvent=[] allscore=[] with open("Inventory.txt","r+")as inventory: for line in inventory: allinvent.append(line.strip().split(',')) allinvent.append("\n") for line in allinvent: if (line[0]==yourinventory): allinvent.append(yourinventory) allinvent.pop(line[0:8]) print(allinvent) break inventory.append(allinvent) inventory.close I'm currently working on saving things like inventory, and I'm not sure what I need to use instead of append as I keep getting this error. Traceback (most recent call last): File "\\file1\Student-homes\Intake15\15QuintonSA\My Documents\Year 10\Computer Science\.Adventure Quest v2\main file.py", line 192, in <module> save("pandatron03", invent, 8) File "\\file1\Student-homes\Intake15\15QuintonSA\My Documents\Year 10\Computer Science\.Adventure Quest v2\main file.py", line 19, in save inventory.append(allinvent) `AttributeError: '_io.TextIOWrapper' object …

Member Avatar
+0 forum 0

I created ftp server on win7 and was told a 550 Permission denied error when connecting via the internet but the LAN network ran fine. I go to star-> run: type ftp http://www.mediafire.com/file/efp8ueodhukd8u6/ftp_erro550.jpg

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, I’m an absolute beginner in programming and I need some guiding. This is what I want to do: Copy a particular file located in a subfolder in Drive and paste it into multiple subfolders using Google Script. This is what I’ve done so far: function copyFilesintoMultipleFolders() { var srcFolder = DriveApp.getFolderById("XXXXXXXXXXXXXXXXXXXXXXXX") var dstFolder = DriveApp.getFolderById("YYYYYYYYYYYYYYYYYYYYYYYY") var file = DriveApp.getFileById("ZZZZZZZZZZZZZZZZZZZZZZZZ") while (dstFolder.hasNext()){ var f = file.makeCopy(dstFolder) if (file.getMimeType() == MimeType.GOOGLE_APPS_SCRIPT){ Drive.Files.update({"parents": [{"id": dstFolder}]}, f.getId()); } } } But I got stuck at the while loop because I get this error: “TypeError: Cannot find function hasNext”. What did I do …

Member Avatar
Member Avatar
+0 forum 1

Has anyone experienced the "Not Found" error usin the shiny package in R? I keep seeing 'Not Found' when trying to load my Shiny application, it seems to be that R cannot find the Shiny server, I have tried reinstalling all packages and still no luck. The strange thing is that it works the first time I open R Studio, then it doesn't hereafter.. I have attatched a working example and a screenshot for insight. --- title: "Benchmarking Algorithms for Credit Card Fraud Detection" output: flexdashboard::flex_dashboard: orientation: columns vertical_layout: fill social: ["menu"] runtime: shiny #options: (shiny.maxRequestSize = 1500*1024^2) --- ```{r …

Member Avatar
Member Avatar
+0 forum 2

My score on Google's new PageSpeed tool (web.dev or Lighthouse) is incredibly low. There are things that I'm working on that seem obvious, but I'm stumped with trying to improve the following points: Time to Interactive Speed Index Estimated Input Latency I was wondering if any of you guys are dealing with this. The website is https://www.bairesdev.com/our-services/software-outsourcing/ Thanks a lot in advance!!

Member Avatar
+0 forum 0

## Hey, ## I crated a program which can search a text for a string and gives you every line which conatins that string back. Now I want to create another text file with the output. But I cant get it to work. Actually I have no problems with creating the text file becasue its creating it but its always empty. I just dont know how to gte the results from the top of my code into the output text file. Here is my code: #include <string> #include <fstream> #include <iostream> #include <sstream> using namespace std; int main(void) { string …

Member Avatar
+0 forum 0

Please tell what's wrong in this code.. I am using 3 DateTimePicker.. I think that line has some problem...Please Help.. ![Untitled.jpg](/attachments/large/4/f42d519e8bc5ead2edc0bf81395f227c.jpg)

Member Avatar
Member Avatar
+0 forum 5

"Error in Line 4- System.NullReferenceException: 'Object reference not set to an instance of an object." Private Sub btnsearch3_Click(sender As Object, e As EventArgs) Handles btnsearch3.Click Dim vSearch As String = InputBox("Enter Employee Id to search the details:") If vSearch <> "" Then cmdSearch.CommandText = "SELECT * from Employee_Details WHERE Emp_Id =" & CInt(vSearch) cmdSearch.Connection = cnnOLEDB Dim rdrOLEDB As OleDbDataReader = cmdSearch.ExecuteReader If rdrOLEDB.Read = True Then txteid1.Text = rdrOLEDB.Item(0).ToString txtepn2.Text = rdrOLEDB.Item(1).ToString txtadd3.Text = rdrOLEDB.Item(2).ToString txtphon4.Text = rdrOLEDB.Item(3).ToString dtpdobirth5.Value = rdrOLEDB.Item(4).ToString txtapt6.Text = rdrOLEDB.Item(5).ToString dtpduty7.Value = rdrOLEDB.Item(6).ToString dtpdoa8.Value = rdrOLEDB.Item(7).ToString rdrOLEDB.Close() MsgBox("Record found") Exit Sub Else rdrOLEDB.Close() MsgBox("Record not …

Member Avatar
Member Avatar
+0 forum 2

I'm new to Java and I'm trying to recreate a simplified version of the Game of Mastermind. I managed to allow the player to input once but then it stops. I don't know how to fix this, I've tried everything I knew how to do to fix this but I was unable to. My verification checker also doesnt work import java.util.*; public class Main{ public static void printRed(String a) String red = "\033[31m"; System.out.print(red + a); public static void rules() String reset = "\u001B[0m"; System.out.println(""); System.out.println("The Mastermind Game"); System.out.println(" - How to Play - "); System.out.println("* The goal is to …

Member Avatar
Member Avatar
+0 forum 2

Is it possible to use both Block parameters and Code Editor in one time?

Member Avatar
Member Avatar
+0 forum 1

i didnt have3 a question

Member Avatar
Member Avatar
+0 forum 2

I'm somewhat new to coding websites. I'm trying to have a code where it pulls multiple images from a single database and displays it in a grid, not a table. At the top of my page I have a normal connection to the database. (very sorry about not having a code snippet, I'm new to daniweb and keep having errors when trying to use code snippets.) <div id="grid" class="grid-container"> <?php while ($row = mysqli_fetch_array($query)) echo '<div class="grid-item"> <p>'.$row['images'].'</p> <p>'.$row['project'].'</p> <p>'.$row['summary'].'</p> </div>'; ?> </div>

Member Avatar
Member Avatar
+0 forum 1

I have an eCommerce website. Website loading speed is too slow. I have talked with hosting service provider. They told me that there nothing is wrong with hosting. So I need a developer who can help me to fix this issue. I will pay good.

Member Avatar
Member Avatar
+0 forum 5

# Lab Question# We must create a program that do the following: Allow the user to type in a student name the coorosponds with the student's exam score. The program will be able to accpet exam scores till the user types in the phrase "allDone". The code will determine which student has the highest score and give the name and the score to the user. Here is an example of what will be shown in the console.... *Sample Input* Bob 82 Mary 90 James 87 alldone *Sample Output* Mary has the highest score. Her score is: 90. ## Question ## …

Member Avatar
Member Avatar
+0 forum 6

Hi, I'm working as a Software Engineer. You can imagine, how will be my work? I used to work when I'm in my home too, especially, during the month ends. The problem is, I'm not able to access my internet during the day time .there will be a connectivity problem. Planning to replace the internet box at home . It's disgusting to use it. But instead of being attached to a phone cable, my friend suggested the replacement of cable and placing portable internet solutions. I enquired about the connection and heard that a portable WiFi device enables us to …

Member Avatar
Member Avatar
+0 forum 1

I have questions: 1) Program to get input from user till 'z' or 'Z' is inputted the program will check for the chars, and print (new line) small chars (new line) big chars (new line) numbers [without 'z' or 'Z'] can't use variables. only Stack. example : input: ASdf154sdgdf123vcvbz Small chars: dfsdgdfvcvb Big chars: AS Numbers: 154123 This is code for question 1: STA SEGMENT STACK DB 100H DUP (0) STA ENDS CODE SEGMENT ASSUME CS:CODE,SS:STA MAIN: MOV BP, SP MOV BX, BP SUB BP, 2 MOV CX, 0 INPUT: MOV AH, 01H INT 21H INC CX CMP AL, 'z' …

Member Avatar
Member Avatar
+0 forum 1

Hi i am new to java and just learning as i go , I the basic of calling mothod arguments and so forth but i am having difficulties calling my array method so it would come up to the terminal to the user when the code is running . i have declared the array list paramter to ( int [] name ) , then called the array MyObject.MyMethod ( 01234 ) . I tried to return the array list then call the method that way but is not worrking please can some one show me the correct way to implement …

Member Avatar
Member Avatar
+0 forum 11

I have a bank system that's using a tkinter class to run the program with a graphical user interface looking like this: LARGE_FONT = ("Verdana", 12) class BankSystemGUI(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) container = tk.Frame(self) container.pack(side="top", fill="both", expand=True) container.grid_rowconfigure(0, weight=1) container.grid_columnconfigure(0, weight=1) self.frames = {} for F in (LoginPage, PageOne): frame = F(container, self) self.frames[F] = frame frame.grid(row=0, column=0, sticky="nsew") self.show_frame(LoginPage) def show_frame(self, cont): frame = self.frames[cont] frame.tkraise() class LoginPage(tk.Frame): def __init__(self, parent, controller): tk.Frame.__init__(self, parent) label_1 = tk.Label(self, text="Welcome to the Python Bank System", font=LARGE_FONT) label_1.pack(pady=10, padx=10) label_2 = tk.Label(self, text="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", font=LARGE_FONT) label_2.pack(pady=10, padx=10) button1 = …

Member Avatar
Member Avatar
+0 forum 1

#include <iostream> #include <cstdlib> #include <fstream> #include <ctime> using namespace std; void array(int arr[], int arrSize); void add(int arr[], int arrSize, int newElem); bool edit(int arr[], int arrSize, int index, int newVal); bool delEm(int arr[], int arrSize, int elem); bool search(int arr[], int arrSize, int elem); bool PunoNa(int arr[], int arrSize); void display(int arr[], int arrSize); void dispPo(int arr[], int arrSize, int index); void shuffle(int arr[], int arrSize); void loc(int arr[], int arrSize,int elem); int main(){ int choice = 0; int arrSize; cout<<"Enter size of array: "; cin>>arrSize; int arr[arrSize]; if(arrSize<=20){ for(int x=0; x<arrSize; x++){ cout<<"Enter elem"<<x+1<<": "; cin>>arr[x]; } …

Member Avatar
Member Avatar
+0 forum 2

*Hello** This has been a question for a long time / Request for help for a PHP script. A year ago I created a homepage for a friend (online tutoring website) and installed a finished script for an occupancy calendar and did not consider / knew that the server will soon be switching to PHP 7.2. I could already test and adjust the rest of the homepage, but unfortunately I am with my Latin at the end and of course the calendar does not work. The problem is of course the database connection .... mysq under PHP 7.2, which I …

Member Avatar
Member Avatar
+0 forum 1

I have a Dell Inspiron E1705. For some odd reason, my computer will freeze sometime while my wireless radio is on, while I'm at my apartment. I have already ruled out a power, memory, or overheating issue. I reformatted and reinstalled XP, yet it still did it. If I disable the radio, my computer doesn't freeze. Also, it doesn't automatically freeze up as soon as I turn on the radio or connect to my network. Sometimes, it may last for awhile, while other times it may only take a minute or two. Just FYI, I am on the wireless network …

Member Avatar
Member Avatar
+0 forum 32

Hello people, I've been working on a registration form project that needs to contain a captcha code that will be validated. Even if the captcha string inserted in the text box is correct, it displays the error "Captcha string is incorrect". Also, even if the captcha part did not exist, the form doesn't seem to save the data to my sql database. Can anyone please try to help me out or check if you can notice any obivous errors with my code? The following code is the PHP and HTML code used for the registration form <?php session_start(); $_SESSION['captcha'] = …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to create a multicolor table (composed by buttons) where every X seconds a thread change the color of its button. The first thing I did was manage the threads with a semaphore, but then I realized that maybe it wasn't necessary since I want that each button changes its color independently from the others. This is my code: public class Thread_ES2 extends Application implements Runnable { private Button[] btn = new Button[4]; private Semaphore sem = new Semaphore(1); public void run() { //while (true) { try { //sem.acquire(); if (Thread.currentThread().getId() % 4 == 0) { btn[0].setStyle("-fx-background-color: #FF7F50"); Thread.sleep(2000); …

Member Avatar
Member Avatar
+0 forum 1

The End.