17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Lefian

Hello all! I currently have a drop down which consists of a list of names generated from the database. My problem is that when selecting a name from the dropdown I would like to insert the name and the corresponding ID into the database table. I am not sure if …

Web Development html-css php
Member Avatar for Biiim
0
6K
Member Avatar for Que336

I've had a nightmare over the past couple of weeks wondering why my code wasn't working in ie. I've finally realised that it was because I was using textcontent which works fine in firefox. I tried using innertext and it worked fine in ie but stopped working with firefox. Chrome …

Web Development html-css javascript
Member Avatar for Troy III
0
1K
Member Avatar for Cornwell

I've searched Google and although there are several hits in this general area, none matches my issue. The problem is on [URL="http://stmarytheboltons.org.uk/hall/index.html"]this page of a church web site[/URL] where they are hiring out the hall. It's supposed to cycle through four pictures and that works in Firefox and Chrome and …

Web Development html-css javascript
Member Avatar for Cornwell
0
1K
Member Avatar for trektrak

I need help on javascript.... ok this is what I got from w3 school... [CODE]<html> <body> <script type="text/javascript"> var d = new Date(); var time = d.getHours(); if (time < ) { document.write("<b>Good morning</b>"); } </script> <p>This example demonstrates the If statement.</p> <p>If the time on your browser is less …

Web Development javascript
Member Avatar for Troy III
0
212
Member Avatar for showman13

Good Sunday Afternoon... Is there anybody here that knows of a piece of code that would be available to just plug into a script that would allow the selection of a date range for a reporting feature? Just something that would say From this date To this date... And possibly …

Web Development php
Member Avatar for showman13
0
289
Member Avatar for drelix01

I am having problem on this code of mine, I made a short javascript pop-up notice everytime a user logs a incorrect password or a correct pass, and when I typed the correct username and password, it is still invalid but when i delete these codes: [CODE]session_register('myusername'); session_register('mypassword'); $_SESSION['myusername']==$myusername;[/CODE] it …

Web Development javascript-jquery php session
Member Avatar for rajeevphp2011
0
150
Member Avatar for sjparida

Hi there, friends I have ajmatrix dna(multi level marketing) script written in php and MySQL, I can't able to install it on wampserver or xammp in windows system, can someone please help me for setting the correct configuration to run the script on localhost.and also can it be possible to …

Web Development php
Member Avatar for pritaeas
0
81
Member Avatar for Ana D.

