- Interests
- Java, MySQL, Programming and Web Development
125 Posted Topics
Hello, I am not sure if this is the correct place to post this... I would like your general opinions on this: When testing a software with different functionalities, is it a good thing to state the number of test case to be prepared initially for each functions? Like we … | |
I want to echo the url which includes an onlick property. Here is my code below: function royal_sidebutton_body_tag_html() { // get plugin option array and store in a variable $royal_sidebutton_plugin_option_array = get_option( 'royal_sidebutton_plugin_options' ); // fetch individual values from the plugin option variable array $royal_sidebutton_text_for_tab = $royal_sidebutton_plugin_option_array[ 'text_for_tab' ]; $royal_sidebutton_tab_url … | |
Hi Guys, Hope you are enjoying the summer! I am having some trouble with the code below. It is feeding blog posts from another website and linking them to a website. The code works fine. However I need to change the hyperlink(uri) to another domain. <li><a href="<?php echo $feed[$i]->uri; ?>" … | |
Hi Guys, I am currently trying to find out what the problem might be [here:](http://5th-floor.co.uk/circle_test/index.html) I basically want the other circle to display the images properly like in the first circle. My code is as below: HTML <head><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/component.css" /><script src="js/modernizr.custom.js"></script></head> <div class="container"> <!-- … | |
Hello Guys, I have been hopelessly trying to make the sidebar full height on this site. When the content expands, its height stays the same. [Site](http://www.5th-floor.co.uk/blog) Any idea how I can do that? | |
Hi Guys, I have added a script to my website template and somehow it does not work. I think this could be due to a JS conflict but when using firebug, I cannot see anything abnormal. Here is the link: [Link](http://www.citylandlord.co.uk) My JS code is as follow $.noConflict(); $(document).ready(function ($) … | |
Hi, I converted a as3 file into a html5 file using swiffy tools offered by google. My code is below: var stage = new swiffy.Stage(document.getElementById('swiffycontainer'), swiffyobject, {}); stage.setFlashVars("clickTAG=%%CLICK_URL_ESC%%%%DEST_URL%%"); stage.start(); It works fine but I want to link the stage to a new page. Any idea how I can achieve this? … | |
We have a site which unfortuntely is not responsive. I was asked to make it responsive, however I am faced with a few options 1. Develop/design a new site espacially for mobile use and redirect it when needed 2. It seems that I can use CSS to make the website … | |
Hello, I have this code here. I am trying to show the different options with radio box. There is something wrong in my code, however I can't figure out what it is. Any help? <div id="questions"> <p><img src="images/pic_survey.jpg" width="279" height="104" alt=""/></p> <p>Please take our five second survey!</p> <h3 class="hSubtitle">Question 1</h3> … | |
Hi Guys, I am actually trying to achieve data replication across two databases(SQL). I have researched into different techniques; synchronous vs asynchronous I have seen that there is a way of doing it using PHPMyAdmin however I am wondering if it is synchronous vs asynchronous? | |
Hello, I am developing a database system and as part of a project I have been asked to look into fault tolerance. From what I understand a fault tolerant program is a program that is not vulnerable to errors. Any ideas how I can ensure that the program I am … | |
Hi Guys, I have developed a multi language website and basically the urls are all in English. I remember reading an article which mentioned that urls did not much have importance with SEO. I am now starting to wonder if that's really the case? What are you thoughts? | |
Hi! Basically I am trying to add the graph inside the Jpanel which already exists. I am getting the erorr "adding a window to a container" Here is my code public void displayGraph(){ try{ String sql = "Select pressure, ventilage from statstbl"; DBCon conn = new DBCon(); JDBCCategoryDataset dataset = … | |
Hi Guys, I am getting an error: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "jLabel4" With this code: public void insertCustomer() { Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); int q = Integer.parseInt(jLabel4.getText()); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/5thfloor_pos", conProps); con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); } catch (SQLException ex) { Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, … | |
I am trying to retieve the total salaries from a table where the customer name is X. I have the code below however there seems to be an error. public void total(String name){ double totals=0; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/link", conProps); … | |
I am developing a software which will connect to the same database as another application. Is there a term for that? Also any tips on what sort of methods I can use? | |
Hello, I am developing a software(Java, SQL) which will connect to another's system database in order to have an inventory up to date. I have made some reaseach on the best practices to do that but I am sort of lost. I have read about different integration level, I think … | |
From what I understand a DBMS is a software that manupulates a database. I am developing a retail checkout system which is link to a SQL database. Is that consideres as a DBMS? | |
Hu Guys, Sorry, my question might sound silly but how can I embbed a class inside echo "<tr><td><img src='data:image/jpeg;base64," . base64_encode($row['product_img']) . "' alt='' /></td></tr>"; I tried echo '<div class="img"><tr><td><img src='data:image/jpeg;base64," . base64_encode($row['product_img']) . "' alt='' /></div></td></tr>'; But it's not working. Looks like I am doing something now quite right | |
Hi Guys, I have the piece of code below and somehow when I click on the input to type some test, the page reloads(refresh). <div id="searchi"> <form id="search_box" action="search.php"> <input id="search" type="text" placeholder="Search products..."> <input id="submit" type="submit" value="Search"> </form> </div> My css is as follow: #search { width: 270px; padding: … | |
Hi Guys, I have this piece of code that should basically retrieve the priduct ID and display the producton a different page when clicked. I must be doing something wrong because I keep getting "nothing selected" even though the product ID is selected(also displayed on the url(www....../productview.php?prodid=1) <?php $product_id = … | |
Hi Guys, I have been trying to display the images from the database with the code below. Images are not displayed. <?php while($product_data = mysqli_fetch_array($query_product_result)) { $num_rows_products = $num_rows_products - 1; Print "<div class='image_panel'><a href = 'products.php?prodid=" . $product_data["ID"] . "'><img src='data:image/jpeg;base64," . base64_encode($row['image']) . "' alt='' /></a></div>"; Print "<h2><a … | |
Hi Guys, I have this script to insert attribute values in the database. When I run it, only the first value of the array is inserted. Could someone help me? <?php require_once('./app/Mage.php'); Mage::app(); $arg_attribute = 'manufacturer'; $manufacturers = array('NW163UA G70-467','NW167UA G70-481','VM113UA G71-333','VR759UA G71-340','VM114UA G71-343','VM110UA G71-347','VM116UA G71-349','VR761UA G71-358','VR760UA G71-400'); $attr_model = … | |
Hi guys, Trying to set up a cron job using [this tutorial](http://www.magentocommerce.com/wiki/how_to_-_import_manufacturers_or_any_other_option_attribute_set) I have replaced {my/magento/install} with my site path and tried to execute it as a unix command. /usr/bin cd /{/var/sites/e/mysite.com}/shell/; php -f attributeimport.php -- --attribute manufacturer --file ../manufacturers.txt; It gives me an error: Error: The command you entered … | |
Hello! As part of my unversity module, I need to create an ecommerce website. My only problem is that I need images for this website. Does anyone know a website where I can use images for free? Thanks! ![]() | |
Hi guys, I have my website [here](http://nowcommerce.co.uk/) and it is not centered for some reasons. I notice that they are a couple of things wrong but I can't tell what... Any advice? | |
Hi Guys, I managed to fill the jtable with the table from the database. Now I want to add specific rows from the database table into the jtable. So I have a textfield and a sql statement: So "Select * from tbl where name =?" I want to add all … | |
Hello, I am trying to connect to a hosted database on netbeans(java). So far I have the following: Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "password"); try { con = DriverManager.getConnection("jdbc:mysql://host:3306/dbname", conProps); String sql = ("SELECT * from products"); st = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(sql); st.executeQuery(); rs … | |
Hello Daniwebers! I am trying to insert the values that were selected in a jtable. I know how to display the sql results in a table but don't how to add the selected values into it. Example: only display the items that the users has searched for and add them … | |
Hi guys, I wish you can help me. I started working on SEO for this website. [Here](http://www.luxburgvisual.com) When I type in the name on google, I have the first link coming as www.mylink/rss. I am not sure why. I have also redirected the non-www to www link yesterday, when doing … | |
Basically, the slider does not work on my website. I think that this is due to a javascript conflict however i am not 100% sure about that. I have used firebug and it came up with the error "TypeError: my_glider is undefined" Here is the code: <div class="homepage"> <div id="slider"> … | |
i am working on a project right now and wanted to know some opinions. Let's say there is a large building with a protected network(computers, printers...) If we wanted to integrate other computers form different locations, linked to that network. What could happen in terms of security, possible threats? I … | |
Hello, I have installed glassfish server with netbeans. I have created a new JDBC Connection Pool and when I ping it I get error message "Ping Connection Pool failed for MyDatabae. Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver Please check the server.log for more details." … | |
Hello, We have a card machine which is not connected to any server but a simple Lan connection on a switch to the router. We were advised that for security purposes TCP timestand should be disable on the remote host. I have access to the router(netgear) but I could not … | |
If you had to think of a technology that is likely to change in the future which will also affect your current job, what would it be? Technology is always changing and there is so much to learn to keep up with it. I am trying to think of something … | |
Hello, There is a question which I don't really quite understand. Can someone explain the answer to me? I get the first part: the declaration of the "function" however the rest of it I am quite confused. Variables do not need to be declared for this type of exercise. Insert … | |
Hello, I am getting the error: "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:15" There is definetly something I am doing wrong but I cannot figure out what. Any help will be appreciated. The error in the output is poiinting to line 119; if(R[currentState][action] > -1){. I tried to change this but no … | |
I am looking to have a slider similar to this with the thumbnails on the right had side displayed as a slider http://wowslider.com/jquery-image-scroller-prime-time-linear-demo.html Any ideas how I can achieve this? | |
Hello, I would like to have a slider that shows images(this I can do) however when the user clicks on one of the images, it will display the products displayed in this particular image. I was thinking of creating new pages/file for each but do you guys have something better … | |
Hello guys, I am not going to post the code here as I don't really know where in the code files I can fix that. I have a website that basically looks good on desktop and laptops however when it comes to mobiles and tablets the top navigation bar seems … | |
Re: You also have the choice to code in Dreamweaver. It's up to you to check the code and design together. | |
Re: Appearence => Menu should help you find your way | |
Re: Do you have access to the database? First thing to do is to login into the database. You should get the login and password of the database by checking the config.php file. /** MySQL database password */ define('DB_PASSWORD', 'xxxxxxxxx'); /** MySQL hostname */ define('DB_HOST', 'xxxxxxxxxx'); Use PHPMyAdmin or mysql. Look … | |
Re: It seems that you have a sidebar. Maybe try and remove it? Check in the widgets or theme option if any? There should be a costomize option in Appearence -> Themes. I usually set the front page from there. | |
Hello, My website displays perfectly fine on the computer however when it comes to phone or tables the background image becomes smaller. I have spend more than 4 hours trying to figure out why but no luck. Will appreciate if you guys can give me a hint. The website is … | |
Alright. I was asked to set up a new server for a company. They have 6 computers and 6 printers. Could you please advise what server will be the best. We are just looking to share files and printers.. | |
Hello, I would like to create a macro. I have two worksheets, both containing an ID. Would like to update the price from the second worksheet corresponding to the ID. Any ideas? I am quite new to this so a bit of guidance will be appreciated. | |
Hello, I am currently using jtatoo to improve the look and feel of my GUI. The thing is that sometimes it works perfectly while sometimes it does not. I don't get any errors and I think this might be a bug with it. Is someone here aware of how to … | |
Re: I don't see any see any database in your code. What I will suggest is to print the resuls using system.out.println and check if the value appears. | |
|
The End.