39,320 Topics

Member Avatar for
Member Avatar for naju

i have a function lets say function myfunc() { echo 'hi'; } now the code may call the function [B]myfunc[/B] more than a time but there should be only one time echo of 'hi' pliz help anything could work .... but all my effort in vain static variable ???? global …

Member Avatar for naju
0
73
Member Avatar for kings

Is it possible to pass the javascript varible from one php page to another php page. what is the syntax we use.

Member Avatar for kings
0
124
Member Avatar for BenWill

Hey all, first post here and im also very new to PHP, but been having major headaches over one query. The query simply inserts some data into a table, which i've done in myphpadmin, the myphpadmin looks like this: Registration_ID int(10) No auto_increment Registration_Date date No Academic_Year int(2) No Year_of_Study …

Member Avatar for BenWill
0
120
Member Avatar for forzadraco

Anyone can help me to tell me what the best accounting,payroll,inventory,andPOS open source software web based with php-mysql ? Thanks 4ll

Member Avatar for Free_Man
0
46
Member Avatar for littlegreen

Hi all, I would like to know how to assign and get the form value when I using it in a [COLOR="Red"]loop[/COLOR]. I cannot get all the input that I inserted in '[COLOR="red"]Desc[/COLOR]' part and it is from[URL="http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm"] [COLOR="red"]this site[/COLOR][/URL]. May I know to get this work when I do …

Member Avatar for Free_Man
0
247
Member Avatar for maydhyam

Hi There, Can anyone explain to me this line of code? What is it used for? etc.. [ICODE]$HTTP_POST_VARS['command'][/ICODE] The text that I saw it in doesn't explain it...

Member Avatar for dgreenhouse
0
140
Member Avatar for zidaine

hi!.. I'm a newbie with this, pls help me!! every time I install apche 2.2 in my windows xp, I alway get an error. "could not reliably determine the server's fully qualified domain name" and "only one usage of each socket address"

Member Avatar for hawisme000
0
262
Member Avatar for trashed

Hi guys. I have a DB table looking like this: #DATE #NAME #C1 #C2 2007-08-27 user 1250 2294 2007-08-28 user 1816 3096 2007-08-29 user 89 3153 2007-08-30 user 71 2986 [..] I started collecting data in late August 2007 and it's being updated every day. I want to fetch the …

Member Avatar for pritaeas
0
145
Member Avatar for Free_Man