Hi, I'm new using AJAX and I'm developing a page where I need to populate a CheckBoxList based on what the user types (it's like an AutoSuggest). I don't know how to bind the checkboxlist from the database using AJAX. My code in VB.NET is something like this: [CODE]Dim DatabaseConnection …

Web Development javascript vb.net
Member Avatar for chinnudhilip
0
540
Member Avatar for HasNor

Hi all.. how can i hide the status bar url (the secret id) in IE 9... i've use this code but it still show the id on the status bar in IE 9, it's ok if i use IE 8..please help me.. [CODE] <a href="list_upload.php?reqid=<?php echo $row['reqid']; ?>" title="View" onMouseOver="window.status='list_upload.php'; …

Web Development php
Member Avatar for HasNor
0
2K
Member Avatar for gopi17

okay....i can't delete the row... the screen is juz blank...been trying to figure this out.... [CODE] $invoice_no=$_SESSION['invoice_no']; $dbh1=mysql_connect("$host", "$username", "$password")or die("cannot connect"); $dbh2=mysql_connect("$host", "$username", "$password",true)or die("cannot connect"); mysql_select_db("$db_name",$dbh1)or die(mysql_error()); mysql_select_db("$db_name1",$dbh2)or die(mysql_error()); $sql="SELECT * FROM $tbl_name WHERE invoice_no = '$invoice_no'"; //the sql query $result = mysql_query($sql,$dbh1); $row = mysql_fetch_array($result); $container_no=$row['container_no']; $document_no=$row['document_no']; …

Web Development php
Member Avatar for gopi17
0
98
Member Avatar for singularity~

I'm trying to get a form to work with php. When I click submit a submit button nothing happens. [CODE] <?php if(isset($_POST['imageSelectButton'])) { echo "Test: "; } ?> <form id="setImages" action="index.php" method="POST" enctype="multipart/form-data"> <?php $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('../Home')); $images = new RegexIterator($files, '/\.(?:jpg|png|gif)$/i'); foreach($images as $file) { echo "<div …

Web Development html-css php
Member Avatar for veedeoo
0
877
Member Avatar for paulaandrea

Hi, I am new in programing, I want to save images from google-images, I can use filter for only use the free ones. I use a google API, I have the URL and I want to pass to php, but I dont know how to pass from java-script to php. …

Web Development image javascript php seo
Member Avatar for paulaandrea
0
400
Member Avatar for elbeato

For some reason this ajax call sends data to the php file fine, and the MYSQL call works, but the php does not return anything to the ajax. I'm not sure if it's an issue with the ajax call or the php (I suspect the former). Could it have something …

Web Development javascript javascript-jquery
Member Avatar for elbeato
0
175
Member Avatar for navp

Hey guys, so I am trying to do an animation rollover image for this gallery and I did make one of the design but the image is absolute and the positioning changes when I change the screen size. Is there a way I can fix that? I know about enclosing …

Member Avatar for elbeato
0
203
Member Avatar for Verean

I've tried everything that I know of, to make the fields required. The form is quite simple and small. Here is the visual form code: [CODE]<form action="insert.php" method="post"> <table cellpadding="2" border="0"> <tr> <td>Server Name:</td> <td>IP:</td> </tr> <tr> <td> <input name="Name" type="text" /> </td> <td> <input name="IP" type="text" /> </td> </tr> …

Web Development php
Member Avatar for Verean
0
196
Member Avatar for dschuett

I am pulling more results from a database using getJSON/jQuery. The link works fine in Chrome, but in IE 9 I get the following error: "SCRIPT1002: Syntax error index2.php, line 2 character 1" which points to: [CODE]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">[/CODE] However even if I remove the DOCTYPE it just complains …

Web Development javascript javascript-jquery
Member Avatar for dschuett
-1
219
Member Avatar for mlhazan

Hello Experts, I am getting unwanted result.Please help! Here is the function: [CODE] function ArrayResults($result){ while ($row = mysql_fetch_assoc($result)){ //echo $row["first_name"]; //tested :works!! $this->arr2[] = $row; } return $this->arr2; }[/CODE] I called the function and used the print_r to see how is the array: [CODE] $mysql->ArrayResults($mysql->ExecuteSQL("SELECT * FROM Employee")); print_r($mysql …

Web Development php
Member Avatar for mlhazan
0
94
Member Avatar for P.manidas

Dear Sir/Madam, I have created some ASP pages in my computer and stored those pages into the web site content directory (in my case C:\PanWeb) and IIS's Virtual Directory alias is "abcweb" created with the IIS V5.1 However, i can browse those pages in my computer by putting the 127.0.0.1/abcweb/ …

Web Development asp microsoft-access xml
Member Avatar for P.manidas
0
360
Member Avatar for simplypixie

I hope the title means something, I don't really know how to explain what I am trying to do in a few words. I think better with an example. I have a click event to display an enquiry form on a contact page: [CODE]$("#enquiry-form").hide(); $('.enquiry-form').click(function() { $(this).hide(); $('#enquiry-form').fadeIn( 'slow', function() …

Web Development javascript
Member Avatar for simplypixie
0
919
Member Avatar for mmnewbee

I need help to solve a problem that has been troubling me for some time. I have a php search page that im having trouble paginating. The problem is that only the first page outputs anything the rest of the pages are blank. And I have already gone through all …

Web Development php
Member Avatar for mmnewbee
0
123
Member Avatar for moroccanplaya

[CODE] $url = $_GET['url']; echo $url; [/CODE] i dont know why i get a Undefined index error

Web Development php
Member Avatar for moroccanplaya
0
262
Member Avatar for heshanm

I have following errors in below coding. Undefined variables: fname,focu,foad,ftp,fmf,mname,mocu,moad,mtp,mmf,gname,gocu,goadd,gtp,gmf in C:\wamp\www\Student registration\manage studnt parent details\manageStudentRegistrationParentDetailsForm.php Code <?php $query="SELECT state,name,occupation,office_address,office_telephone,mobile_number FROM parent_info where admission_no='$admission_no'"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $first=$row['state']; if($first=='father'){ $fname=$row['name']; $focu=$row['occupation']; $foadd=$row['office_address']; $ftp=$row['office_telephone']; $fmf=$row['mobile_number']; } if($first=='mother'){ $mname=$row['name']; $mocu=$row['occupation']; $moadd=$row['office_address']; $mtp=$row['office_telephone']; $mmf=$row['mobile_number']; } if($first=='guardians'){ $gname=$row['name']; $gocu=$row['occupation']; $goadd=$row['office_address']; $gtp=$row['office_telephone']; $gmf=$row['mobile_number']; } } ?> …

Web Development php
Member Avatar for heshanm
0
114
Member Avatar for subrata_ushasi

Hi all, I am trying to install a project management software "Mantis" but while installing it is giving the error [B]"BAD Does administrative user have access to the database? ( Lost connection to MySQL server at 'reading initial communication packet', system error: 111 )"[/B] urgent ,any body else thanks in …

Web Development php
Member Avatar for subrata_ushasi
0
1K
Member Avatar for mlhazan

Dear users, I am new to PHP5. My LAMP is working just fine.I made small database connect scripts and they just worked as it should.Then I tried the following code and run the mysql.php but showing me following error: [CODE]Could not run query: Access denied for user 'www-data'@'localhost' (using password: …

Web Development mysql php
Member Avatar for emclondon
0
173
Member Avatar for jdgieschen

[B]I'm trying to paginate my search results. The first page comes up just fine, but when I click to go to the next page, this happens:[/B] Notice: Undefined index: d1 in D:\Website Design Environment\EasyPHP-5.3.8.1\www\jquery_ui\process.php on line 2 Notice: Undefined index: d2 in D:\Website Design Environment\EasyPHP-5.3.8.1\www\jquery_ui\process.php on line 3 Notice: Undefined …

Web Development php seo ui-ux
Member Avatar for jdgieschen
0
911
Member Avatar for bilal_fazlani

[ICODE]listbx.Items.Add(New _ ListItem(BorderStyle.None.ToString(), BorderStyle.None)) listbx.Items.Add(New _ ListItem(BorderStyle.Double.ToString(), BorderStyle.Double)) listbx.Items.Add(New _ ListItem(BorderStyle.Solid.ToString(), BorderStyle.Solid))[/ICODE] can anyone please tell me how to do this in asp code.. in vb.net it adds the borderstyle as value... when i try that in asp.net it just adds string value. [ICODE]<asp:ListItem Text=Solid Value=Solid></asp:ListItem>[/ICODE] do I have to …

Web Development asp asp.net vb.net
0
113
Member Avatar for gopi17

helloo....guys need a favour from you....okay this is the scenario i have a attribute called document_no, now i would like to append running numbers behind it to fill in a new attribute eg: document_no = 123222 serial_no = 12322201 12322202 12322203 now the number starts from 01 and go on …

Web Development php
Member Avatar for gopi17
0
103
Member Avatar for stanley87

Hi,guys,i cant solve this insert query into ,this is my query,i want it to insert it to another new table.How to solve this query?thank Q very for the help...cheers [CODE] SELECT adp.adsPageId,adp.adsSpaceId, DATE_FORMAT(adp.dayClick, '%Y-%m-%d') AS dateReport, (SELECT COUNT(*) FROM ads_display att WHERE att.adsSpaceId = adp.adsSpaceId AND att.adsPageId = adp.adsPageId AND …

Web Development mysql php
Member Avatar for stanley87
0
134
Member Avatar for bibiki

Hey there, the following is what I get when I perform a typical query on my database: +--------+----+---+---+----------+ | length | id | l | p | username | +--------+----+---+---+----------+ | 50 | 12 | 1 | 1 | bibiki | | 50 | 12 | 1 | 2 | …

Web Development php
Member Avatar for bibiki
0
166
Member Avatar for singularity~

I'm getting an error Notice: Undefined variable: temp. Event though my variable temp is declared; [CODE] if(isset($_POST['saveHomePageDescription'])) $temp = 'hello'; writef("./homePageDescription.txt",$temp); [/CODE]

Web Development html-css php
Member Avatar for diafol
0
223
Member Avatar for SusanHAllen

I am finding an extraneous  in a very simple cfm page. It does have a cfinclude of straight text named as a .cfm template. This character shows up with or without the cfinclude -- I add the cfinclude content into the main page and the character is still there. …

Member Avatar for arrgh
0
161
Member Avatar for cr7489

i have a system that outputs a film review, when it is outputted i want the keywords that appear in it from 2 tables - negative and positive to be in a different colour any idea to do this ? The code is below [CODE] <?php // Connect to database …

Web Development php
Member Avatar for cr7489
0
181
Member Avatar for sjparida

I am developing a website for personal use and I want that when someone fill up the contact form on my website and press send button , all the data from the form should go to my specified email address and as well as on my phone as a text …

Web Development email php
Member Avatar for chrishea
0
132
Member Avatar for subrata_ushasi

Hi, I am trying to install Magento in Win XP but not been installed. I tried so many times but that was erroneous. If any one can suggest the steps... thanks in advance. Subrata

Web Development ecommerce php
Member Avatar for veedeoo
0
382
Member Avatar for heshanm

I have a login form and i want to enter username & password to log into the system. When loading the page (index.php) there was an error displayed like this. >Notice: Undefined index: msg in C:\wamp\www\Home page\new student registration\index.php on line 13 index.php <form id="form1" name="form1" method="post" action="adminloginvalidate.php"> <?php $message=$_POST["msg"]; …

Web Development php
Member Avatar for heshanm
0
233
Member Avatar for mangel.murti

hi , i want to delete records form these tablesw i have pk fk relationshilp with addcampid on all tables. master table is add_campaign... i am using CI. mytable are add_campaign cac, add_subscriber cas calender cc, calender_master ccm, task cc, task_master ctm, triggers_actions cta, triggers_email cte, jqcalendar jq, manage_action cma …

Web Development php
Member Avatar for cereal
0
120
Member Avatar for veledrom

I've been looking for a answer for this for some time but no luck. Does anyone know how do I check if the mysql db is full? I'll trigger an email in PHP to myself if the db is full cos I cannot check it constantly manually. Thanks

Web Development mysql php
Member Avatar for veledrom
0
138
Member Avatar for Cyre

Hi again! How can i delete records from an MSACCESS database using php?? pls help.

Web Development php
Member Avatar for Cyre
0
97
Member Avatar for dtidmas1

Hi everyone, The following code is returning the error message "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/numyspace.co.uk/web_users/home/~unn_u011067/public_html/displayclassbooks.php on line 24" and I'm not sure why? Basically I have a list of classifications (for a book catalogue) and all the options work except for DISPLAY …

Web Development mysql php
Member Avatar for dtidmas1
0
214
Member Avatar for rotemorb

Hello Guys. my problem is this: I want to use this Jquery: [CODE] <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"> $(document).ready(function () { $("#tblGames tr:even").addClass("alt"); $("#tblGames div:odd").addClass("alt"); }); </script> [/CODE] in order to alternate coloring a table (zebra style) this is the table definition: [CODE] <table id="tblGames" runat="server" border="1" style="border-style: …

Web Development asp.net javascript-jquery
Member Avatar for pritaeas
0
483
Member Avatar for lyrico

Hi to all, Can anyone help me to show the code how to save multiple data into mysql via PHP? Thanks in advance. Here's some code [code] <?php echo "<form action='savetoanothertable.php' method='post'>"; $query = mysql_query("SELECT * FROM tbl_student"); while($result = mysql_fetch_array($query) { echo "<input type='text' name='studname' value='$result[studentname]'>"; echo "<input type='text' …

Web Development mysql php
Member Avatar for lyrico
0
248
Member Avatar for bavenbabu

I dont know how to write to an XML FILE in php.Can anyone help me to let me know by giving a simple example in xml.Any help would be appreciated..An example in xml is shown below <?xml version="1.0" encoding="UTF-8"?> <table> <order> <id>1</id> <name>john</name> <age>23</age> </order> <order> <id>2</id> <name>patrick</name> <age>22</age> </order> …

Web Development php xml
Member Avatar for bavenbabu
0
117
Member Avatar for jamesaero

Hi there! I'm newbie in part of PHP. Here is my code. [CODE] <?php include("config.php"); $sql = "SELECT * FROM customers ORDER BY CompanyName ASC"; $result = mysql_query($sql); ?> <form name="form" method="post" action="join.php"> <select name="myOptions" onchange="document.form.price.value=this.value"> <option value>----Choose Company Name----</option> <?php while ($rows=mysql_fetch_array($result)) { ?> <option value="<?php echo $rows['Price']?>"><?php echo …

Web Development php
Member Avatar for jamesaero
0
190
Member Avatar for HasNor

Hi all..i have a problem that i want to upload file less than 5MB..but it doesn't work for file size more than 3MB..what happen huh? Please help me.. [CODE] <?php include "connection/db_connect.php"; include "template.php"; $reqid=$_GET['reqid']; if (($_FILES["file"]["type"]) && ($_FILES["file"]["size"] < 5000000000000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: …

Web Development file-system php
Member Avatar for HasNor
0
172
Member Avatar for danielsikes

Hi, I am in need of parsing some html code. Here is an example of what I am trying to do, but not quite sure how to do it. [CODE] <tbody><tr> <td>1.</td> <td><a href="something.php?y=US&amp;id=197003">Some Name Here</a></td> <td>City, STATE</td> <td class="noWrap"></td> <td class="noWrap">123-456-7890</td></tr><tr class="altRow"> <td>2.</td> <td><a href="something.php?y=US&amp;id=113762">Another Name</a></td> <td>City, STATE</td> <td …

Web Development html-amp html-css php
Member Avatar for danielsikes
0
136
Member Avatar for showman13

Good Morning All, OK, so here is the deal... I have a membership site that at some point in time (very soon) I will have an event take place that will require me to produce printed reports... I have the scripts written to gather the information from the DB, and …

Web Development php printer
Member Avatar for showman13
0
162
Member Avatar for zacharysr

Hello. I allow members to post statuses on my website and i want to check links. And if that text includes "www" i want to make that a link. How would i check this everytime i pull the status from the database to show it on the page

Web Development php seo
Member Avatar for zacharysr
0
198
Member Avatar for naheedkassam

hi, I have a web form that consists of several Radcombobox. The first combobox gets its list from a database. After selecting a value from this combobox i would like it to update the text shown on the second Radcombobox. The autopostback is always resetting the value of the second …

Web Development asp.net
Member Avatar for naheedkassam
0
185
Member Avatar for christos312

Hello, I have a question, I am using the following jQuery code to get some data from a database [CODE] $('#CountryA1').keyup(function(){ var country = $('#CountryA1').val(); $.get('test.php',{name: country},function(data){ $('#test').html(data); }) });[/CODE] Now, the <p> HTML tag with id test shows me these data [CODE][{"id":"4","Description":"Bosnia-Hercegovina"},{"id":"9","Description":"Cyprus"},{"id":"10","Description":"Czech Republic"},{"id":"17","Description":"France"},{"id":"20","Description":"Greece"},{"id":"21","Description":"Croatia"},{"id":"25","Description":"Iceland"},{"id":"28","Description":"Liechtenstein"},{"id":"32","Description":"Monaco"},{"id":"34","Description":"Macedonia"},{"id":"49","Description":"Vatican City State"}][/CODE] But using Chrome Inspect …

Web Development html-css javascript json
Member Avatar for christos312
0
189
Member Avatar for bavenbabu

I am new in creating XML file using php..I wrote a code but the code doesnot show xml file on running it..Can anybody figure out what the problem is the code is as follows <?php $dom = new DOMDocument('1.0', 'UTF-8'); $root=$dom->createElement("xml"); $dom->appendChild($root); $title=$dom->createElement("title"); $root->appendChild($title); $path=$dom->createElement("path"); $title->appendChild($path); $title=$dom->createTextNode("pepperoni"); $path->appendChild($title); echo $dom->saveXML(); …

Web Development php xml
Member Avatar for blocblue
0
245

The End.