52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bradly.spicer

Hello everyone, My friend has been helping and he's been great however it's come to a halt :P I'm working with MYSQL at the moment but am having a few issues with my code. Index.php: <html><link href="stylesheet.css" rel="stylesheet" type="text/css"> <head> </head> <body> <div id="header"><img src="http://www.rhinosecurityltd.co.uk/templates/rhuk_milkyway/images/mw_joomla_logo.png" alt="Rhino Security"> </DIV> <form name="Form" …

Web Development html-css mysql php
Member Avatar for bradly.spicer
0
177
Member Avatar for FakeTales

i have this xml file <CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Columbia</COMPANY> <PRICE>10.90</PRICE> <YEAR>1985</YEAR> </CD> </CATALOG> with my php code i am able to get the parent node <CATALOG> then all the other data such as <TITLE> etc etc , how would i go about getting the <CD> tag?? …

Web Development json php xml
Member Avatar for FakeTales
0
225
Member Avatar for HunainHafeez

what is the difference between class diagram and ERD ? i have to present my project , which i developed in asp.net 3.5 and sqlserver 2008, so my Supervisor told me to present diagrams, architetures etc of my project ? so guide me about it, please ?

Member Avatar for pritaeas
0
116
Member Avatar for missc

i am displaying products in list view ! now in <itemTemplate> i'm showing the product name by doing : <b> <%# Eval("ProductName") %></b> now i would like to also show the price of this product. but the price is in another table since prices are different for different types of …

Web Development asp.net
Member Avatar for missc
0
170
Member Avatar for hwoarang69

i am not sure what i did but i messed up my page. take a look at page and you will see the problem. it puting php code in a echo"";. i cant seem to find where the problem. <!-- Connect --> <?php session_start(); //for errors include("../../INCLUDE/header.php"); ?> <!-- top …

Web Development php
Member Avatar for hwoarang69
0
190
Member Avatar for daravindm

hi friends. i need a help how to enable and disable multiple textboxes corresponding a button click belwo i will show u the image ![catalogsearc](/attachments/large/3/catalogsearc.JPG "catalogsearc") when i click the check box i want to enable these text fields.. hw it possible please provide a sample codes or give me …

Web Development java-jsp
Member Avatar for subramanya.vl
0
224
Member Avatar for eoop.org

Hi, I want to develop a CMS that I can use when I make websites. Want to simultaneously post it online so that people can download it and develop plugins and themes for this. Would like to have it as user friendly as other CMS such as Wordpress, Joomla, Dupal …

Member Avatar for eoop.org
0
191
Member Avatar for DanErik

Hello! Im looking for a new source code editor. Have come to the point where I need something more powerful and professional. The big issue is this: We develop software in PHP. In our code we have language specific strings like: ------------------------------- echo "Enter your name:"; ------------------------------- We would like …

Web Development php
Member Avatar for diafol
0
229
Member Avatar for Clanstrom

I just need to know, what is the difference and relashin ship between the two?

Web Development php
Member Avatar for veedeoo
0
142
Member Avatar for OsaMasw

Hi there fellow daniweb programmers I have problem in running function in javascript <script type="text/JavaScript"> function toggle() { var e = document.getElementById('target_<? echo $id; ?>'); e.style.display = 'none'; } </script> I have button that generated in php code so its repeating itself <li><a id="target_<? echo $id; ?>" href="like.php" onclick="toggle()"><img src …

Web Development javascript php
Member Avatar for OsaMasw
0
3K
Member Avatar for HunainHafeez

i put a code in my website to redirect user to paypal sandbox , after entering his email id , and storing it in session , in return url of paypal sandbox i mentioned a page but it doesn't work, it doesn't maintaing the session variable, it assigns null to …

Web Development asp.net open-source session
Member Avatar for HunainHafeez
0
1K
Member Avatar for Dani

I'm trying to get PubSubHubbub set up but I'm rather confused. I understand the concept but the implementation is troubling me. To get my feet wet, instead of starting my own hub, I decided to use Superfeedr. I *think* I have it set up correctly, but I want to test …

Web Development xml
Member Avatar for Dani
0
102
Member Avatar for Octet

I am trying to help prevent SQL injection using mysqli_real_escape_string, I have the following: <?php $Connect = mysqli_connect ('', '', '', ''); if (mysqli_connect_errno()) { die ("Couldn't Connect to the Database"); } $String = "Hello, my name is (*$<>)*$)!*)_£)(!*£$&"; echo $String."<br><br>"; $Escaped = mysqli_real_escape_string($Connect, $String); echo $Escaped; ?> The problem …

