17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sid78669

I am starting out with PHP and in my project I'm trying to fetch XML data from a url and parsing it for data. Now the url that I use is being fetched from a webpage and hence I know that it is correct and it exists. Still, when I …

Web Development html-css php
Member Avatar for sid78669
0
263
Member Avatar for rayidi

Dear Friends, Am developing a sms based website. i bought the gsm modem. problem how to connect the com port through php and querying the gsm modem with AT Commands ?? Please help me out [COLOR="Red"]Modem:- Visontek 82GH USB MODEM It supports at commands. [/COLOR] Note:- Am sending sms and …

Web Development php
Member Avatar for vattana ybm
0
2K
Member Avatar for TheNinjaForce

Im confused on how to get pgpMyAdmin I went to the website and downloaded the phpMyAdmin-3.4.3.2-all-languages.7z I opened it and all I see is a bunch of files now what?

Web Development php
Member Avatar for trbograndnat
0
177
Member Avatar for mosesmn

Am getting: Parse error: syntax error, unexpected T_DNUMBER $post_xml = "<?xml version="1.0" encoding="utf-8"?><PesapalDirectOrderInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Amount="".$order_total."" Description="".$transaction_details."" Code="".$code."" Type="".$type."" PaymentMethod="".$payment_method."" Reference="".$reference."" FirstName="".$first_name."" LastName="".$last_name."" Email="".$email."" PhoneNumber="".$phonenumber."" UserName="".$username."" xmlns="http://www.pesapal.com" />"; $post_xml = htmlentities($post_xml); If I use single quotes the error dissappears but it does not function the way i would like it …

Web Development html-css php
Member Avatar for mosesmn
0
156
Member Avatar for utthu

I have attached the screenshot of my output. I guess, the syntax is wrong. Please help.! [CODE]<?php //initilaize the mysql user name and password //Database Config $dbHost='localhost'; //Database server $dbName='db'; // Name of the database $dbUser='root'; // Database username $dbPass=''; // Database password $source = mysql_connect($dbHost, $dbUser, $dbPass); if (!$source) …

Web Development php
Member Avatar for diafol
0
365
Member Avatar for Niharika Jain

