52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for niche1

Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br …

Web Development javascript pc-peripheral
Member Avatar for razvysb
0
945
Member Avatar for mpc123

So I have a single drop down menu populated from data base, now i want to get a bit snazzy and select from the first and from the selected then populate the 2nd drop down to select and then link to a url. Here is my code for first drop …

Web Development php
Member Avatar for diafol
0
151
Member Avatar for spluskhan

I try to limit my search result to 5-7 per page, but i got this error: *Parse error: syntax error, unexpected T_STRING * My Code is: <?Php require "config.php"; // All database details will be included here $page_name="page1.php"; // If you use this code with a different page ( or …

Web Development php
Member Avatar for spluskhan
0
233
Member Avatar for tundewoods

I am trying to code a mysql query that will enable me select and insert multiple vaules from one table to another table in the same mysql database. I want to automatically populate the values from my id,levy from my tb_residents into table 2 resident_payments uid , rate . I …

Web Development mysql php
Member Avatar for pritaeas
0
376
Member Avatar for rpv_sen

Hi I am working on dynamic add row. In that if a value is enter in ptype box it should disable the releated textbox filed based on the value. i written code but its not working can any please help me to solve this issue **html Page** <form id='students' method='post' …

0
156
Member Avatar for davy_yg

Hello, I am trying to access the admin page and there is error in the admin first page: http://www.indonusa.net.id/IndonusaCMS/admin/ How to fix it? admin/index.php <?php include ($include); ?> </div> </div> </body> </html> <? } ?> Here is like the last 20 lines of admin.

Web Development php
Member Avatar for davy_yg
0
814
Member Avatar for sjarun833

I have two tables in db named department (contains department) and sup (contains name of supervisors name). now my query is: By selecting the department in select menu the next select field sup should automatically get fetched with names. how can i do it with php using onchange javascript menu.. …

Web Development php
Member Avatar for Szabi Zsoldos
0
198
Member Avatar for L-D

Hi, Entering website first time. Script says Admin then admin. Like so Admin Id: Admin Password: admin But get Error. Wrong Admin Login. Plus these errors top of page: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to …

Web Development mathematics php
Member Avatar for titos97
0
234
Member Avatar for raminshahab

I can't seem to get a response from my query method. I have a database connection from method ping_server and use mysqli as connector. Can anyone help me figure out why I cannot print results from mysqli_fetch_array. dbclass.php class db { private $connection; private $selectdb; private $lastQuery; private $config; function …

Web Development mysql php
Member Avatar for raminshahab
0
360
Member Avatar for nitin1

I am new to parsers. I want to extract/parse the HTML documents. I have heard of this HTML DOM using PHP. Can ypu tell me some links or some basic introduction to start with? How can I use it to extract info from HTML document? Thanks in advance.

Web Development first-post html-css php
Member Avatar for veedeoo
0
258
Member Avatar for titos97

On the Ad there is 2 security groups 1. SG-warehouse1 users : test1 2. SG-warehouse2 users : test2 These 2 Security groups belogs to one distubution list : DL-warehouse what i am trying to do instead of searching 2 secuirty gorups i like to check if the user links to …

Web Development file-system php
0
155
Member Avatar for asma.fayaz.77

Undefined index: id line 7 help me please email me asap at asmafayaz@hotmail.co.uk <?php // Connect to database server $conn = mysqli_connect("mysql5", "fet12014211", "Milkshake12","fet12014211"); // Show a particular value. $id = $_GET['id']; // SQL query $strSQL = "SELECT * FROM countries where iso_alpha3='" . $id . "'"; // Execute the …

Web Development dataset php
Member Avatar for titos97
0
861
Member Avatar for Sankar_1

<?php $to='gsankar5181@gmail.com'; $message='hai'; $sen=mail($to, 'My Subject', $message); if($sen) echo "yes"; else echo "no"; ?> 14-04-04 14:35:44 : Message is missing sender's address 14-04-04 14:39:37 : Message is missing sender's address 14-04-04 14:39:39 : Message is missing sender's address

Web Development php
Member Avatar for titos97
0
669
Member Avatar for danale