Web Development mysql php
Member Avatar for GliderPilot
0
732
Member Avatar for Resentful

Hello, everyone. I've recently switched hosts and the same script I was running in the past is now causing the rest of my MySQL queries to be locked, and it seems the query never completes. The code is: <? $con = mysqli_connect('localhost','user','password', 'database'); $Q = "DELETE FROM `Table1` WHERE `Field1` …

Web Development mysql php
Member Avatar for Larry_Singleton
0
151
Member Avatar for cussel

> hi guys, i've two array 3d $data and $array_bold, then i want to bold value $data be based value $array_bold, how i can do this??? <?php $data = array( array( '0'=>array( '0'=>'chelsea everton villa liverpool', ), array( '0'=>'milan inter juventus napoli', ), ), '1'=>array( array( '1'=>'madrid barcelona altetico getafe', …

Web Development php
Member Avatar for diafol
0
186
Member Avatar for scaiferw

I'm dipping my toe in the water of salted passwords by upgrading an older webapp, and would like to present the rough outline of how my system would work in the hope that those with more experience than I might tell me if I'm going in the right direction; In …

Web Development php
Member Avatar for diafol
0
196
Member Avatar for timwhelan

I am trying to turn off a block in drupal using existing code. <?php $node = node_load(arg(1)); $type = $node->type; if(substr($_SERVER["REQUEST_URI"], 0, 13) == '/our-people') { return TRUE; } else { return in_array($type,array('3_column_interior_page', '3_column_faculty_bio_page')); } ?> I wanted to add a page that will not show the block... <?php $node …

Web Development php programming-construct
Member Avatar for timwhelan
0
201
Member Avatar for crazydevelopervish

my aspx code <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" > <ItemTemplate> Product_Image: <asp:Label ID="Product_ImageLabel" runat="server" Text='<%# Eval("Product_Image") %>' /> <br /> Item_Description: <asp:Label ID="Item_DescriptionLabel" runat="server" Text='<%# Eval("Item_Description") %>' /> <br /> Price: <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price") %>' /> <br /> Qty: <asp:Label ID="QtyLabel" runat="server" Text='<%# Eval("Qty") %>' /> <br …

Web Development asp.net open-source
Member Avatar for crazydevelopervish
0
129
Member Avatar for andyhunter