Hi, I try to take data from mysql and insert into xls. I achieve that but I cannot sort out the char problem. Turkish characters are displayed in a weird shape in the file but everything seems fine when i display them in a web page. I tried ISO-8859-9(which is …

Member Avatar for Free_Man
0
86
Member Avatar for sDJh

Hi everyone, I'm now fiddling over a week to fix a problem on my linux-webserver. I have the following code: [CODE] ... $bool=mkdir(trim($semname), 0777, TRUE); //chmod(trim($semname),0777); $f2=fopen(trim($semname)."/index.php","w"); ... [/CODE] it works perfectly when working on my home server under windows but as soon as loaded up on my linux-webserver it …

Member Avatar for sDJh
0
325
Member Avatar for scorpionz

Hi This is ScorpionZ I have Created a window that holds an Id of Particular Product having code this: <head> <script type="text/javascript"> function poponload() { testwindow= window.open ('image_viewer_window.php?images=<?=$prod_id?>', "Image","location=1,status=1,scrollbars=3,width=452,height=218"); testwindow.moveTo(215,350); } </head> <body> <td bgcolor="#F8F8FF"><a href="#" onclick="return poponload()">View Images</a></td> </body> // Talking about $prod_id it is an Id already in …

Member Avatar for sDJh
0
94
Member Avatar for lydia21

hi i have a html page when the user clicks a button in the parent window a popup window will be opened which will contain the login page.if the user is a valid user then i want the parent window to get refreshed so that i can show him the …

Member Avatar for nav33n
0
307
Member Avatar for cancer10

Hi, I came up with this problem last night. I have a URL [url]http://www.mysite.com[/url] How do I fetch the folder name that was supplied in the URL. For example: [url]http://www.mysite.com/xyz[/url] or [url]http://mysite.com/myfolder[/url] or [url]http://www.mysite.com/xxx[/url] Please note that I can either use www or [url]http://www[/url] or just http:// in my domain …

Member Avatar for sDJh
0
104
Member Avatar for irfani

from my query sql get result like this : btsname------date------dcr aaaa---------jan01------0.2 aaaa---------jan02------0.3 aaaa---------jan03------0.4 aaaa --------jan04------0.5 . . bbbb---------jan01------1.1 bbbb---------jan02------1.2 bbbb---------jan03------1.3 bbbb---------jan04------1.4 . . i try to change result below btsname ----jan01-----jan02-----jan03----jan04-- aaaa--------0.2-------0.3-------0.4-------0.5 bbbb--------1.1-------1.2-------1.3-------1.4 . . i try to make php like this $resulthw=mysql_query($rs); $n = array(); while($row = mysql_fetch_assoc($resulthw)){ if(!isset($n[$row['btsname'][date]])){ …

Member Avatar for sDJh
0
88
Member Avatar for spiderling

I was wondering if it is possible to download/copy a zipped file with images from one server to another and then unzip the file to a folder with PHP? If so, any suggestions of how or where to read up on it? By the way, the zip file requires a …

Member Avatar for sDJh
0
89
Member Avatar for evios

just wanna ask..if session cant be use, i try setcookies() to get the variable pass through the pages, however i get this error message: Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\VertrigoServ\www\logincheck.php:2) in C:\Program Files\VertrigoServ\www\logincheck.php on line 3 i put setcookie($username, time()+3600); right …

Member Avatar for evios
0
182
Member Avatar for NickRoss

Hallo members, I have been trying to learn PHP/MYSQL but I have been disappointed all the time. I have installed PHP DEV package that has MYSQL and PHP. Then I tried writing code via Macromedia Dreamweaver ... but when I save the dot php (.php)files and try viewing my pages, …

Member Avatar for nav33n
0
57
Member Avatar for evios

hi...i am doing form for bill redemption, and juz wanna ask is there any function in php used to check for expired date? like current month is march, if user enter due month to be january, then it will be invalid. Any function to detect current date? By the way, …

Member Avatar for JRSofty
0
105
Member Avatar for forzadraco
Member Avatar for silviuks
0
57
Member Avatar for naju

i need to embed text with different fonts to an image it will be cool if i could use the .ttf font files for writing text Thanks in Advance

Member Avatar for naju
0
106
Member Avatar for CzechRock3

Im writing a website, but when one goes to login it is not detecting the username/password the code i used follows(I just started learning yesterday... so im kinda lost as to why its not working). [code=php] <?php session_start(); $errorMessage = ''; if (isset($_POST['txtUserId']) && isset($_POST['txtPassword'])) { $host="localhost"; $username="falconnest_forumuser"; $password="qazasdedc"; $db_name="falconnest_forum"; …

Member Avatar for CzechRock3
0
155
Member Avatar for cancer10

I have a timestamp column in a mysql table. Using PHP, how do I convert the timestamp format which is "YYYY-MM-DD HH:MM:SS" into a format like "March 16 2008, 08:41 am" ? Please help Thanx

Member Avatar for sDJh
0
160
Member Avatar for karl.goddard

I’d like to have a php page that will retrieve the 10 most recent articles submitted to a database and create a static html page with the results from the query. The idea is to reduce the load on my mysql db by only hitting the db once instead of …

Member Avatar for sDJh
0
87
Member Avatar for eparse

hi for all the expert here, i am now facing a minor problem on retrieving data here. MySQL do contain all the variables defined with data inside it. However, i juz need to know how to loop through the array to get all the data in a row? Below is …

Member Avatar for nav33n
0
105
Member Avatar for kevin wood

I have created a image upload for the site i am working on i now want the uer to be able to click on a preview button and this takes them to a separate page where they can see the images that have been uploaded. for this to happen would …

Member Avatar for kevin wood
0
103
Member Avatar for anasta

Hi, thanks to Petr.pavel I managed to get my array to have checkboxes but my problem is that the form uses php_self and so where do i use the insert query to insert to DB. I dont want page refreshes. I usually put the insert query in a php file …

Member Avatar for nav33n
0
75
Member Avatar for iketunde

Hello, I created this site on my local machine using PHP 5.0.4 and mysql 4.1 and it works perfectly fine. I then ftp it to my webhost but the code to retrieve values give me this error. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/laterallinks/ApplicantInformation.php …

Member Avatar for visagar
0
474
Member Avatar for soultrav

i have a textbox and a button,like this: [code=php] <form method='post' action=<?php echo $_SERVER["PHP_SELF"]; ?> > <input type='text' name='write'> </input> <input type='submit' name='push'> </input> </form> [/code] , and i want that everytime that i push the button the content to be listed on the page without the previous content being …

Member Avatar for soultrav
0
108
Member Avatar for avmaza

Dear Friends, I would like to buy community software. the community software, which includes forum, chat, files sharing. with using the technologies php and MySql. please suggest me which will be best. thanking you, maza

0
51
Member Avatar for leroytrolley

Hi I've just got a nice php form done and I now need my visitors to be able to upload pics and have them sent with the form data. Is that possible in a php form, if so, can anybody point me in the right direction. Many thanks. LEE

Member Avatar for mike4
0
306

The End.