39,323 Topics

Member Avatar for
Member Avatar for bavenbabu

I have a php/html form where certain inputs will be given in the textboxes. Once the submit button is pressed i want to save these data in a xml file in their respective fields. Also i wish to retrieve this data in furthere pages.

Member Avatar for pritaeas
0
52
Member Avatar for Motifaithed

Hi Guys, What is the way to compare two columns from different table?Say I want to compare column IDNumber from table 1 to column IDNumber to table 2, after that I want to delete Identical IdNumber and show the remaining unique IDNumber, any idea how to start it?

Member Avatar for Motifaithed
0
71
Member Avatar for jacob21

Hi, I am trying to add a basic text editor in my textarea.after goggling i found no of editors like ckeditor but i need a simple one. Please suggest..

Member Avatar for javedsai
0
58
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> …

Member Avatar for bavenbabu
0
114
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 …

Member Avatar for jamesaero
0
185
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: …

Member Avatar for HasNor
0
169
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 …

Member Avatar for danielsikes
0
134
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 …

Member Avatar for showman13
0
159
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

Member Avatar for zacharysr
0
195
Member Avatar for dushtu.bor

Hi, here is my codes, its doing show binary tree. But the problem is, maximum ids show easily, but some ids are not showing anything, give a blank page, totally blank, without any error. How to check where is wrong? First parent id not showing anything, if i run it …

0
105
Member Avatar for me!

I wanna make the frontpage of a JOOMLA website look like a blog with the image to the left and the intro text to the right with a readmore link on the bottom. So far I got it, however the code below grabs the first image of the article and …

Member Avatar for me!
0
503
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(); …

Member Avatar for blocblue
0
238
Member Avatar for cutedhrumi

i want to display report when i click on the name.so which kind of code is required?

Member Avatar for weekendrockstar
0
45
Member Avatar for sellelim05
Member Avatar for ArtphotoasiA

I'm going to add a small shopping cart to sell merchandise to an existent WP website. Can you suggest to me the best plugin for a shopping cart in word press?

Member Avatar for ArtphotoasiA
0
122
Member Avatar for kutchbhi

Hi, I am trying to implement a categories/subcategories feature for navigation. For this I am using the The adjacency model as described [url=http://sqllessons.com/categories.html]Here[/url] Description(copy pasta): This is the categories table: [CODE]create table categories ( id integer not null primary key , name varchar(37) not null , parentid integer null , …

Member Avatar for kutchbhi
0
348
Member Avatar for morthea

an IF and ELSE function cannot function if it has too many conditions or its just my codes are wrong?? cause the ELSE didnt show up. [CODE]if ( (isset($_POST['submit'])) && ( (isset($_POST['pica10'])) || (isset($_POST['pica14'])) || (isset($_POST['pica18'])) || (isset($_POST['pgata10'])) || (isset($_POST['pgata14'])) || (isset($_POST['pgata18'])) || (isset($_POST['mmec10'])) || (isset($_POST['mmec14'])) || (isset($_POST['mmec18'])) || (isset($_POST['mpae10'])) …

Member Avatar for morthea
0
113
Member Avatar for ivanhuk

I've an HTML table that I iterate through and grab an id column for every row that is checked. Jquery puts these values into an array that is then supposed to be passed to php post through an ajax function. The array is fine through HTTP post and Response (using …

0
75
Member Avatar for me!

So I'm writing this website and i need the following line of code [CODE=php] $b = http://www.mydomain.com; [/CODE] but the problem is that everything after the // php makes it a comment, so my question is how can I work around this small issue?

Member Avatar for me!
0
101
Member Avatar for asifkamalzahid
Member Avatar for mortyBox

Hi all... I'm trying to create a simple HTML table generated by php from mySQL table. This table simply displays the First Name and Last Name of all Employees in the database table. The trick is, I would also like to generate an HTML FORM, so beside each first and …

Member Avatar for SQLpower
0
9K
Member Avatar for garyjuano

anyone know whats the problem/reason with this codes? 1. calculation with fix time <?php date_default_timezone_set('UTC'); $deff = strtotime("20:00:00")-strtotime("19:00:00"); echo date('h:i', $deff ); OUTPUT = 01:00 //above was correct ?> 2.output should be in munite, but the output is 12:50 what's wrong with this code? date_default_timezone_set('UTC'); $deff = strtotime("20:00:00")-strtotime("19:10:00"); echo date('h:i', …

Member Avatar for edwinhermann
0
137
Member Avatar for zobadof

Hello, I recieve this error: Fatal error: Call to undefined method XenForo_Helper_DevelopmentXml::processSimpleXmlCdata() in /home/downupsi/public_html/library/EWRporta/Model/Templates.php on line 58 With this code: [CODE]<?php class EWRporta_Model_Templates extends XenForo_Model { public function getTemplatesByBlock($blockId, $styleId = 0); { $title = 'EWRblock_'.$blockId; return $this->fetchAllKeyed(' SELECT * FROM xf_template WHERE title LIKE ? AND style_id = ? …

Member Avatar for hari.sarvothama
0
108
Member Avatar for Jeffwizzy

Hi guys Can someone please point me in the right direct. cant seem to get round the error on the `$r = mysql_query()` line. <?php require_once ('../mysql.php'); if(isset($_GET['delete'])) { $id = (int)$_GET['delete']; $r = mysql_query ($dbc,"DELETE FROM customer WHERE id = {$id}"); if(mysql_affected_rows($dbc) ==1){ $message = '<p>Record deleted succefully</p>'; } …

Member Avatar for Jeffwizzy
0
287
Member Avatar for birkenfeldo

Hi, its problem in my site. Picture in news is not working and i can't solve problem. Please help! Image - [URL="http://www.bildites.lv/images/16gsnx5prru092k60br3.jpg"]http://www.bildites.lv/images/16gsnx5prru092k60br3.jpg[/URL] [CODE]<?php $id = (int)get_get( 'id' ); $news = $db->query( "SELECT * FROM news WHERE id = $id" ); $news_id = $db->fetch( $news ); if( $news_id['id'] ) { $res …

Member Avatar for hag++
0
130
Member Avatar for Persi

how to get 12 hour time from time datatype in mysql and php? can anyone help me???

Member Avatar for Persi
0
87
Member Avatar for OldDeveloper01

I have followed some tutorials to create a registration form with some javascript. I have table to register new members to the website. then a parse_register to handle the php and then custom_js for the javscript. Well what is happening at the moment is that having filled in the registration …

Member Avatar for OldDeveloper01
0
430
Member Avatar for h2so4_2003

Hi, I want blank textbox value to be inserted into the database. For that I kept those fields 'default NULL' in mysql. Still doesn't take empty textboxes to be saved blank. What should I do? where am I wrong?

Member Avatar for h2so4_2003
0
113
Member Avatar for Motifaithed

Hi All, I need help because I'm stock on a problem, I'm developing an attendance monitoring system, I created a database with two tables, one is the profiletable and the other one is the present table, everything works fine on the profile search and the present search, once I query …

Member Avatar for cereal
0
74
Member Avatar for cr7489

hi, i have a sysytem that gets film reviews from my DB when i search the film but i want to use an API to be able to search online aswell such as getting reviews from IMDB does anyone know how i can go about this, are there any examples …

Member Avatar for cr7489
0
152

The End.