how do you manually add it when the link is www.somesite.com which i would want it to be added to index.html ? function setActive() { /*current page function*/ $('#menu a').each(function(index) { if(this.href.trim() == window.location) $(this).addClass("current"); }); this works for any pages that are in the navigation menu.

Web Development javascript
Member Avatar for stbuchok
0
94
Member Avatar for mousa.khaleel13

Anyone can please help in this. I need to assign a path for a text file in a variable to be shown later on in html here's my code: <html> <head> </head> <body> <!-- Header --> <header> </header> <!-- End Header --> <!-- Main --> <section id="main"> <script type="text/javascript"> var …

Web Development javascript
Member Avatar for AleMonteiro
0
4K
Member Avatar for rpv_sen

Hi Friends I am having a domain with name **domainname.com**, and its working fine. i have create a sub domain named **cds.domainname.com** and i have upload some set of asp.net files. when i was trying to access **cds.domainname.com** it is showing the domainname.com web content. Can any one please help …

Web Development asp.net
Member Avatar for JorgeM
0
180
Member Avatar for daniel36

can anybody tell me event name for check box for using in jquery.such as for drodown it is 'onchange' .thank you.

Web Development javascript-jquery php
Member Avatar for daniel36
0
66
Member Avatar for daniel36

is it possible to convert 09 to 9 by any function?if yes,please tell me.It is required to me.Thank you.

Web Development php
Member Avatar for daniel36
0
109
Member Avatar for anmolvatsa

FOR FOLLOWING CODE <%@language=VBScript%> <%Option Explicit%> <html> <body bgcolor="aqua"> <% Dim myConn Set myConn = Server.CreateObject("ADODB.Connection") myConn.Open = ("DRIVER={Microsoft Access"&" Driver (*.mdb)};DBQ="&"C:\Inetpub\wwwroot\tizagASP\razor.mdb;") myConn.Close() Set myConn = nothing %> </body> </html> I GOT FOLLOWING ERROR The page cannot be displayed There is a problem with the page you are trying to …

Web Development asp microsoft-access vbscript
Member Avatar for ptduran
0
151
Member Avatar for Venter

public function display( ) { $query="SELECT * FROM test ORDER BY RAND() limit 5 "; $result=mysql_query($query)or die("cannot select DB"); $num=mysql_numrows($result); echo "<table>"; echo "<tr>"."<td style='overfolw-hidden;width:400px;'> Question: </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION A </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION B </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION C </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION D …

Web Development php
Member Avatar for pritaeas
0
136
Member Avatar for daniel36

Is there any function for changing a numeric value to string?suppose i passes '5' then it should return 'five'.

Web Development php
Member Avatar for daniel36
0
86
Member Avatar for cheelo007

I've been trying to make dynamic queries, where the user determines what will be queried. The reason is because I'd like the images being displayed in my gallery reflect the category selected by the user. mysql_query("SELECT(whatever category they chose) FROM products") below is the generation of categories as links. (not …

Web Development mysql php
Member Avatar for gon1387
0
169
Member Avatar for gon1387

Hi Everyone, I've been looking for good javascript projects to join. Are there any projects you can advice? I've researched a lot. (with the help of Google. :D) But would also love to get advices from people who have/had worked at an opensource project here. I would also love to …

Web Development javascript open-source
Member Avatar for gon1387
0
283
Member Avatar for mehnihma

I am bulding a code for my site and have few problems 1. When I run this few times, it updates table ps_stock_available but with wrong values and after some time is stops to update that table? The problem is in the last query, two queries above are working ` …

Web Development mysql php
Member Avatar for gon1387
0
322
Member Avatar for MMadhavi

I want to show google map of selected theatre. first user have to select city then they have to choose theatre as per selected city. i have used drop down box for both. then, after selecting theatre, when he clicks on show button i want to show google map of …

Web Development gui php seo
Member Avatar for MMadhavi
0
1K
Member Avatar for anonymousi

how to write a vb.net code for asp.net to display image in gridview by using the url of the image stored as text in sql database.So whatever the url may be the gridview should show the image using that text as reference instead of just using the name of the …

Web Development asp.net display image
Member Avatar for anonymousi
0
2K
Member Avatar for cheelo007

Hello, I'm sure I'm missing something small. If a category doesn't exist in the database yet, how can I have the query accept a value of 0 without reporting an error? The $subcategory is what the user selected. The result should either be 4 images or a blank place holder …

Web Development mysql php
Member Avatar for cheelo007
0
130
Member Avatar for 4Dante

Hi, I've looked online for a few days but haven't been able to find an adequate solution. I'm just trying to use javascript to validate that a password doesn't contain user data (first name, last name, etc...) I really thought it would be simple. Here is what I'm using: function …

Web Development javascript
Member Avatar for 4Dante
0
207
Member Avatar for dancks

addproduct.php snippet (there are lots of other inputs, not sure if that matters): <form method="POST" action="add.php" enctype="multipart/form-data"> <p>Picture:<input type="file" id="pic_upload" name="pic" /> <input type="submit" /> </form> add.php: if(isset($_FILES["pic"])) { if($_FILES["pic"]["error"]==0) { $name = explode(".",basename($_FILES["pic"]["name"])); $target = realpath(dirname($_SERVER['PHP_SELF']))."/images/".$name[0].session_id().".".$name[1]; $temp = $name[0].session_id().".".$name[1]; if(!move_uploaded_file($_FILES["pic"]["tmp_name"],$target)) { add_error("Picture specified did not upload"); } $_POST['pic']=$temp; } …

Web Development file-stream php
Member Avatar for dancks
0
108
Member Avatar for NardCake

Hello! I'm working on a simple messaging system for a project and I have this query and it isn't working for some odd reason, here it is: mysql_query("INSERT INTO messages SET user='$user', message='$msg', date='$date', to='$id', private='$checked' ") Here is my error: You have an error in your SQL syntax; check …

Web Development mysql php
Member Avatar for NardCake
0
148
Member Avatar for cyberdaemon

Good day, I want to use N-TIER for my application.I have DAL and BAL already, since i have that 2 project already. am missing 1 project which is the UI.so i created my UI project. Since am excited to test my simple n-tier i created a simple GUI using gridview …

Web Development asp.net gui
Member Avatar for cyberdaemon
0
133
Member Avatar for clausont

I am building a new website and migrating all users off a CMS (ExpressionEngine) that uses MYSql. I have all of the users imported into a MS SQL staging table (except passwords). I am trying to create members in asp.net membership by looping through the users in the staging table. …

Web Development asp.net cms sql
Member Avatar for clausont
0
218
Member Avatar for azgold472

I have the following code... <?php $con = mysql_connect("localhost:3306","name","pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("barndata", $con); $today = date("Y-m-d"); $result = mysql_query("SELECT * FROM event where Date >= '$today' ORDER BY Date ASC LIMIT 0, 7") ; while ($row = mysql_fetch_array($result)) { echo 'banner1.add("IMAGE","'; echo …

Web Development php
Member Avatar for azgold472
0
178
Member Avatar for shahai.ali

hi i have a table like this for attendence: table name attendence. id std_rolNum std_fname date std_bkfast std_lunch std_dinner i want to make search on the base of `date`, `std_rolnum`, `std_lunch`, `std_bkfast` and `std_dinner`. so that if on the same date if student have already taken breakfast, lunch or dinner …

Web Development asp.net c# mysql sql
Member Avatar for shahai.ali
0
335
Member Avatar for ThePythonNoob

Hi, I am trying to make a click counter. The prolem is the onClick part in button code. If i made it so it was "click();" and placed the var clicks into the function click then it would kind of work. But when I pass a variable into it.. it …

Web Development javascript
Member Avatar for ThePythonNoob
0
152
Member Avatar for matt_higgins

<div style="font-family:tahoma; color:#F00; "> <?php session_start(); if (isset($_SESSION['user'])) echo "You are logged in as ".$_SESSION['user'], " to log out click <a href =logout.php>here</a>"; else die ("Please Register <a href =register.php>here</a>");?> </div> <?php $username = $_SESSION['user']; if(!isset($_SESSION['user'])) { header("location: login.php"); } else { $query=" SELECT * FROM users WHERE user='$username'"; $result=mysql_query($query); …

Web Development php
Member Avatar for EvolutionFallen
0
268
Member Avatar for shahai.ali

hi m getting the following exception: `System.Data.SqlClient.SqlException: Incorrect syntax near '4'.` the following is what i was trying: public void hostel_cpacity(ManageHostelRoomsBE hmr) { string str; string conString = System.Configuration.ConfigurationManager.ConnectionStrings["Hosteluog"].ConnectionString; SqlConnection con = new SqlConnection(conString); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open(); DataTable dt = new DataTable(); DataTable dt1 …

Web Development asp.net mysql sql
Member Avatar for shahai.ali
0
153
Member Avatar for davy_yg

I get this error: Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 23: parser error : Premature end of data in tag catalog line 2 in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Fatal error: Uncaught exception 'Exception' with …

Web Development php xml
Member Avatar for Atli
0
1K
Member Avatar for cdoggg94

Basically I just dont know where to start.. I want to make a table that displayed as many images as there are in the DB. I want the table to only go 4 <td> wide, then move to the next line...etc.. I tried googling a few things, but I couldnt …

Web Development php
Member Avatar for pritaeas
0
97
Member Avatar for coder91

Pulling column names from a database. Column names aren't user friendly so was wanting to rename them on the pdf. Is there a way to do this? foreach (DataColumn column in dt.Columns) { PdfPCell pCell = new PdfPCell(new Phrase(column.ColumnName, TableHeaderFont)); pCell.BackgroundColor = BaseColor.BLUE; pCell.Padding = 6; contentTable.AddCell(pCell); } this is …

Web Development asp.net pdf
Member Avatar for coder91
0
444
Member Avatar for RenanLazarotto

Hello guys! I'm trying to change an element background color when my mouse goes over another element. As far as I know CSS, this seems to be impossible to do only with CSS, so what kind of js I need to do this? My knowledge in JavaScript it too limited …

Web Development javascript
Member Avatar for RenanLazarotto
0
2K
Member Avatar for hwoarang69

error: Mail error SMTP Error: Could not connect to SMTP host. i think its bc of mail->port=465. but iam not sure. $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as …

Web Development php
Member Avatar for jstfsklh211
0
499
Member Avatar for abby.delacruz.927

Guys help me with this code. I don't know what to do. I have 2 div the 1st is in the left and it has a button and on the other div is to show/display when I click the button on the 1st div. <html>// this is my index.html <head><title> …

Web Development display gui html-css javascript
Member Avatar for JorgeM
0
318
Member Avatar for ruchi18

Hi, I have a jsp file which call java class file function passing connection as a parameter all was working fine once but when i changed few code in java file and compli it complied successfully but jsp file still giving previous class function output. I am working on amezon …

Web Development file-system java java-jsp
Member Avatar for ruchi18
0
188
Member Avatar for manaila

I am trying to test [this](http://www.tutorialspoint.com/jsp/jsp_java_beans.htm) code but unfortunately I get `Can't find a method to write property 'age' of type 'int' in a bean of type 'test.StudentsBean'` error. But when I change age type to String and also its getter and setter methods it works well. Can anybody tell …

Web Development java java-jsp
Member Avatar for manaila
0
104

The End.