39,320 Topics

Member Avatar for
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
Member Avatar for Conielo

Hi, I can't solve this problem: I have a query which fetches the contents of the page meta tags from a database. It works fine when I have the query on page but when I turn it into a function (which is placed in my functions file) and call it …

Member Avatar for johny_d
0
176
Member Avatar for Leon1958

Hi guys, I need to change my static HTML page (i.e. [url]http://www.mypage.com[/url]) with a link (<a href="http://www.mypage.com/form.php"> to a page with dynamic link - if user's URL for my page is [url]http://www.mypage.com/?123456789[/url] this 9-digit number from URL should appear in the link to the form - [url]http://www.mypage.com/form.php?123456789[/url] Thanks in advance.

Member Avatar for metalix
0
139
Member Avatar for haboota

Hi, I having been playing with Pyxy Gallery and I really like it. However, it works in all browsers except Internet Explorer (I am using IE8, havent tried it in earlier versions). I contacted the developer, who unfortunately has no interest in the project anymore, and I was wondering if …

0
60
Member Avatar for niths

hi, i am new to php. i had a query about how to get the file name and file size of the uploaded file. so that i can display it in a table. thank u.

Member Avatar for metalix
0
82
Member Avatar for phpDave

HI, I am trying to insert the current date into mysql when a user submits their info. I cant use timestamp for this one. I am using datetime. It works when a user updates but not for creating. I get all 0's in the date column. Here is the code …

Member Avatar for phpDave
0
89
Member Avatar for baseballfury

Hi there, I'm trying to compare 2 arrays at the moment. There are 2 tables, the first (Category) holds a list of categories, e.g. Electricians, Plumbers, Builders and each has an ID number. The second table (Company) is a list of companies e.g. JonTheElectrician, GaryThePlumber and of course BobTheBuilder. Each …

Member Avatar for baseballfury
0
170
Member Avatar for sting23

Hi I'm currently creating a basic math tutor for kindergartners and i'm using dreamweaver 8 as my text editor with PHP and MySql. One of my modules involves lessons in which i would want to put addition and subtraction and i have created a flash documents to demonstrate(addition and subtraction) …

Member Avatar for HITMANOF44th
0
57
Member Avatar for hoaxvn

I have a question: Supposing that I am browsing a web page on my nokia (or some one else) mobile, In the Page, there is a HyperLink like "[B]Send 0109210[/B]" to win a prize, if I click on the HyperLink, the my phone will send a message to the [B]0109210 …

Member Avatar for wsdlab
0
104
Member Avatar for python08

Hi all, I've looked through this forum for some hours and am absolutely unable to fix my problem; no matter what I do. I'm trying to pass a PHP variable as part of a MYSQL query like so: [CODE] $id = $_GET["bodyid"]; $blog = getEntries("SELECT `Articlebody` FROM `Blog` WHERE id …

Member Avatar for warren88
0
164
Member Avatar for phpDave

Hi everyone, I am trying to validate a user registration form. User must enter letters and/or letters only. [CODE]//check username $_POST['user_name'] = trim($_POST['user_name']); $checkChar ='/^[a-zA-Z0-9]+$/'; if (!preg_match($checkChar, ($_POST['user_name']))); { $error['char'] = 'Username must contain letters or numbers only'; }[/CODE] When I submit the error message keeps coming up when it …

Member Avatar for vitana
0
204
Member Avatar for suri mariabell

How can I assign a user can only login to a web application via a particular valid client PC? If I have 20 clients, I want to restrict the PC no.1 for a user A to login, PC no.2 for a user B login and they cannot login to other …

Member Avatar for vitana
0
74
Member Avatar for mk1200

Hey guys, I'm sure this has been done before, but I haven't found the snippet yet. I think I have to use preg_match_all. Here's my very simple stopping point: [CODE]$content = $obj->introtext; $xml .= "<ImageUrl><![CDATA[$content]]></ImageUrl>";[/CODE] Here are two examples of the introtext table data: [QUOTE]<p><span style="font-size: 10pt;"><img src="images/stories/D-West.jpg" alt="D-West" style="margin: …

Member Avatar for mk1200
0
1K
Member Avatar for niths

hi, i am new to php. i had a problem with insertion. when i upload a file i should get the filename,uploadedby,uploadeddate,and size of the file in a table. first of all i am not getting inserted in the database itself. so can any one help me ..... --------upload.php-------- [CODE]<html> …

Member Avatar for JRM
0
108
Member Avatar for sallycheng

It cannot display the value of the checkbox,please tell me what wrong of it! Thak you [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c /> <title>Untitled Document</title> </head> <body> <?php if(isset($_POST["Sumbit"])) { $fruit=isset($_POST["apple"]) ? $_POST["apple"]:""; if(isset($_POST["bananan"])) { if(!empty($fruit)) $fruit.=", "; $fruit.=$_POST["bananan"]; } if(isset($_POST["orange"])) …

Member Avatar for sourcebits
0
270
Member Avatar for arunajasmine

Hi, I am using the Content SUbmit component of Joomla 1.5 . In my site i am having a main menu with tabs Home,About forum,Blog Where blog is linked to a section -- IFsection In that blog home page i have a sub menu with a Create a post linked …

Member Avatar for cwarn23
0
83
Member Avatar for niths

[QUOTE]hi, i am new to php. i want to get the uploaded filename,uploadedby,date, and size of the file. dont know how to get the name of the file and size. so please any one.... [/QUOTE] [CODE]<html> <body> <form enctype="multipart/form-data" action="upload2.php" method="POST"> <table> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> </table> <table> <br><br> <tr> …

Member Avatar for prem2
0
286
Member Avatar for kunyomi

Hi all, I have a database with contact info, and I need to display the info in groups. Currently in my database table called contacts I have a field called 'groups'. The values are 'favorites', 'home', 'work', and 'friends'. I tried creating a page called group.php and used a dropdown …

Member Avatar for kunyomi
0
372
Member Avatar for tkdgrt

Hi guys. I have to create a academic management system as a study project in PHP. I have very little knowledge of PHP and am really confused. Can anyone guide me in this project. Also I need to how would be the documents to create for this project and out …

Member Avatar for rajarajan2017
0
43
Member Avatar for mintballmaniac

Hello all. First post from a PHP newbie. I'm trying to teach myself how to retrieve data from my MySQL databse and have so far managed to get the text retrieval to work. What I'd now like to do, is to get my PHP page to retrieve an image, specifically …

Member Avatar for mintballmaniac
0
85
Member Avatar for CoolAtt

hi all, i want to use curl to automatically login on behalf of a user & get the SessionID for that user. i will configure php to store the sessionID in the url instead in a cookie on the user's browser. once curl has login on behalf of the user, …

Member Avatar for cwarn23
0
103
Member Avatar for sallycheng

It cannot display correct id no of student. Would you mind tell me what wrog of it. Thank you very much! [ICODE] <?php require_once('Connections/connection.php'); ?> <?php $colname_Recordset1 = "-1"; if (isset($_GET['eca_id'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['eca_id'] : addslashes($_GET['eca_id']); } mysql_select_db($database_connection, $connection); $query_Recordset1 = sprintf("SELECT * FROM eca,student_info WHERE eca_id …

Member Avatar for cwarn23
0
109
Member Avatar for hisabness

I am using PHP to create and index of the files contained in a directory. I then echo the files by including the index function in another php script. How can I change where the PHP shows up? It currently shows up at the top of the page but I …

Member Avatar for hisabness
0
1K
Member Avatar for kunyomi

Hi guys, I'm trying to UPDATE the image that has been already in the database with another image using a form in PHP. I got the uploading working all fine already. Just the edit part. With this code, I get no error, but the MySQL table is not written with …

0
378
Member Avatar for kunyomi

Hey guys, I've just started coding php, for a school project. I'm creating a member login system with functions to add/edit contacts. Currently I'm stuck at updating the contacts. I'm able to pull up data into a form in a page called 'edit.php', but after updating and clicking submit, it …

Member Avatar for kunyomi
1
467
Member Avatar for z_jun

Hi, I'm having problems with the update function in Sybase. I printed out the query and copied and pasted it into Sybase database and it worked. But, when I run it from the website, the code does not update the info in my database. Why is that so? Is there …

0
52
Member Avatar for lll_ari_lll

Hi, i am facing problem in log out section, which redirects to the file logout.php. where after unset-ing and destroying the session, it redirects to index page again, but when i type the following page address which should be seen only when an user is logged in, shows.. can anybody …

Member Avatar for lll_ari_lll
0
126

The End.