Hey, I've just started with JSP! Was trying my hand at this Shopping cart app.here's the code..[CODE]<%@page import ="java.sql.*"%> <%! Connection con = null; String query = null; PreparedStatement stmt = null; ResultSet rs = null; %> <HTML> <BODY BGCOLOR='ORANGE'> <CENTER> <H2>YOUR CART CONTAINS</H2> <% try{ Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/shopping_mart?"+"user=root&password=root"); …

Web Development ecommerce java-jsp
0
92
Member Avatar for sharathg.satya

help me in using ajax controls in C#.net i am using them but finally they are not getting displayed. the watermarker is not being displayed as the default text moreover the box is empty... here is the code [CODE] <asp:ScriptManager ID="ScriptManager1" runat="server" /> <br /> <br /> <br /> <asp:TextBox …

Web Development asp.net
0
55
Member Avatar for mangel.murti

hi guys ,, i want all th and corresponding td value like Beds=>7 , Baths=>8 , House Size=>12000 sq ft [CODE] <table cellspacing="0" class='abc'> <tbody> <tr> <th>Beds</th> <td>7 bed </td> <th>Baths</th> <td>8.5 bath </td> </tr> <tr> <th>House Size</th> <td>12000 sq ft </td> <th>Lot Size</th> <td>2.62 Acres </td> </tr> <tr> <th>Price</th> …

Web Development php
Member Avatar for mangel.murti
-1
136
Member Avatar for bhagawatshinde

Hi, Can anybody tell me how to set values to textarea. i have an value from sqldb which are to be set. I can retrive the values like this [CODE] string add1 = Request.Form["txtadd1"];[/CODE] but not able to set the values to the textarea.

Web Development asp asp.net
Member Avatar for bhagawatshinde
-1
138
Member Avatar for Rahul1996

Hey guys, I have a function called showAll, which has 2 arrays as it's arguments. I declared it as follows: function showAll($dayarray, $distinctShifts) both arguments are returned in other parts of the code, so why is it giving me missing argument errors for both of them? Please give me some …

Web Development php
Member Avatar for diafol
0
94
Member Avatar for heshanm

Hi all, t to upload files to my server. Here i have created a coding. This only allows me to upload pictures. How can i amend my coding to upload word and excel files also... [CODE] <?php $db=mysql_connect('localhost','root',''); mysql_select_db('bank'); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == …

Web Development php
Member Avatar for mschroeder
0
141
Member Avatar for anita_86

Hi!! This is some of the code I am using to add dynamic rows when user clicks the Add Row button.I want to show the calculated amount like: line_total=qty*unit_price; sub_total=total of line_total; total=sub_total+tax-advance; [CODE]<script type="text/javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; if(rowCount<3) { var row …

Web Development javascript qt
Member Avatar for anita_86
0
150
Member Avatar for Ichcha

hi am beginner in php.. please help me.. rough explanation: user will select orgname and the following code will get the orgname and import data from mssql. i wanted to filter those data according to groupname and count number of users access to the system in month basis according to …

Web Development mssql php
Member Avatar for Ichcha
0
467
Member Avatar for shamim0754

Hellow,I need to help for desinging a online based education website.what thing I considered of this site.I plan my site will be remain advanced login system,exam system,tutorial but I need more concept that i can do and how can i do this.thanks

Web Development php
Member Avatar for Nahiyan
0
89
Member Avatar for SagarSe7en

Hello Everyone! I am developing a library system and want to ask how i can display a record in jsp from my DAO.java file and how cn i be able to use next and previous button. Please Help as i need to submit the system urgently

Web Development display java-jsp
Member Avatar for peter_budo
-1
106
Member Avatar for mbarandao

Hello; I using the following sql to get information from two tables --through join; /[CODE]/ this join works in sql, but can $res = "select ad.firstname, ad.lastname, ad.address, ad.city, ad.state, ad.zipcode, ad.dhtmlgoodies_category, ad.dhtmlgoodies_subcategory, ad.caryear, ad.customerid, ad.servicedesc, aj.email, aj.areacode, aj.phoneprefix, ad.clientID, aj.phonesufix, aj.cellareacode, aj.cellprefix, aj.cellsufix, aj.commentonclient from additional_cars as ad, ajax_client …

Web Development php
Member Avatar for ddymacek
0
438
Member Avatar for Rahul1996

Hey everyone, I'm having an undefined variable error where I have marked in red. The variables i and f2 are defined in another method somewhere else in the code. Please tell me how to fix these errors. Thanks in advance!! function showDateBox() { $startDate = array(); $endDate = array(); $dayarray …

Web Development php
Member Avatar for Rahul1996
0
130
Member Avatar for gordo58

Hi, I am trying to redirect links through a php redirect. I am just about there but am having problems with the coding to pass the variable through from my page to the php script. For example link on my page is: [url]http://www.website.co.uk/redirect.php?m=196591.html[/url] This should display the page for HotelID …

Web Development php
Member Avatar for gordo58
0
246
Member Avatar for bhagawatshinde
Member Avatar for Shilpakmthn
0
82
Member Avatar for rpv_sen

Hi Friends i am facing problem in searching a words from database. Below is my Database details [CODE]CREATE TABLE IF NOT EXISTS `latest` ( `latest_id` int(25) NOT NULL AUTO_INCREMENT, `latest_title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `latest_short` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `latest_image` varchar(250) NOT …

Web Development php seo
Member Avatar for shaams
0
195
Member Avatar for Paaat

Hello people.. I have written a code that replaces IMG tags in a text with the HTML <img tag.. However, I faced a problem; Big images spoiled the layout of the page being viewed. Is there anyway to limit the size of the image only when it's more than 300 …

Web Development php
Member Avatar for Pro2000
0
129
Member Avatar for elibyy

hey there i've opened the source code of PHPbb and i saw something real wired [CODE=php]<!-- INCLUDE overall_header.html --> <p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p> <!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF --> <!-- IF S_DISPLAY_SEARCH or …

Web Development html-css php phpbb
Member Avatar for elibyy
0
253
Member Avatar for bhagawatshinde

Hi, I am new in ASP.net. i have create a webform which contains 2 fields textbox1 and textbox2 and two button new and save. i have included the requirefied validator on textbox1. now when i am clicking on new button it will display message i.e enter id. but on new …

Web Development asp.net
Member Avatar for bhagawatshinde
0
126
Member Avatar for klemme

Hi all, I have this mail which works fine: But how can I pass the html tags, as html tags so it shows bold in my inbox? As it is now, i recieve the tags as normal letters.. This is what I have: [CODE] if(empty($error_msg)) { // If validated -> …

Web Development email html-css php
Member Avatar for leakbali
0
147
Member Avatar for megachip04

I have a form in account.php that is prefilled with the user's current info but can be changed and then when you submit, it updates the database. However, when returned to the page after the update, the prefilled text is not updated. It only updates if you re-log in. At …

Web Development mysql php session
Member Avatar for ddymacek
0
8K
Member Avatar for riseguim

Ok so I want people to fill in a form and when they press submit it gets sent to my email address... Everything is working fine I just need to know how to make the checkbox appear in my email, the free script I used didn't have any checkbox and …

Web Development email php
Member Avatar for riseguim
0
206
Member Avatar for riseguim

Ok so here's the deal... I have mostly French-speaking customers and they'll type-in their name with accents (such as é, à, è, etc.) in the following script [CODE]$string_exp = "/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$prenom)) { $error_message .= 'Invalid name<br />';[/CODE] It will say "invalid name". I know that to fix this I …

Web Development php
Member Avatar for riseguim
0
152
Member Avatar for CaffeineCoder

I'm trying to connect a SQL database to a Classic ASP site. I keep getting the following error message no matter what I do: ADODB.Connection error '800a0e7a' Provider cannot be found. It may not be properly installed. I have an ODBC entry for this database, as well as have the …

Web Development asp sql
Member Avatar for CaffeineCoder
0
4K
Member Avatar for megachip04

Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/oeaivcom:/usr/lib/php:/usr/local/lib/php:/tmp) I am trying to create a form that someone can submit a file to an ftp location. I found a script online and it is giving me this error. Could anyone point me in the …

Web Development file-system php
Member Avatar for Insensus
0
580
Member Avatar for phaedrusGhost

Hi all, This has always confused me to no end and now that I really need a JOIN I need to get this. I am working with a small blogging section of my site here. In one table I have "blogs" and another table I have "comments". My comments table …

Web Development mysql php
Member Avatar for leakbali
0
146
Member Avatar for facarroll

Hi members. I am working on a couple of pages that present me with the same problem. I have set up a log in that puts member data into a session variable. Then the logged in member proceeds to alter some of their own data using a form, and the …

Web Development php session
Member Avatar for vaibhav1983
0
14K
Member Avatar for Ralphael

I am relatively new to php and i am having this error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" and i cant figure out what is wrong with …

Web Development php queue
Member Avatar for Ralphael
0
108
Member Avatar for riseguim

Hi, I have a form to email script here and whenever someone puts "à, é, etc" anything with an accent in the name or last name section it says that it is invalid. Also I would like to make the telephone number area required... Might you know how? [CODE]<?php if(isset($_POST['email'])) …

Web Development email php
Member Avatar for riseguim
0
226
Member Avatar for y2kshane

[code]<% String UN=request.getParameter("un"); String pw=request.getParameter("pw"); String FN=request.getParameter("FN"); String LN=request.getParameter("LN"); String L1=request.getParameter("L1"); String L2=request.getParameter("L2"); String L3=request.getParameter("L3"); String ccn=request.getParameter("ccn"); Class.forName("com.mysql.jdbc.Driver").newInstance(); java.sql.Connection myConn; myConn = DriverManager.getConnection ("jdbc:mysql://localhost:3306/train_resev","root", "3866" ); PreparedStatement ps=myConn.prepareStatement("insert into user values('" + un + "','" + pw + "','" + FN + "','" + LN + "','" + L1 + …

Web Development apache java-jsp sql
Member Avatar for pushkar honey
0
125
Member Avatar for oamunoz

Hello! I've got the code below which takes data from my db and displays it to the page listing reports submitted by the user. At the end of each row I have button that is supposed to launch a PDF generator so that the user can view their report. I …

Web Development gui pdf php
Member Avatar for oamunoz
0
696
Member Avatar for katieJane

Hi all I am a little confused with an issue regarding a combo box being displayed on my asp.net webpage. All I want to do it have a blank default value at the top of a list which is bound with a database, which also prevents the user from selecting …

Web Development asp.net
Member Avatar for katieJane
0
185
Member Avatar for KPheasey

I have the following code which should update the total items in a categories list every time that a search filter is changed. However, the function will only run once. [CODE] function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ …

Web Development javascript
Member Avatar for stbuchok
0
449
Member Avatar for Tess James

Am gettin an error msg like this--> The image “[url]http://localhost/linegrph.php”[/url] cannot be displayed, because it contains errors. while tryin 2 run my code on localhost.. Wen I comment d statemnt, $graph->Stroke(), nthng at all displys.. Plseeee do tell me a solution.. Thnks in advance :)

Web Development php
Member Avatar for greensign
0
223
Member Avatar for calebcook

I don't know if this is possible, but I want to submit information using POST with a link. I know I can use GET, and I know I can use a form with a hidden value and submit it with a link, but I don't want either of those. I …

Web Development first-post php seo
Member Avatar for calebcook
0
281
Member Avatar for calebcook

I'm trying to create a message board where members can post messages to other members. I'd like to have a section where it says "4 posts since Jan 2011" just like DaniWeb does. How do I get the date from the [CODE]"first row WHERE user='username'"[/CODE] with PHP & MySQL? Also, …

Web Development mysql php
Member Avatar for calebcook
0
118
Member Avatar for samsons17

HI,..i've been working on this simple project that i need to submit it tomorrow. I really in rushing a little bit. But while i working on this oop project, my program give the strange little fatal error about my query which is this [B]Fatal error: Call to a member function …

Web Development mysql oop php
Member Avatar for aquilax
0
15K
Member Avatar for karthik_ppts

Hi Frendz, How to get the id of an element using onClick Event in <body> tag using javascript?

Web Development javascript
Member Avatar for ushajase
0
16K
Member Avatar for lps

I am using a acript to control the input field of my page where it can enters numbers only in telephone field. Can anyone help me on how to modify the code to allow a symbol '+' ? [CODE] <script> function zz(txt) { var txt1 = txt.value.replace(/[A-z]/g, ""); document.getElementById('aa').value = …

Web Development javascript
Member Avatar for urtrivedi
0
119
Member Avatar for wfray

I've tried a number of the HTML/CSS techniques to get my table to scroll horizontally but none of them work. The table has been wrapped with a DIV and the CSS has included the OVERFLOW code but all to no avail. The code is basically like this: [code=html] <div class="Divscroll"> …

Web Development html-css javascript
Member Avatar for aquilax
0
143
Member Avatar for Shizuo

heres my script [CODE]function count_chars(tarea) { if ( document.getElementById("checkchars").checked ) { x=document.myform.tarea.value; document.myform.charcount.value=x.length; } else { var x ; x = document.myform.tarea.value.replace(/\n/g,''); var y = x.split(' '); document.myform.charcount.value = x.length - ( y.length - 1) ; } } function count_words(tarea) { var y=tarea.value; var r = 0; a=y.replace(/\s/g,' '); a=a.split(' …

Web Development javascript
Member Avatar for urtrivedi
0
94
Member Avatar for vectro

One WordPress site on one of my servers is giving an incorrect HTTP response code when a page can not be found. On the end-user side, the user sees a custom 404 page. But on the web-server side Apache is giving a 200 or 300 response (not sure which one) …

Web Development apache php web-server wordpress
Member Avatar for vectro
0
202
Member Avatar for come_again

Hello everyone, I am trying to write a simple web application where I have a mySQL table. I am using drop down menus to select options on how to filer the table.... i.e. select the subject, filter the table for just that subject and continue on. Anyways I'm trying to …

Web Development javascript
Member Avatar for come_again
0
200
Member Avatar for dwlamb

Good day, The challenge I am experiencing is obtaining the contents of the private necessary to decrypt data. I've reviewed tutorials on public/private key generation and my keys are properly formatted. To debug, I substituted a pair of keys created a year ago when I took a course on secure …

Web Development php
0
83
Member Avatar for sethm

I am trying to setup a form that will output html to the email recipient so the format of the email doesn't look all jacked while at the same time making sure the person is human and doesn't allow bad characters. (so it has a verification script and it strips …

Web Development html-css php
Member Avatar for sethm
0
143
Member Avatar for Hummdis

I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is …

Web Development php regex
Member Avatar for Hummdis
0
248

The End.