Hello, I have a complex form and a 'Print' button which should print only the contents of a specific DIV. I am using the following function (i found on another forum): [CODE] function PrintContent() { var DocumentContainer = document.getElementById('divName'); var WindowObject = window.open('', 'PrintWindow', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes'); WindowObject.document.writeln(DocumentContainer.innerHTML); WindowObject.document.close(); WindowObject.focus(); WindowObject.print(); WindowObject.close(); …

Web Development html-css javascript
Member Avatar for tnjnorbert
0
10K
Member Avatar for carlosvz21

Hi guys, sorry if i'm posting this and it is already answered in another discussion. I am creating a website for a sales process using phpstorm, I'm new with all this so that is why I'm so confused. Actually i have this form: <form name="frm" id="frm" action="<?PHP echo $_SERVER["PHP_SELF"]; ?>" …

Web Development php
Member Avatar for Fernando_4
0
232
Member Avatar for sanjay@srvmedia
Member Avatar for diafol
0
921
Member Avatar for fiey.hamzah

can anyone help to check my coding? what i need is to enter the groupcode and when i click search,it will retrieve all the modules. but only one module that appear instead of all. <?php $server="localhost"; $username="root"; $password=""; $connect_mysql=mysql_connect($server,$username,$password) or die ("Connection Failed!"); $mysql_db=mysql_select_db("reportdatabase",$connect_mysql) or die ("Could not Connect to …

Web Development mysql php seo
Member Avatar for Szabi Zsoldos
0
290
Member Avatar for haymen.roth.3

i am picking list of names from database, according to scenario each name exists many times in database, That's ok. Now i have filled a DROPDOWNLIST with those names but in drop down list each name appears several times but i want to display each name 1 time in DROPDOWN. …

Web Development asp.net software-architecture
Member Avatar for sushmaja.arumalla.9
0
187
Member Avatar for sushmaja.arumalla.9

The page previously fires the event from the server side.When the new design is applied to the site the server side events are not firing.What may be the problem.Got struck from 2 days.Please help me in solving the issue. Thanks In Advance, Sushmaja Arumalla

Web Development asp.net client-server
Member Avatar for sushmaja.arumalla.9
0
2K
Member Avatar for oskarkxyz

Hello. I am user of CPAgrip and they gave us postback so I wanted to use it. Everytime when my server gets postback I want my user who is reponsible for it get points. Let's start. Variables sent in postback: http://scr.hu/1htz/yo1co **Example from affilate network:** <?php if($_POST['password'] != 'secretpassword'){ echo …

Web Development php
0
209
Member Avatar for napninjanx

Using the CRTL to save the page to the desktop which brings up these files. Snapshot: ![583582bb93590f982474df4660034cf8](/attachments/small/3/583582bb93590f982474df4660034cf8.png "align-left")

Web Development
Member Avatar for jeykeu
0
106
Member Avatar for Nilesh_2

Hello there, I want to introduce message system in my website. I've created table fields as follows: id(int), receiver_id, msg_id, msg_sub, msg_desc, msg_time Below is my html form in which registered users will be displayed in dropdown list: <form class="form-horizontal" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <legend>Send Message</legend> Recipient:<select name="receiver_id" data-rel="chosen" …

Web Development php
Member Avatar for nadiam
0
450
Member Avatar for mattyd

My email vaildation is working correctly now. But, I would like to alter the message color from black to red by styling it somehow. I have attempted such things as: { message = "Please, enter a valid email"; message.style.color == 'red'; writeMessage(message); return false; } The insertion being: message.style.color == …

Web Development javascript
Member Avatar for JorgeM
0
101
Member Avatar for Anubhav_1

Hello, i just coded for login script now i want to add "sha1" to my code due to security reason but it's showing an invalid login error i don't know the reason but when i use this withouht "sha1" it's working fine but i want to secure password into database …

Member Avatar for Bob Hensley
0
227
Member Avatar for chrisschristou

hello my lovely friends of daniweb commuty. i have i jquery code of login popup basicaly it work when we click on a link to call it. but i want to excute it if a field is empty for it, i have add a code before `$('a.login-window').click(function()` and that code …

Web Development javascript javascript-jquery
Member Avatar for chrisschristou
0
315
Member Avatar for Nollyvenon

Please can someone help me optmize this query, it is slow and brings the same data for the debtage column SELECT customer.custid,customer.compname,customer.phone,customer.depot,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate, STR_TO_DATE(transactions.timestamp,'%Y-%m-%d') AS debtage, format( customer.balance, 2) AS balance, customer.balance AS balance1 FROM customer,mastorders,acctofficer,transactions WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff AND customer.depot='$depot' GROUP by customer.id ASC. …

Web Development mysql php sql
Member Avatar for Nollyvenon
0
215
Member Avatar for mattyd

Hello. I am finally figuring out some basic validation. My main interest at this point is validating email. The script I got online contains the following, but does not check for "com", etc: if (email.indexOf("@") == -1 || email.indexOf(".") == -1) This works but does **not** check for "com". It …

Web Development email javascript
Member Avatar for JorgeM
0
196
Member Avatar for Pravesh_1

I want to change content of a DIV which is in the TD (Table Tag); every div has unique ID viz. picked_cJN_031599, picked_cJN_031596; every div is prefixed with picked_cJN_ *and a unique ID came from database; I want to change the value of any div just by passing ID and …

Web Development javascript
Member Avatar for temp11
0
156
Member Avatar for websponge

I want to have a supplier table, with ID, NAME, CONTACT, PHONE, etc, In my main table, a record can have more than one of these suppliers, what is the best way to select multiple rows from the supplier table if they relate to a record in the main table? …

Web Development php
Member Avatar for websponge
0
224
Member Avatar for Maideen

Hi I am new, Pls help me the following issue. When click the update button, ID should be to another page to process the update function. Below is my entire code index.php <?php include_once '../../inc/config.inc.php'; $sql="SELECT * FROM demo order by id"; try { $result = mysqli_query($con,$sql); include 'view.html.php'; } …

Web Development first-post php sql
Member Avatar for Maideen
0
228
Member Avatar for hiiiiii@

hi im doing a project on online table reseration. im using a table "reservation" to store the table details of reserved table +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+-----+---------+----------------+ | reserve_id | int(15) | NO | PRI | NULL | auto_increment | …

Web Development php
Member Avatar for hiiiiii@
0
211
Member Avatar for Fernando_4

With the following bit of code I'm trying to get the key's of each sub-array that I will need at this part of the script. It's working so I'm not too worried about this, I just think there should be a pre-built function to do the same thing. foreach($myArray['ico'] as …

Web Development php
Member Avatar for Fernando_4
0
267
Member Avatar for sigitas.darguzas

Hi. all i have small problem Not verified =0 verified=1 $balance = $match_value['balance']; $verified = $match_value['verified']; <tr><td> <b> Balance: </b> </td> <td> if ($verified == 1) { $verified = "$balance"; } else { <a class="btn btn-danger" href="verified.php" > not verified </a> } </td></tr>

Web Development php
Member Avatar for sigitas.darguzas
0
133
Member Avatar for sushmaja.arumalla.9

I have to generate the mail to their mail address specified at the time of the registration to specify the username and password. So i tried the following code to send email but the email is not generated showing me either "Failure sending mail" or "Connection timed out". So please …

Web Development asp.net client-server email
Member Avatar for Sulaiman_1
0
362
Member Avatar for Ho$$@M_Sh2awa

I made an online application to store employees information in MS SQL,I used Disconnected model and I made my class for "DataSet configuration" and call method in it in The "Form_Load" event. This is the class public static string constr = ConfigurationManager.ConnectionStrings["cnn1"].ConnectionString; public static DataSet GetDataSet(string stored_name, string table_name, params …

Web Development asp asp.net dataset mssql
Member Avatar for Sulaiman_1
0
343
Member Avatar for Kewne

I have a code in php that is being echoed in html: $tblAccounts .= "<td width=\"100\"><input title=\"$objRow->AccountCode\" name=\"chkAcctField[$objRow->AccountCode]\" id=\"chkAcctField[$objRow->Description]\" value=\"chkAcctField[$objRow->AccountCode]\" type=\"checkbox\" $strIsChecked>" . ucwords($objRow->Description) . "</td>"; now may problem is this... I don't know how will I get the value of the checkboxes clicked by the user.... when the names …

Web Development javascript
Member Avatar for diafol
0
239
Member Avatar for ravi142

Need Help for. I have one texarea which i have write keyword then press **Enter key** result with <BR> generate. $("#chat_box").keydown(function (e){ if(e.keyCode == 13){ var textval = $("#chat_box").val(); alert(textval+' you pressed enter ^_^'); } }); ENTER : Hello, test OUTPUT: Hello, test (That not correct) Enter Key works perfectly. …

Web Development javascript
Member Avatar for diafol
0
322
Member Avatar for vanitha.A

Store a image in database. and fetch the image when the user login

Web Development image php
Member Avatar for urtrivedi
0
151
Member Avatar for hirenpatel53

Hi all i need to develop the page where i can provide link of any youtube video page and on cliking of grab button i need to extract the username who is commented,view,or liked video initialy i was planed to get html code of provided link and make search into …

Web Development asp.net streaming-service
0
155
Member Avatar for MarcLippi

Hi all I am new to designing web pages and I want to try create a page that will allow me to upload pictures with a caption and then display them on a web page. I want to try create a page to display family picture etc, but to just …

Web Development display file-system image
Member Avatar for rimfirelive
0
245
Member Avatar for Siberian

I know jQuery is recommended to write to the DOM, I want to understand how to write to the DOM in Javascript, considering how many programs use Javascript as there language, never know what I want to or need to develope for (*maybe a smart phone app in the future*) …

Web Development javascript javascript-jquery
Member Avatar for Siberian
0
261
Member Avatar for V3N0M

![bee72e14cb1745f8ca61a8fcedb85b0a](/attachments/large/4/bee72e14cb1745f8ca61a8fcedb85b0a.jpg "bee72e14cb1745f8ca61a8fcedb85b0a") Hi guys I am trying to build a video page with the wallpaper. Consider the HTML code below: <html> <head><title>MCFC.com/Videos</title></head> <body style="background-color:#000002;font-size:16pt;font-family:sans-serif" style="width:100%"> <!--Remove the border later after inalizing--> <table style="width:100%" border="0" align="middle"> <tr> <img src="/home/kr4t0s/Documents/Website Images/Manchester-City-Logo-Wallpaper-Background2.png" align="middle" width="100%"/> </tr> </table> <!--Beginning of the first table for menu--> …

Web Development
0
216
Member Avatar for suavedesign

I have an element (a nav bar) on my website that has fixed positioning. How can I make it be fixed only up to a certain point? The url: http://www.peresidences.com/index.php I want the nav bar to be fixed positioning only until it reaches under the picture, and then it should …

Web Development javascript
Member Avatar for suavedesign
0
818
Member Avatar for Szabi Zsoldos

Raffle function to generate unique numbers for each player, related to the same table with a recursive aproach. I had to do a simple raffle system for a contest that I was working on and tried many things and the most simple and the most effective one to generate unique …

Web Development mysql php
Member Avatar for diafol
0
902
Member Avatar for baig772

**Problem** I need an jax pagination in YII, The problems are * its not showing the required results for the first time. ie. it is showing the complete result * When clicked on more, it again shows the complete result below that section as it is **What Needed** * i …

0
160
Member Avatar for Sumith Asanka

Hi Guys I have a asp.net 4.0 application with login screen http://localhost/WST/Forms/Frmlogin.aspx i store my login id in the class file variable inside my application i want to avoid login to the appliction without going throug login screen by putting its url directly like this http://localhost/WST/Forms/TeacherList.aspx this links works if …

Web Development
Member Avatar for JorgeM
0
164
Member Avatar for roy--

Hello, I have looked everywhere on the web for a solution to this problem. I am trying to store arabic characters into mysql via an html form. i have set the meta charset to utf-8 and have tried mysql_query('set names 'utf=8'") but still i get garbled characters in my table: …

Web Development mysql php
Member Avatar for MisterArabic
0
3K
Member Avatar for ultmt.punisher

## Theme Options Settings ## I have problem with my theme options settings saving. My settings is to saving to permanently , its just only save when you stay on the theme options page after saving the settings. But when I go to any other page or reload the current …

Web Development php wordpress
Member Avatar for Ajay Gokhale
0
822
Member Avatar for Viped

Hi all, I need to do my own version of phpMyAdmin for my php class. I encountered problem when trying modify existing data on database. I don't know what would be best way to modify whole table's data when I don't know exact amount of rows or columns. At this …

Web Development mysql php
Member Avatar for diafol
0
326
Member Avatar for Harry_5

Hi there, I have a problam with my code, and i cant fix it, please help. The problam is with the mysql_num_rows on line 4 ; Here is the code: $sql_query = mysql_query("SELECT * FROM upload WHERE MATCH(username,text) AGAINST('$search_term')"); //additional check. Insurance method to re-search the database again in case …

Web Development mysql php
Member Avatar for diafol
0
1K

The End.