39,316 Topics

Member Avatar for
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
158
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
97
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
236
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
429
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
Member Avatar for initialfresh

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 …

Member Avatar for diafol
0
724
Member Avatar for ak47carbon

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" …

Member Avatar for ak47carbon
0
840
Member Avatar for SQLpower

Hello, folks. I got another problem. Basically, I wanna check if someone is old enough to watch a movie. I got 2 sessions - one for the certificate( 12, 15, 18) and 1 for the year of birth. My question is can i use somtehing similiar to this or? Cause …

Member Avatar for nidayaqoob1230
0
188
Member Avatar for desup

Hello, ths is one thing that is really shaking my heade O_o, I have got a Html and Javascript code, that contains about 1000 lines and I need to put it to php variable. Sure I was thinking about the [B]EOT[/B] method, But thare is one problem with it, if …

Member Avatar for desup
0
275
Member Avatar for QuaminaIT

I have 3 arrays with 3 items in each. I want to divided them into groups of 3 radio buttons and i want to select one radio button, hit a submit button and have it post on the same page and then move to the next set and have it …

0
148
Member Avatar for darkiel21

<?php echo "<html> <head><title>comment box</title></head> <body> <hr width=1000>"; require('connect.php'); if(isset($_POST['submit'])) { $name = $_POST['name']; $comment = $_POST['comment']; echo "<font color=white><center>"; $result= mysql_query(" INSERT INTO COMMENT (name,comment) VALUES ('$name','$comment')") or die(mysql_error()); while($row = mysql_fetch_array($result)) { echo "<tr> <th>ID</th> <th>Name</th> <th>Comment</th></tr>"; echo "<tr>"; echo '<td>' . $row['name'] . '</td>'; echo '<td>' . …

Member Avatar for karthik_ppts
0
663
Member Avatar for scarcella

Hey guys, i need to know if i can find a FREE excel like datagrid that will allow inline editing and has drop down boxes for some fields. Also filed may be able to collect their default data from a session variable. I have tried this: [url]http://azgtech.wordpress.com/2010/08/01/jqgrid-php-datagrid/[/url] Thanks, Marais

Member Avatar for azghanvi
0
1K

The End.