39,402 Topics

Member Avatar for
Member Avatar for vaanipala

Hi, I'm getting the following error when i try to get the next sibling of the current node in php: Fatal error: Call to undefined method DOMElement::next_sibling() in C:\wamp\www\Ajax\getcd.php on line 1 does anyone know on what i'm doing wrong? thank you. cd_catalog.xml [CODE]<CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> …

Member Avatar for hielo
0
156
Member Avatar for niche1

This script displays the way I need it to when I manually insert it into my script with the correct value for $expdat: <span style="background-color:yellow">Expires ' . $expdat . '. </span> How should I escape the quotes to be able to echo it from a mysql table? If I just …

Member Avatar for hielo
0
201
Member Avatar for fokys

[CODE]<?php //set host, username and password for MySQL $dbhost = "localhost"; $dbuser = "root"; $dbpass = "root"; //connect to MySQL or return an error $conn = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die('Could not connect: ' . mysql_error()); //set database name $dbname = "database"; //select database or return an error $dbselect = …

Member Avatar for diafol
0
123
Member Avatar for hsetaknev

Hai frnds, Ahh...:?: I started learning PHP by my self frm somr Online tuts,And tried my first script.yes here it is [CODE]<html> <Head> My first PHP By my own </head> <body> <?php echo "My first program and its a failure" ?> </BODY> </html> [/CODE] But,The problem is..:confused: that iam not …

Member Avatar for hsetaknev
0
719
Member Avatar for afatn

I'm new to php mysql. i'm creating website for my community. help me out... My web page has one search page. user to feed few letters in the search box. it is proceesed and the result displaced in a table. here is my code [COLOR="Red"]for getting input : search.php[/COLOR] [CODE] …

Member Avatar for afatn
0
754
Member Avatar for Hani1991

Hi I wrote a php program that shows a poll and people have to vote for it theres a table in my mysql database for polls: polls columns: [B][COLOR="Green"]pollquestion polloptions pollvotes pollvoters voterschoices[/COLOR][/B] [COLOR="Green"][B]pollquestion[/B][/COLOR] column will contain the question of the poll [COLOR="Green"][B]polloptions[/B][/COLOR] will contain all the options for the …

Member Avatar for diafol
0
92
Member Avatar for Whilliam

Hello guys, I've been having this problem for 4 days now. I have this table that outputs records. One row contains all the records of the person. Every row has a 'ban' function. When the user clicks this 'ban' hyperlink, the program should popup a ban form wherein the user …

Member Avatar for ko ko
0
74
Member Avatar for 080346

i have a website at localhost yet :) where user upload swf file and it is shown to him. i want to extract all the jpg and png images from that swf file .... Any suggestions or solution please.... Much obliged

0
58
Member Avatar for jacob21

Hi, I want to send bulk emails to my registered users. is there is any software or should i done with the help of PHP. Need help & suggestions

Member Avatar for rajeesh_rsn
0
205
Member Avatar for awah mohamad

hi guys i am planning to create a website for my school(i am a high school student) that saves the students marks and then gives too many out puts. i am doing it for the science fair after 2 months. that is not my problem, my problem is i need …

Member Avatar for Ancient Dragon
0
104
Member Avatar for phorce

Hello, I am working on a system that logs someone in, from their IP address and not their username and password. The thing is, I need to access the remote IP address rather than the router's IP address. For example [code] <?php echo $_SERVER['REMOTE_ADDR']; ?> [/code] Will only display their …

Member Avatar for edwinhermann
0
154
Member Avatar for Hani1991

Hello every one whats the difference between mysql_.... and mysqli_.... functions in PHP??? Arent they both for mysql???

Member Avatar for Hani1991
0
234
Member Avatar for divyakrishnan

Hi. I have a page to send SMS.For that I am linking a third party page using header function.But I could not return to my home page after redirecting that page.I could not have the privilege to edit that third party page.How will I return to my home page after …

Member Avatar for abhi10kumar
0
115
Member Avatar for daryll1

I am attempting to dump a portion of my table after 7 days. This table will hold access logs so will fill up pretty quickly. I'm not too sure if this is entirely possible but this is what I'm trying to use. Any help or a push in the right …

