39,323 Topics

Member Avatar for
Member Avatar for shamsidah

[CODE]<?php include 'connection.php'; $qry = mysql_query( "SELECT g.totalDaily, p.COUNT(DISTINCT bodyNo) AS qty FROM grandTotal AS g, paintshop AS p ") or die('error'); while ($rows = mysql_fetch_array($qry)){ ?> <td><?php $dpu = $rows['g.totalDaily'] / $rows['qty']; echo $dpu;?></td> <?php } ?>[/CODE] i want to display the $dpu which is defect per unit..the information …

Member Avatar for pritaeas
0
125
Member Avatar for geneh23

hello everyone! I have a php blog once again that I can't seem to get to work..when I register an admin to all the editing options and what not..the processing gets weird..instead of outputting all the other errors..it simply goes to the error "User Not Added". Did the script skip …

Member Avatar for geneh23
0
181
Member Avatar for jeddsal

i have a data entry form in which i need to look-up to another page hence the pop-up page which contains a table from the database with a column named checkno. now from the main form i will clicked a button then it will display the popup page(i have already …

0
64
Member Avatar for xcarbonx

Hello, I'm trying to create user registration for a class website using WAMP. I have the register and activation pages working, but I am getting the same error for login, logout, forgot password, etc pages. The error is: An error occurred in script 'C:\wamp\www\login.php' on line 42: Cannot modify header …

Member Avatar for xcarbonx
0
150
Member Avatar for BrickZ28

Hello, I have been beating my head over this issue for almost a week now. I have my pages setup to where the user can register and I can display these members. Here is where it gets fun. Where the applicants are display they are in the rows so that …

Member Avatar for bloodbender
0
163
Member Avatar for bloodbender

Hello Daniweb, I've searched all over including a few threads here on this topic and it looks like I'm running out of options. I'm developing a travel reservations website with a promotional code field on the payment page. The admin wants to be able to create coupon codes with an …

Member Avatar for bloodbender
0
242
Member Avatar for Aamit

Hi, I have index.php on root. Session register using $_session['user'] and redirected to abc/demo.php session not working in directories . but on this location abc/demo.php session not working. is that any [B]setting in php.ini[/B] or anything? Same thing [B]working on local[/B](xampp) [B]but on working on live[/B] server. How to solve …

Member Avatar for diafol
0
188
Member Avatar for tatianna21

Hi, I would like to setup a htaccess for my dating site, where only US and UK IP ranges would be allowed, as well as my own IP, which is from EU. All other countries and proxies have to be blocked. I've searched on the net, but found nothing conclusive, …

Member Avatar for cereal
0
48
Member Avatar for jetlife76

trying to create a simpleprogram that will read a text file and output information and calculations using the data in the text file. I have 4 radio buttons which represent an item Number. when one is selected the output form should print to a table the ID,Part,Count, Price, and the …

Member Avatar for diafol
0
153
Member Avatar for narekm

Hello all of you . I'll try to explain what I want as clear as possible and if there will be some type of things that yo are unclear with please let me know . I built a live chat using PHP and MySQL (It's a chat programme where when …

Member Avatar for qazplm114477
0
174
Member Avatar for titosd

Hello, I'm coding a site in php, and i want to add another language/ I used poedit to do po file I used the _e() func, e.g _e('hello world') but when i tried to run the site in the localhost, i get an error. but when i changed the func, …

Member Avatar for diafol
0
167
Member Avatar for jacksantho

Hi, I need to change [B][url]http://localhost[/url] to [url]https://localhost[/url][/B] 1. I am working on the Apache(Xampp). 2. Operation System -> Windows Machine. 3. Am having [CODE]"DIGITAL CERTIFICATE"[/CODE] (license one - Am not using a self signed certificate) 4. I don't know how to configure this "DIGITAL CERTIFICATE" in my Apache Web …

0
45
Member Avatar for furlanut

On a MySQL table the Date column is set at YYYY-MM-DD with some dates shown as 0000-00-00 (Default set at NULL) where no date is available. This is OK until I display the web page that contains the php code for the SELECT query. All the 0000-00-00 dates are displayed …

Member Avatar for cereal
0
127
Member Avatar for tinker

[CODE] function isValidURL($url){ return preg_match("^([\d\w-.]+?\.(a[cdefgilmnoqrstuwz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvxyz]|d[ejkmnoz]|e[ceghrst]|f[ ijkmnor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrst uvy]|m[acdghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eouw]|s[abcdeghij klmnortuvyz]|t[cdfghjkmnoprtvwz]|u[augkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]|aero|arpa|biz |com|coop|edu|info|int|gov|mil|museum|name|net|org|pro)(\b|\W(?<!&|=)(?!\.\s|\.{3}).*?))(\s|$)^", $url); } [/CODE] Hi! Anyone knows what's the exact equivalent JAVASCRIPT code for the above PHP code? THANKS!

Member Avatar for McLaren
0
127
Member Avatar for edos

i had build ontology with my protege but i want to make search engine to seek ontology file with technology semantic web like use SKOS, SPARQL... can guess hel me?

0
53
Member Avatar for jinu227

Hi, I am using the backbone.js and full calendar script in my website. However, on clicking OK in the popup to add events, no action is taking place. Actually the event should be displayed on that specific date on clicking OK. the cancel button is working fine. I am using …

Member Avatar for cereal
0
68
Member Avatar for lastgame2007

need help, is it possible to save DATA from different table, in just one SUBMIT?? what is the query, or how is it? i cant find a TAB, for it... anyone can help me..?

Member Avatar for cereal
0
50
Member Avatar for gunnerone

When a person logs into my site i need to check a value in a database for their roleid, and dependent on that i need to allow/deny access to a page. I have this code but it says that the $_SESION variable 'Access' is undefined, i cant see why? [CODE] …

Member Avatar for Zagga
0
133
Member Avatar for FreddieBambino

Right. Im trying to communicate with the expedia travel API, exchanging xml feed with them. It goes somehow like this: I send them info of the query I want, they send me the query back in xml form. Here is an example of a query I would want to send …

Member Avatar for FreddieBambino
0
226
Member Avatar for mehdi.yazdani

Hi every body i was create some forms for uploading files. when i tried to upload some files with less than a MB there is no problem and it works well but when the size of file that i want to upload it, is over than 10 MB i faced …

Member Avatar for mehdi.yazdani
0
101
Member Avatar for Danny159

Hey, I have a database of events... and I need to add a row for each day for a year... so there will be 365 rows in the database, but the date format must be as follows: Row 1 Start Date: 2012-01-01T00:00 End Date: 2012-01-01T23:59 Row 2 Start Date: 2012-01-02T00:00 …

Member Avatar for pzuurveen
0
162
Member Avatar for Danny159

Hey, My code epic fails... I get delivery failed when sending an email to the email addess that pipe's to this script: [CODE]#!/usr/bin/php -q <?php ini_set('memory_limit', '256M'); //The concern here is having enough mem for emails with attachments. // read from stdin $fd = fopen("php://stdin", "r"); $email = ""; while …

Member Avatar for Danny159
0
98
Member Avatar for KJBweb

Hi all, been lurking for ages and though I'd join to ask the following: I have created a PHP script which'll automatically carry out a series of actions which'll save a lot of people a lot of time. It's highly configurable and comes in at ~350 lines of code. I …

Member Avatar for KJBweb
0
224
Member Avatar for |-|x

I originally posted this over on the [URL="http://wordpress.org/support/topic/incorrect-page-content-passed-to-plugin-in-firefox"]WordPress forums[/URL], and got no responses. Eventually I figured out what the problem was and fixed it, but thought I'd repost here in case anyone else is experiencing similar issues (I couldn't find any related articles in my initial search on the symptoms.) …

