39,316 Topics

Member Avatar for
Member Avatar for Venom Rush

Hi all I'm creating XML with php's native DOMDocument functionality. When I try save the XML it doesn't appear on the server and I can't figure out why. [CODE=php]<?php // Initiate the XML $doc = new DOMDocument('1.0', 'UTF-8'); $doc->formatOutput = true; // Code that creates XML elements and child elements …

Member Avatar for Venom Rush
0
1K
Member Avatar for Arianna

I'm writing a simple forum system to go along with one of my projects - nothing fancy, just categories, forums, threads, and posts. Some threads, however, are marked as 'stick', which means that they're stickies. No matter how many threads there are or where they're posted on, they always must …

Member Avatar for Arianna
0
111
Member Avatar for D4n1sD

So i want to put letter limitations into text boxs, not like it will pop up an error but not be able to write letters and only numbers, as the column type in db is demical.

Member Avatar for metalix
0
160
Member Avatar for manish.mca

hello everyone, i want to generate report by php for login at specific time. and i m usin database with my sql. so plz give me favour for code to make it successful. manish

Member Avatar for n_e
0
46
Member Avatar for Carrots

Hi, I was wondering if anyone can see why the substr_replace() function isn't replacing the 'XXXXX' with the random integer I am creating in the script below: [code=php] <?php $password = rand(12345,98765); $stringtoparse = 'Your new password is XXXXX'; substr_replace($stringtoparse,$password,18); echo $stringtoparse; ?> [/code] When I run this, I still …

Member Avatar for cwarn23
0
101
Member Avatar for Th3nutz

hello guys, i'm stuck with some code and i'm getting frustrated that i cannot get it work. Please help :)) I have a database with some details about registered users with a column named Activated (which is 0 or 1). I want to make a page were restricted users can …

Member Avatar for metalix
0
118
Member Avatar for metalix

I spent a long time figuring this out on the internet so I will post this now to hopefully help others with the same problem. this is to display the currently logged in user using mysql. this is so they log in with a username, and it displays actual name. …

Member Avatar for cwarn23
0
109
Member Avatar for ayesha789

HI Dears all I have 2 tables in DB. [LIST=1] [*]Lease_north [*]Lims_payment [/LIST] My first query is [ICODE]Select * from lease_north WHERE LaStartDate like '%-04-%'[/ICODE] its shows 100 result means 100 payments are due and must be paid in April. My second query is[ICODE]Select * from lims_payment WHERE pdate like …

Member Avatar for ayesha789
0
451
Member Avatar for niths

[QUOTE]hi i am new to php. i am getting the following error ----Warning: fopen(C:/Program Files/Apache Group/Apache2/htdocs/Project/) [function.fopen]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Project\download.php on line 4---- ----Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\Project\download.php on line 27------[/QUOTE] …

Member Avatar for n_e
0
281
Member Avatar for dylank

Hey DaniWeb community; I am trying to create a web page that pulls its settings from a file called settings.xml, and apply them to the web page. The title is the tag I want to change now, but my code is not working. Here is the code: [CODE=PHP] <?php //Open …

Member Avatar for dylank
0
229
Member Avatar for bigjoke

how can i REPLACE back slash in my string (file path) with forward slash. please help. str_replace doesnt seem to be working!

Member Avatar for sallecpt
0
168
Member Avatar for D4n1sD

How I can put limitation when someones submits a form so that the e-mail adress format looks like this letters@letters.2to3letters? Does anyone know?

Member Avatar for edwinhermann
0
99
Member Avatar for zeke188

[code] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name=""; // Database name $tbl_name="comment"; // Table name // connect to the mysql server $link = mysql_connect($host, $username, $password) or die ("Could not connect to mysql because ".mysql_error()); // select the database $db_found = mysql_select_db($db_name) or …

Member Avatar for colweb
0
97
Member Avatar for SureshM

Hi Guys, When I am using XML version in the XHTML, then I am getting parser error [Parse error: parse error, unexpected T_STRING on line 1]. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Testing Page</title> </head> <body> <p>Hi</p> </body> </html> When …

Member Avatar for twohawks
0
285
Member Avatar for SMHouston

Ok, I'm creating working on a black jack game. A very simplified version that doesn't have a dealer. Just the user and they either hit black jack or bust basically. I have the code written for a deck of cards, then shuffle it and place it into a text file. …

Member Avatar for SMHouston
0
274
Member Avatar for zeke188

Hi I have a table with info that I want to read and display. I can read it and display but I cant seem to format it can anyone tell me whats wrong. [code] <html> <head> <title>comment</title> </head> <body> <form action="postcomment.php" method="post"> name: <input type="text" name="name" ><br> comment: <textarea name= …

