39,326 Topics

Member Avatar for
Member Avatar for sharathg.satya

i referred a site which said that using the include() we can include code of another page into the current page But i am not getting the output as they showed. this is my code [CODE] <html> <head> <style type="text/CSS"> body { background-color:#696565; font-style:italic; } h1 { color: green; text-decoration:underline; …

Member Avatar for moneeshot
0
113
Member Avatar for rphp

Hi, I am a new PHP developer. Actually just started today and I wanted to know which MAMP stack to use ? I came across MAMP and AMPPS : [url]http://www.mamp.info[/url] [url]http://www.ampps.com[/url] Which one should I use ? From the looks of it I think AMPPS is easy to use. I …

Member Avatar for pritaeas
0
86
Member Avatar for manc1976

I have created a form that uses a drop-down box to save information to a MySQL database using a php script I wrote. That works perfectly, but the problem I have is when I am trying to edit the information in the database. I have created an edit form that …

Member Avatar for manc1976
0
10K
Member Avatar for abhinav1986

Hello to all, I am trying to solve this problem but i did not find the solution. please help me to find the solution. Error: Column count doesn't match value count at row 1 [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("hotel", $con); …

Member Avatar for pritaeas
0
293
Member Avatar for Ritesh_4

Hi I need to add the following sample url, [url]http://www.mysite.com/home[/url] to my .htaccess file to redirect it to the following url: [url]http://www.mynewsite.com/welcome[/url]. I've seen that my htaccess uses RewriteCond, and tried a code like this: RewriteCond %{HTTP_HOST} ^www\.mysite\.com/home$ [NC] RewriteCond ^(.*)$ http://www.mynewsite.com/welcome$1 [R=301,L] However am getting Internal Server Error 500. …

Member Avatar for skraps
0
153
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
126
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
182
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
151
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
243
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
128
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
164
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
99
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

The End.