39,321 Topics
| |
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.. | |
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> … | |
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 … | |
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: … | |
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&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&id=113762">Another Name</a></td> <td>City, STATE</td> <td … | |
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 … | |
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 | |
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 … | |
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 … | |
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(); … | |
i want to display report when i click on the name.so which kind of code is required? | |
How to get values from textbox in a while loop? Can somebody help me? | |
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? | |
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 , … | |
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'])) … | |
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 … | |
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? | |
how to conecct remote server by using ssh in php | |
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 … | |
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', … | |
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 = ? … | |
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>'; } … | |
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 … | |
how to get 12 hour time from time datatype in mysql and php? can anyone help me??? | |
| 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 … |
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? | |
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 … | |
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 … | |
Hey guys, soo i'm new to PHP & I'm doing a course in school. I really really really need help. I have to get three input's;start temperature, stop temperature, & how much the users wants to increment it. then validate it for these... that the user entered numbers in each … | |
I want to sent email to all enews subcribers but how can i send mail more than one person but when i used this coding its working not properly.it is send 3 times mails to one person plz help me[CODE] <?php // Connects to your Database include("connection.php"); ?> <link href="../log.css" … |
The End.