Member Avatar for samanthakumara
0
217
Member Avatar for furqankhyraj

can any body tell what is going to wrong with this syntax [CODE] echo '<div> <a href=' ".$path.$i.$s.$ext." '> . <img src=' ".$path.$i.$ext." '> </div>';[/CODE] Please Help

Member Avatar for divyakrishnan
0
112
Member Avatar for jacksantho

Hi, Please help me out, i am facing this following error: [B]Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\timetable\exceldownload.php on line 172[/B] How to rectify this error?

Member Avatar for Hummdis
0
6K
Member Avatar for aplwong

Hi there, I need to implement a pre-sales and post-sales shopping cart in a single web site. The idea is a salesman have to first order some pre-sales material and product before he or she can do the actually sales. Once he/she did that , then they can contact customer(s) …

0
66
Member Avatar for hodgey87

I apologise in advance i know this has been done to death but i cant find an answer. im currently getting this error: [QUOTE] Warning: Cannot modify header information - headers already sent by (output started at /home/sites/test.com/public_html/index.php:9) in /home/sites/test.com/public_html/login.php on line 5[/QUOTE] my index file is as so: [CODE]<?php …

Member Avatar for hari.sarvothama
0
366
Member Avatar for cliffcc

How to do checking before importing the csv file by php? I have a csv file which contains the information with the columns (id, name, telephone , email) and have the database with the same columns. I have the php file which can import the csv into the database. Now,i …

Member Avatar for cliffcc
0
3K
Member Avatar for neocyb