Member Avatar for zeke188
0
140
Member Avatar for dragos13

<?php $link=mysql_connect("localhost", "root","parola") or die("Could not connect: " . mysql_error()); mysql_select_db('energiesolara',$link) or die ('Can't use energiesolaradb: ' . mysql_error()); $x=mysql_query("SELECT umiditate FROM parametrii"); while($info=mysql_fetch_array($x)) { $comma_separated=implode(",",$info); } print "$comma_separated"; ?> I want that $comma_separated to store all the elements.But when I print that there is only one element which is …

Member Avatar for johny_d
0
93
Member Avatar for niths

[QUOTE]hi , i am new to php. i had a problem. whenever i upload a file it should get inserted in the database. it is working fine. now i should display that in a table in the browser but whenever i upload a file all other files names are not …

Member Avatar for colweb
0
61
Member Avatar for cliffordpg

my website layout breaks up when users zoom to +125% and to -65 in IE and ++2 and --2 in Firefox. Is there any way of fixing this? Website was developed in PHP and uses CSS. I know I'm not the first person to face this but I can't find …

Member Avatar for cliffordpg
0
90
Member Avatar for x86phre3x

Hi, I am in the middle of developing a web application (customer DB) and currently attempting to create a module to update the number of member registered under 1 agent. I have 2 table, 1 is 'users' and another 1 is 'dealers'. The 'users' table contains some normal user credential …

Member Avatar for johny_d
0
129
Member Avatar for peck3277

Hey guys, I'm hoping ye can help guide me here as I've reached a point in PHP where I think I can say I'm no-longer a beginner and would like to advance my knowledge. I believe my next step is understanding and using classes in PHP but for the life …

Member Avatar for xaeon
0
142
Member Avatar for Pooja J.

Hey Guys n Gals, I want to make login page in which I m taking email ID n password. If user enters email ID & password. Welcome.php should be open. else fail.php opens.Plz, read my attachments, But I received following warnings. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL …

Member Avatar for Pooja J.
0
115
Member Avatar for logonchristy

how to get popup window if new row inserted into mysql database for a particular table... That to be display inserted values in popup window... Advance thanx...

Member Avatar for moncy
0
237
Member Avatar for rajarajan2017

Hi Everybody, I am a flash developer and utilizing php sometimes for flash works. I am going to start my learning curve in php. so please suggest and must give a tutorial or pdf links to start with php and sql. Thanks in advance. Hope all will provide more pdfs …

Member Avatar for rajarajan2017
0
142
Member Avatar for opmrcrab

I have implemented google maps for customers to use on a number of websites, however I am looking for an PHP API to do server side checking/validation etc, does anyone know of such an API? Geo-coding is not neccisary but an API where I can get the center point of …

0
48
Member Avatar for s_kanika

I own a website I want to add blogs in it but I also want that if i post a blog from my site it should also be published in multiple sites Can anyone help me its urgent

Member Avatar for theighost
-1
101
Member Avatar for Neo1969

Hi all, I'm new to PHP and am doing a project with a php generator called PHPRunner and I have a design of the database in which the first table is the master of the second, the second of the third and the third of the quarter as follows: Categories …

Member Avatar for Neo1969
0
1K
Member Avatar for fumnimda

hi there i am trying to use php-openid-2.1.3 . it seems just works with yahoo but gmail and facebook is needed too. would some body help me in this issue?

Member Avatar for fumnimda
0
100
Member Avatar for faramira

i have to creat a form to generate a report that give details about the usage of stock of my system. there are 4 conditions to generate the report, and user are given a choice to select all 4 condition, or any of the four and also user can choose …

0
50
Member Avatar for dragos13

[CODE]<?php $link=mysql_connect("localhost", "root","parola") or die("Could not connect: " . mysql_error()); print ("Connected successfully");print "</br>"; mysql_select_db('energiesolara',$link) or die ('Can't use energiesolaradb: ' . mysql_error()); $x=mysql_query("SELECT umiditate FROM parametrii"); $y=mysql_query("SELECT temperatura FROM parametrii"); $info1 = mysql_fetch_array($x); $info2 = mysql_fetch_array($y); $xi=array($info1['umiditate']); $yi=array($info2['temperatura']); include('phpgraphlib.php'); $graph=new PHPGraphLib(500,280); $graph->addData($xi,$yi); $graph->setTitle('Grafic'); $graph->setTitleLocation('left'); $graph->setLegend(true); $graph->setLegendTitle('Module-1', 'Module-2'); $graph->setGradient('green', 'olive'); …

Member Avatar for metalix
0
143

The End.