Member Avatar

I needed a grid layout to display some images. I found this one online http://alijafarian.com/demos/responsive-image-grids-using-css Its displays but not like it should. Through a process of elimination i figured it was a js file causing this, two to be precise. init.js & skel.panel.min.js These js file came with the template and have something to do with the pages structure and display. I cant seem to find anyone having the same problem i tried using no conflict and that hasnt worked. my header ` <head> <title></title> <link rel='shortcut icon' type='image/x-icon' href='images/favicon/favicon.ico' /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="" /> …

+0 forum 0 9
Member Avatar

I am using a responsive template to make a website. The problem I am having is with the css I need to have different images for a handful of pages. Not all pages need different images. I attempted this by adding another div and changing the name slightly orginally it was marketing(This div is still in use for all those pages that dont need images) I added one called marketingIndex for the homepage.(This is where the problem arose). It worked in the sense that the background was there but it messed with the footer div(the footer rose half way up …

Member Avatar
+0 forum 3 31
Member Avatar

Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks in advance. Heres the code: The last 3 paragrapghs of code is the insert ive included the rest incase its interfereing. The middle paragragh is used to determine if the admin is already in the daabase this doesn't work either. <?php session_start(); if (!isset($_SESSION["manager"])) { header("location: admin_login.php"); exit(); } // …

Member Avatar
+0 forum 1 15
Member Avatar

I want to pull the image name from the database and insert it to the folder directory path using php. I am wondering is this possible and if so how? Ive attempted it a few different ways but i can't figure it out? while($row = mysql_fetch_array($result)) { echo "<tr>"; This Line ---> echo "<td> <img src='/images/ <?php '. $row['images_name'] .''>" "</td>"; <--- echo "<td>" . $row['product_name'] . "</td>"; echo "<td>" . $row['price']. "</td>"; echo "<td>" . $row['details'] . "</td>"; echo "</tr>"; }

Member Avatar
+0 forum 2 15
Member Avatar

Tryin to get this project to open on the server but before i can even see the php file inside i am getting errors. Solved a few but cannot see the error here hopefully ye can help. Error 1 = SCREAM: Error suppression ignored for Error 2 : Parse error: syntax error, unexpected '" href="' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in C:\wamp\www\Bus\bar.php on line 5 php file : 1 <?php 2 $catsql = "SELECT * FROM categories;"; 3 $catres = mysql_query($catsql); 4 while($catrow = mysql_fetch_assoc($catres)){ 5 echo "<a id="" href="&quot; .$config_basedir. &quot;/products.php?id=&quot; . $catrow[">". $catrow['name'] . "</a>";} ?>

Member Avatar
+0 forum 1 17
Member Avatar

Hey Guys, What i want it to do : 1. Combobox is displayed with a list of countys ie Limerick Dublin Cork 2. Choose County brings up second Combobox with countys towns and villages. 3. Hit search brings up relevant towns and vilages from the county chosen. What it does: 1. Loads countys 2. chose county 3. Second box pops up but with no values in the combobox nd it then crashs and informs me that County_ID cannot be found and "severe null" Code to fill First Combobox with the Countys (Works fine) public Activities_Area_Search1() { try { initComponents(); JdbcRowSetImpl …

Member Avatar
+0 forum 2 18
Member Avatar

Hey Guys, I am writing this code to send out personalised emails to potential customers. And i have few questions about the code. This code is made from several tutorials and code examples. I have searched for stuff on it and theres plenty of articles about it but not what i want to do. If anyone knows of one please throw us a link. This has two pages the first is just a basic form to fill in the subject thats it really. And the second is below. I'll reference the question next to the code its related to. :) …

Member Avatar
+0 forum 13 123
Member Avatar

Im writing some code to send out emails for work. And i've been stuck on with this error for a while nw. Any help will be greatly appreciated. Error message: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\PHP\mailMany.php on line 21 Heres my code: <?php // Check, if submitted. //if($submit) if(isset($_POST['submit'])){ // Get variables from POST method form. $subject=$_POST['subject']; $note=$_POST['note']; $sender="joelyonswork@gmail.com"; // Your Email here. echo "Email has been sent to:"; // Connect database mysql_connect("localhost","root",""); mysql_select_db("commercialenterprise"); $rs=mysql_query("select CommercialEnterprise_Email from commercialenterprise WHERE 'town' = 'Killkee'"); // Do while loop to send email. The Line below is where …

Member Avatar
+0 forum 2 33
Member Avatar

Can anybody point me in the direction of a good tutorial or pre written script for mailing many users from a database. Have been searching for the last two days and have got nothing good :(. Any help will be greatly appreciated. Either through gmail smpt or through a legitamate hosting site i just need sumthin to get this going. thanks

Member Avatar
+0 forum 1 26
Member Avatar

I have been tryin to get this to work for the past week if not two >:( with no joy. Worst of all its such a trivial problem. The program asks you to choose a town name from a combo box when you choose the location you shoud be brought to a brand new Jframe with a populated Jtable. Now everything does what its meant to do except the jframe window which opens as the border of the window and the minmise,maximise and close buttons. You can view the database by expanding the jframe window from the bottom right corner(Click …

Member Avatar
+0 forum 7 34
Member Avatar

Hey Guys, I am working on a search that takes in a value via textfield. Once taken in it should display another Jframe with the info but the searchbox crashes the second I run it. Its some stupid mistake I have made or i have gone about it the wrong way but at this stage my brain is fried from lookin at this code and i am not making any head way. The search box Code: import com.sun.rowset.JdbcRowSetImpl; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Joe Lyons */ public class BB_Value_SearchBox extends javax.swing.JFrame { /** * Creates …

Member Avatar
+0 forum 3 36
Member Avatar

Hey Guys, So I was doin a tutorial and I incorporated it into my code and it works for the most part. The program gives you a list of town names you pick one and hit search. All good so far then the program goes into the database and pulls the relevant info from 6 tables and they display in the next gui on a Jtable. Only problem is the column header are taken from the database aswell but I want Generic column titles as the ones from the table reflect the table they were pulled from and since there …

Member Avatar
+0 forum 4 16
Member Avatar

Hey guys, i found this tutorial online that involved searching your database for an existing value. I have changed the code around so it fits with my system but when i run it the input displays but once i press ok the input box closes and nothin else happens. Heres the Code : private void checkButtonActionPerformed(java.awt.event.ActionEvent evt) { Scanner sc = new Scanner(System.in); try{ java.sql.Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/ireland","root" ,"password"); Statement stmt = con.createStatement(); JOptionPane.showInputDialog("Please Enter the pubs name you wish to search."); String pubName = sc.next(); String SQL = "SELECT * FROM pubs WHERE Pub_Name = '" + pubName +"'"; …

Member Avatar
+0 forum 5 30
Member Avatar

Hey guys, I was wondering if you could tell me if this is even possible or if it can be done another way??? So i have a database with 6 tables all the databases have the same columns except for the tables name ahead of the generic headers pub_name, Hotel_name, restaurant_Name etc. Estentially i want to take all the values that meet the search criteria out of the 6 tables so if i want all the restaurants hotels and pubs that are in ennis can i do it?? Thanks

Member Avatar
+0 forum 4 42
Member Avatar

Hey guys im populating a combo box from my database i was just wondering how do i prevent the combo box from displaying different instances of the same value. e.g three B&Bs all from ennis. ennis is in the combobox but its displayed three times. how do i stop this ?? Thanks

Member Avatar
+0 forum 4 18
Member Avatar

Hi Guys I was just wondering how you stop the combo box from displaying different instances of the same value. In the combo box i have villages and towns names e.g doolin. onli thing is i have many businesses from doolin on the database so when i pull the town field for the combo box i get doolin in the cobmo box several times. How do I prevent this?? Thanks

Member Avatar
+0 forum 6 17
Member Avatar

Hi Guys, I am creating a system to work on a database adding updating etc. And the combo boxes are giving me trouble. The process is as follows. The user searches for a business by location once entered all business for that area are then displayed name address owner etc. The User is offered the options update delete etc I was wondering is there a way to display the combo box with the alredy selected choice from the database leaving the other options there so it can be updated if nessecary. i have tried using setSelectedItem() and setSelectedIndex() and no …

Member Avatar
+0 forum 1 17

The End.