I'm using mootools-core-1.3.2.js to hide/show a div tag. Now what I want to do is : * slide the div tag away (done and works); * get the value from the "horizontal_status" and put in in PHP var to toggle something else Here's the javascript code: [CODE] <script type="text/javascript"> window.addEvent('domready', …

Member Avatar for neocyb
0
268
Member Avatar for abhi10kumar

I have a page with three different modules (I am including) and I am using session to store values in sessions. I am using Jquery, where user clicks on link, a pop-up form appears and user have to fill some information like email, phone, after filling a code will send …

Member Avatar for ko ko
0
89
Member Avatar for abhi10kumar

I have form that getting values from query string and I have a form. On submission I have to show messages into the same page and I have two FORMs. Is there any possibility using AJAX, if yes then How ? I have two FORMs.

Member Avatar for diafol
0
252
Member Avatar for jakizak

Hi everyone, Got two mind-puzzling questions for you tha I have been pondering over for the best part of a day now. Q1: Is it possible to have a PHP variable in the name of a function, as in [CODE] Function $variable () { function code here } [/CODE] or …

Member Avatar for diafol
0
116
Member Avatar for rajeesh_rsn

Hi, I m a php coder and I likes Joomla , Codeinniter etc... Now I got a freelance project like this ([url]http://www.indiaglitz.com/channels/malayalam/[/url]) Which need an admin Portal , daily updates and a small discussion forum etc .... I m bit confused with which is the best framework or CMS best …

0
81
Member Avatar for tonyl09

I have a PHP/mysql form that occasionally fails. The particular piece that fails is: [CODE]// Existing email address - update record with latest info and save prior data in history field. $result = mysql_query("REPLACE INTO $userstable VALUES('$ID','$cur_date','$download','$email','$assist','$emailcontactname','$emailcontactphone','$group_size','$zipcode','$how_find', '$specialty','$comments','$userinfo','$history', '$countdownload', '$countday', '$autocountemail')",$db) or die ("<center><h3>Unable to update the data in row. …

Member Avatar for tonyl09
0
106
Member Avatar for john0563

I know by default you can not use an absolute path when using fopen and mkdir, but in my case I really need to specify the exact location of the files/directories. I KNOW there must be some workaround way to do this... does anyone know how? For example, here is …

Member Avatar for ghazanfar381
0
2K
Member Avatar for Espenij

Hi, I am upgrading from php4 to php5 and get this error message when i go live : "Notice: Undefined variable: eff in /home/test5/www/includes/lanekalkulator.php on line 226 %) " Code: [CODE]<br /> <div style='margin-top: 5px;'>= <span style='font-weight:bold;font-size:18px;'><?php echo ceil($resultat2); ?></span> kr,- pr. måned <em><span style='font-size: 11px'>(nom. rente 11.9% og eff. …

Member Avatar for Espenij
0
141
Member Avatar for newbie14

Dear All, I got a page here [url]http://183.78.169.53/tyre2/page2.html[/url]. For now is static but I will be reading from the database and form something like this dynamically. The problem as I read the value from db I would also read the said ID value. How to enable the ID to appear …

Member Avatar for Some-Jackass
0
73
Member Avatar for saadi06

Hi, I am having a problem in paypal integration.I have integrated the paypal payment method successfully but the values are inserted in the database when the user returns from the paypal back to the website.I need to make a script that when the payment occurs the values are returned to …

Member Avatar for saadi06
0
161
Member Avatar for decade

Hello guys, I'm new to programming especially in php. i would like to know how to use the substr() in this kind of problem. problem: I have this string. $stringA = "Hello to all of you!" output should be this: "Hello to ..." I try to use the substr how …

Member Avatar for tnjiric
0
138
Member Avatar for vaultdweller123

hey guys anyone here know how to change the default menu icon of component in joomla? currently it's using the box icon :(

0
80
Member Avatar for lloydsbackyard

in my address bar...i have this... [url]http://localhost/studentaccount/subject_infos/edit.php?subj_id=CS106[/url] the next step is to click update button...for update of records... how do i change it to, [url]http://localhost/studentaccount/subject_infos/edit.php?update=true[/url] or simple remove the subj_id=CS106 to come up with [url]http://localhost/studentaccount/subject_infos/edit.php?[/url] my part of my code is: if (isset($_POST['update'])) { echo "successfully updated!"; //code for removing …

Member Avatar for lloydsbackyard
0
125
Member Avatar for wfray

I've developed a few systems in a PHP-5.3.3 development environment. I'm now implementing them on an iPage host site. Their PHP level is 5.2.12. Two problems occur on their site. (1) when my code [code=php]if (session_id() == "") session_start;[/code] executes on their site it fails. It works fine on my …

Member Avatar for Shanti C
0
89
Member Avatar for cuonic

Hello there, Htaccess stuff not being one of my strong points, I'm asking if anyone knows about how to use the rewrite engine to provide the following : I currently have : [code]http://www.example.com/?page=home[/code] I would like to have : [code]http://www.example.com/home[/code] I think this is possible, because it used by Joomla …

Member Avatar for arosemena
0
122
Member Avatar for Hani1991

Hello everybody I want to avoid the errors that occur when I post a text that contain the ' sign and put it in a mysql query someone told me that theres a function in php to do that but I want to use it manually because he told me …

Member Avatar for Pro2000
0
111
Member Avatar for jrotunda85

I'm trying to figure out the best way to accomplish the computation of weighted averages for my site. Here's the PHP that pulls down the results -- [CODE]$SQL = "SELECT a.*, b.CName, c.Description FROM humidor a LEFT JOIN cigar b on a.CigarID = b.CigarID LEFT JOIN cd_manufacturer c on b.Manufacturer …

Member Avatar for jrotunda85
0
117
Member Avatar for soapyillusion

Hey everyone I just started using a new hosting service called 1and1 all the normal pages are going fine that use the simple html extension. However one of my php pages that uses the session_start() and header() functions isnt working correctly and I get an error. Now I know an …

Member Avatar for soapyillusion
0
128
Member Avatar for Acids

I am making a wordpress plugin but I am having difficulty accessing the results from an array in a function Radio Box: [CODE] <!-- First radio button --> <label><input name="posk_options[radio_group_two]" type="radio" value="satellite" <?php checked('satellite', $options['RADIO_GROUP']); ?> /> Satellite</label><br /> <!-- Second radio button --> <label><input name="posk_options[radio_group_two]" type="radio" value="hybrid" <?php checked('hybrid', …

Member Avatar for ddymacek
0
131
Member Avatar for heshanm

Hi, I am creating reports in my project using [B]TCPDF[/B]. I want to get the reports on a daily basis. For an example if there are 10 transactions occurred in a day, i want to display them in a report format. These are the 2 pages that i have created. …

Member Avatar for pritaeas
0
141
Member Avatar for eltonpiko

hi does anybody know a free sms api that i can integrate in a web app.will need to take text from a database and the selected phone number from the database and send it via sms.iv heard about google voice sms option but it doest say much of if you …

Member Avatar for eltonpiko
0
130
Member Avatar for zizuno

I am planning on writing a website that retrieves information from websites that require logins. Originally my intention was to AJAX most of it so I could provide the information in nearly realtime but the problem lies in browsers not allowing cross domain requests. So I considered YQL but then …

0
50
Member Avatar for mgt

I used the following to increment a "FOR" loop: for($row2[0] = 15; $row2[0] <= $rownum3; $row2[0]++) It worked. I tried to use the following to decrement the "FOR" loop: for($row2[0] <= $rownum3; $row2[0] = 15; $row2[0]--) It did NOT work and went into an infinite loop for some reason. Can …

Member Avatar for IIM
0
3K
Member Avatar for anitg

I am at my wits end ! Dont know what's wrong with the following code. It is always saying "Parse error: syntax error, unexpected $end in C:\Program Files\EasyPHP-5.3.6.0\www\addallbuy.php on line 51" [CODE] <?Php mysql_connect("localhost","root"); mysql_select_db("landshop_clientdata"); $Date = Date("Y-m-d"); $Agt="Landshoppe"; $user="anitg"; $Title="Mr."; $first="Anit"; $last="Gopinath"; $Age="40"; $prop="Wanted 1 BHK/2BHK and other properties"; …

Member Avatar for Insensus
0
280
Member Avatar for Sorcher

`Hello guys im trying to make this php code; [CODE]if(file_exists("u/txt/Chat/logged.txt")){ $file = $_SERVER[PHP_SELF]; if($file=="/systemchat.php"){ $file = file_get_contents("u/txt/Chat/logged.txt"); if(!strpos($file, $username)) { $myFile = "u/txt/Chat/logged.txt"; $fh = fopen($myFile, 'a+') or die("Can't open file"); $stringData = '<b>'.$username.'</b><br/>'; fwrite($fh, $stringData); fclose($fh); } } [/CODE] refreshed every second with Ajax, wondering how i should do …

Member Avatar for whiteyoh
0
121
Member Avatar for lloydsbackyard

how to remove a single quote ' in the search string...since it would generate an error if single quote is included... example, in an input box, the search string below are typed 'computer computer' 'c'o'm'p'u't'e'r if search button is click it would generate an error... please help..thanks...

Member Avatar for lloydsbackyard
0
952
Member Avatar for mehrantahir

hi everyone, i write data from database to the csv file,but i face problem how to print the csv file with multiple colors background for example first line is green then second line must be blue, please help me how can i do this in php

Member Avatar for chrishea
0
4K
Member Avatar for rcasinillo_s

Any could give me a PHP script on how to call or execute mysql stored procedure. Thank you. Roland

Member Avatar for alexopoulos7
0
1K
Member Avatar for varoluscu_prens

Hi there; There is a problem in my code. I've designed a web site that reads and querying over a XML file. Here is my XML file structure: <?xml version="1.0" encoding="utf8"?> <Root> <User> <name> ayça <name> <surname> demir <name> <department> ftr </department> <TCIdno secrecy="c">48622845695</TCIdno> <rank> tuğgeneral </rank> <telNo> 2114 </telNo> …

Member Avatar for Mad4Mini
0
153
Member Avatar for chaychie

Hi everyone, I have a code which converts a html page into excel file. The following code has been working well so far, but Im having a problem of converting the html page into excel file after I had changed the localhost to another server. It's not able to generate …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for mustafaneguib

Software: MN Tech Solutions Content Management System Software Version: 0.0 Developer: MN Tech Solutions Programmer/Designer: Mustafa Neguib (Founder of MN Tech Solutions) ok guys here it is . the project that i have been working on for the past two weeks. i have already got the green light from the …

Member Avatar for megadata
0
142

The End.