Member Avatar for cereal
2
202
Member Avatar for d1lu5ion

Hi guys, I am working on something that is driving me crazy, I'm just trying to get my php skills better and so the help with this or guide in the right direction will be a greatly appreciated. the script for this looks like this [CODE]<html> <head> </head> <body> <table …

Member Avatar for cereal
0
95
Member Avatar for masocha

l need to be able to add a custom contact page to a third party login user from my facebook app. Can someone point me in the coorrect direction, tutorials or clear documentation

0
67
Member Avatar for rahulroshan

Hi I have a phpcode that fetches data from database , I want to lock a row when a user reads that row and want to release it when he exits. Can any one help me plz

Member Avatar for broj1
0
79
Member Avatar for shamsidah

Hi.. I need some help. I have a problem to insert 2 values or variable from drop down list to database at the same time. i want to insert name_relation into db, at the same time want to insert IcNo into db. here my code: [CODE]<?php include ("ConnectDB.php"); ?> <select …

Member Avatar for RCrizt
0
1K
Member Avatar for garwil

Hi All, I have a "Change Password" script I am battling a bit with. At first I could not get the update to recognise the correct user and now that I have that sorted and the update does insert the new hash value for the correct user I cannot login …

Member Avatar for garwil
0
2K
Member Avatar for jacksantho

Hi, In my server, just i have installed XAMPP with the PHP version 5.3.1 and the apache version Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 . Am having a website, its run using http protocol : [B]http:[/B]//www.example.com I wants to make it to [B]https:[/B]//www.example.com I don't how to complete this …

Member Avatar for Buppy
0
113

The End.