38,020 Topics

Member Avatar for
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
423
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
718
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
830
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
181
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
272
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
660
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
Member Avatar for sammry

Hi, I am trying to give an avatar to my visitors based on their sex and their profile pic.i have written a code and am getting the desired result, but not happy with the coding part, hence seeking help on this. My member database contains, profilepicture field where member can …

0
70
Member Avatar for rickarro

Good Day, I'm trying to changed the background color of a field based on the results of the field. My script runs fine and provides the data correctly. I query my database and it gives me a result of $priority. $priority can be High, Medium, or Low. What I want …

Member Avatar for trentbam
0
4K
Member Avatar for petrakid

Normally when I do file uploads I save the files into the website's file system. However in this particular situation I am required to save the PDF files as a longblob into a table in our mysql database. The data field is set as a longblob, and the table is …

0
124
Member Avatar for simplypixie

Can anyone see why my variable $unit_price isn't updating (in fact it isn't even being applied to the session variable) in this code (it must be something simple but I can't see it and is driving me mad). I have tested the posted data and it is being sent through …

Member Avatar for simplypixie
0
145
Member Avatar for rambo12

Hi I would like to know if I can use freeswitch with PHP for voice chat. I have downloaded the freeswitch software But I am not getting how to configure php with freeswitch where to use this in freeswitch can voice chat application be created using php. how freeswitch is …

Member Avatar for Ezzaral
0
480
Member Avatar for lastgame2007

i have this recommendation that, the teacher can add continuously how can i do this? in which the teacher can add grade and on single button it can be all saved in one database [url]http://www.4shared.com/photo/TjiwnmxX/aaa.html?refurl=d1forum[/url] [CODE] <?php if(isset($_POST['save'])) { $g_year['acad_id']; $fg=$_POST['fg']; $sg=$_POST['sg']; $tg=$_POST['tg']; $forg=$_POST['forg']; for($i=0;$i<count($fg) && $i<count($sg) && $i<count($tg) && …

Member Avatar for diafol
0
98
Member Avatar for Ctechnology24

Guys I need to print tne content of my div named "content" my code will only work if their is only one div named "content" but in my case I have a lot of div with same ID because I iterated it along with the codes from mysql, can anybody …

Member Avatar for Biiim
0
2K
Member Avatar for breakforce

Hello :) I have a system to add friends, i would like to make it as i want, but something does not deal... This is a SQL now: [code]CREATE TABLE `friends` ( `id` int(11) NOT NULL AUTO_INCREMENT, `f_id` int(11) NOT NULL, `us_id` int(11) NOT NULL, `active` enum('0','1') NOT NULL DEFAULT …

Member Avatar for diafol
0
115
Member Avatar for Stretty

Hi I have a form page (form.php) which calls a seperate PHP page to insert a new record (insert.php). Insert.php then redirects to a listing page (list.php) using [CODE]header('Location: list.php?z='.$access);[/CODE] ($access is the user id and priveledge level and is passed through all pages as our company does not allow …

Member Avatar for Stretty
0
257
Member Avatar for arunpawar

I am trying to create a url bookmark script for my own use. Here's the code. [CODE]<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("delicious") or die(mysql_error()); $data = mysql_query("SELECT * FROM stacks") or die(mysql_error()); if(mysql_num_rows($data)) { echo '<table cellpadding="0" cellspacing="0" class="db-table">'; echo '<tr><th>No</th><th>Name</th><th>URL</th></tr>'; while($row2 = mysql_fetch_row($data)) { echo '<tr>'; foreach($row2 as …

Member Avatar for broj1
0
107
Member Avatar for Ctechnology24

Guys I am having a problem on how can I display array of records using mysql_num_rows, I cant use mysql_fetch_array because the format like this [CODE]$row['MR_no'];[/CODE] that encloses the name of the field inside brackets in my SQL codes this is my codes: [CODE]<?php $username = $_SESSION['username']; $query = "select …

Member Avatar for Biiim
0
216
Member Avatar for ghostonline2020

i tried refreshing the page using header but it didnt work.. header .. my "the 9th line from the bottom... thanks in anticipation of your replies <form name="page" method="POST" action="page.php"> <fieldset> <label for="name" id="name_label">Name</label> <br /> <input type="text" name="name" id="name" size="30" value="" class="text-input" /> <label class="error" for="name" id="name_error">This field is …

Member Avatar for pritaeas
0
179
Member Avatar for dioz20

Hello. I'm currently coding a customer/product/etc registration site and there's this problem I just kinda can't figure out even after searching around on the web. The DB consists of 8 tables User (for login handling) Customer (for customer registration) Product (for product registration) ProductCategory (for product category registration) Cleaning (for …

0
73
Member Avatar for baig772

Hi all I am trying to show a comment box under each post, i have tried [code]<?php get_template_part( 'content', 'single' ); ?> <?php comments_template( '', true ); ?> [/code] but the comment box is still invisible

Member Avatar for simplypixie
0
200

The End.