39,395 Topics

Member Avatar for
Member Avatar for phpDave

Hi, I have 2 pages were the user inserts data into the database. Page one goes into parent tabel and page two goes into child tabel. Everything works fine unless the user completes page one but not page two. If only page one is complete and user logs off and …

Member Avatar for CJesusSaves
0
104
Member Avatar for kriegz

How can I showing up a report file (*.rpt) from crystal report into a web browser with PHP, I'm already used this code : $cr=new com("Crystal.CRPE.Application") or die("cannot load cr com"); $rn="C:\WAMP\k\allreports\BS18A.rpt"; $rap=$cr->OpenReport($rn); but there was'nt happen any thing, it just a blank page comes up could any one give …

Member Avatar for siddeshp
0
218
Member Avatar for xuexue

is it possible to input a data grid in php like in VB6? because in my program, user will display lots of data and displaying it in a data grid (clickable) is the best way, we all know that in VB6, once the user clicked anywhere in the grid, it …

Member Avatar for CJesusSaves
0
109
Member Avatar for cane23

i have a form that uses the post function however i am having some troble getting information from the drop down menus. and also i am having some trouble doing some form validation. the code for both files is shown below. <html><title>Create a new Prequisite Rule </title> <body> <form action="insert_rule.php" …

Member Avatar for CJesusSaves
0
135
Member Avatar for druveen

i have a senario where user reg for seminar and books a hall, during reg he enters start time and end time for seminar ,start and end time are stored in data base. when a new user reg for seminar hall with existing booked time in data base it should …

Member Avatar for druveen
0
158
Member Avatar for takeshi

i have a problem with this code regarding in counting.. [B]index.php[/B] [CODE] <?php if(isset($_GET['btnsubmit'])){ $can = array($_GET['pres'],$_GET['vp']); mysql_connect('localhost','root'); mysql_select_db('sample_poll'); foreach($can as $val){ $sql = mysql_query( "UPDATE candidate SET votes=votes+1 where can_id='".$val."'" ); } echo "<h1>vote complete!</h1> <a href='voteresult.php'>see all vote results</a>"; }else{ echo "<form method='get'>"; mysql_connect('localhost','root'); mysql_select_db('sample_poll'); $sql = mysql_query( …

Member Avatar for takeshi
0
102
Member Avatar for the0ry

I am familiar with several PHP random image loaders. The only thing I can not seem to find very easily with these scripts is one that prevents repeats for so many reloads. I have a directory containing 3500 images. What I have noticed is that I can cycle through the …

Member Avatar for kireol
0
653
Member Avatar for loll_l

There are a few things I need to know how to do to complete the Booking Form on my website found here: [url]http://www.n-v-m.co.uk/Booking.html[/url] Any help on the below points would be much appreciated: 1- I need to center the labels in line with the multi line text fields... ie. where …

Member Avatar for loll_l
0
150
Member Avatar for jamesxg1

Hi Everyone! I was wondering how I would use a javascript varible in jquery ?. [CODE] function postNewAnswerAlerts() { if (http_request.readyState == 4) { if (http_request.status == 200) { var result = http_request.responseText; $('div#question').load('responder.php?mode=readquestion&id=' + result).show().fadeIn('slow'); } } } [/CODE] Many thanks James.

Member Avatar for jamesxg1
0
71
Member Avatar for aashiqe

[CODE]$page = implode ('', file ("http://examplesite/index.cgi?prod_id=" .$product_sku. ";vendor=" .$mf_name. ";shopname=url;lang=UK")); $mysite = $_SERVER['PHP_SELF'].'?link='; // request this page $page = preg_replace("/<a href=\"(.*)\">/i", "<a href=\"$mysite\\1\">", $page); echo $page;[/CODE] Now i can't find a way to get this work. I need product_sku and mf_name to be collected from a joomla vm site and …

Member Avatar for aashiqe
0
68
Member Avatar for aneeka

Help!! I need to generate a bar graph out of the data from the MySql database, could anyone help me here? Thanks!

Member Avatar for kireol
0
290
Member Avatar for lotus2009
Member Avatar for almostbob
0
109
Member Avatar for veledrom

Hi, When I click BACK button on my Browser, all old variables were sent to URL are retrieved again. How can I destroy them? Thanks

Member Avatar for veledrom
0
3K
Member Avatar for rkumaram

I am working on payment module which includes credit card transaction. I have a domain FOOXYZ.COM (IP: x.x.x.x) which is secured with SSL and I can access it with [url]https://fooxyz.com[/url] Now in fooxyz.com I have a page payment.php [url]https://fooxyz.com/payment.php[/url] In payment.php I am accessing an IFRAME and the source of …

Member Avatar for rkumaram
0
223
Member Avatar for jithusdani

hello folks, Can anyone help me out how to install the sugarCrm software in wampserver.? I have tried to insatll the same but its saying that , "Minimum Php version required is 5.1.0. Recommended Php version is 5.2.x." But here in my system it is there php5.3.0.. why it is …

Member Avatar for pritaeas
0
65
Member Avatar for manishmannan

in my program i am getting this error what would be the reason Warning: include(/common.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\oob\Product\manager.php on line 41 Warning: include() [function.include]: Failed opening '/common.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\oob\Product\manager.php on line 41

Member Avatar for vaultdweller123
0
138
Member Avatar for lainey_nix

Hi, I have a bit of an urgent issue - Im new to forums in general so bear with me! I have an interactive application form on my website which i built in LiveCycle. I need the first field in my application form to prepopulate with information from my database. …

Member Avatar for vaultdweller123
0
77
Member Avatar for OmniX

I was trying to play a powerpoint presentation(.ptp & .ptpx - I think that is the old and new extensions) and get it to play once it has been uploaded. Now im 80% sure but I remember seeing a powerpoint presentation being played through a browser a year or so …

Member Avatar for Adward
0
938
Member Avatar for WaltP

I have the following code in a form: [code=php] <? for ($n = 0; $n < count($filelist); $n++) { printf ("<button type='submit' name='imgnam' value='%s'>", $filelist[$n]); printf ("<img src='%s' width='100' />", $dirname . $filelist[$n] . ".gif"); print "</button>"; printf ("<br>%s</p>\n", $filelist[$n]); } ?> [/code] [ICODE]$dirname[/ICODE] contains the directory value [ICODE]$filelist[][/ICODE] contains …

Member Avatar for WaltP
0
139
Member Avatar for salibaray

Hi there, I'am developing a snippet for a website widget that will read/fetch data from an XML file, sort it in array's and then show it back to the user - formated as a sentence. [b]Example:[/b] [b]XML sample:[/b] [code=text] <row id="1"> <username>GGR1024</username> <name>Raymond</name> <surname>Saliba</surname> <game>Lotto</game> <won>5000</won> </row> <row id="2"> <username>GGR1111</username> …

Member Avatar for salibaray
0
187
Member Avatar for aneeka

Anyone, please help me here.:( How can I draw a line graph using PHP with data from MySql database? Do you have sample code for this? Thank you!

Member Avatar for aneeka
0
1K
Member Avatar for Morty222

I am running this foreach loop. I need to seperate each value by a comma, which this does. However, I need to kill the comma on the last value. [code] foreach ($_POST as $key=>$value){ if ($key != "submit" && $key != "type"){ $fields = $key.","; echo $fields; } } [/code] …

Member Avatar for arunss
0
180
Member Avatar for talk2sachi

Hi friends I'm installing mysql on linux system through rpm. when i'm entering command mysqladmin -u root -p create mydb its showing Enter password: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the …

Member Avatar for cwarn23
0
105
Member Avatar for meempat

Can Any body help with this script. I am not an expert in PHP I am displaying images 4 each in a page and the last image is repeating. unset is not working. [CODE]<?php $ar=scandir("hairupdo"); $n=0; $h="hairupdo"; $cnt=0; $numofimages=count($ar)-3; $imagesperpage=4; $numberofimages=0; $pages=ceil ($numofimages/$imagesperpage ); $gid=$_GET["id"]; echo "<table width=100 border=0 cellspacing=5 …

Member Avatar for meempat
0
154
Member Avatar for xuexue

hi there, i have a problem with this one, i want to input the data to an array, however, this doesn't work for me. [code=php] $resultSN = mysql_query("SELECT * FROM table "); $resultRowsSN_Count = mysql_query("SELECT COUNT(*) FROM table"); $count = mysql_result($resultRowsSN_Count,0,0); while($row = mysql_fetch_array($resultSN)) { $machineName_O = $row['MachineName']; for ($i=0; …

Member Avatar for xuexue
0
126
Member Avatar for julzk

Hi, I have a query that display's results from my sql database. I have it listing a start time and an end time. And I have a script that calculates the duration of how long the service was an outage or was just degraded. I am wanting to display a …

Member Avatar for diafol
0
2K
Member Avatar for smartness

Hi guys, can you please suggest me a good class that supports sub-sub-sub categories. I tried a lot of them, none of them seems to fit me! I also tried to modify them for my needs, but the more i try, the worse it gets lol :P If you know …

Member Avatar for kireol
0
132
Member Avatar for samiq

PHP HEllo world, i need some help here plz. i want to make an addressbook and want to have an index file that includes/requires all the other files in the include folder(the include folder contains all the functionality) so that i dont have to manually include files in other files. …

Member Avatar for samiq
0
146
Member Avatar for LaFreak

Hello all, <?php $result = mysql_query("SELECT Artikelnummer, Artikelmerk, Artikelnaam FROM Product ORDER BY Artikelnummer;"); printf('<table class="adminblok">'); while($r = mysql_fetch_assoc($result)) { printf("<tr><td>[B]<a href="#">[/B]%u[B]</a>[/B]</td><td></td><td>%s</td><td>%s</td></tr>",$r[ "Artikelnummer"], $r["Artikelmerk"], $r["Artikelnaam"]); } printf('</table>'); ?> The codes that are printed [B]bold[/B] are the tags that don't work on my website! Why is this and how can i …

Member Avatar for vaultdweller123
0
104
Member Avatar for LaFreak

Hello, I have a problem with styling my background. I want it to be just like this background: [url]http://psd-fan.com/[/url] I don't care how to it, with an image or just a border-style:solid; Both is fine! -> [U]But how do I make sure the background fills up 100% of the users …

Member Avatar for vaultdweller123
0
65
Member Avatar for lws1976

I recently install wprdpress to my website, after all steps done, when I log in it show this error: Parse error: syntax error, unexpected '@' in /home/carsonle/public_html/wp-includes/general-template.php on line 430 After check my general-template.php files line 430 it show this: if ( !empty($cat) ) { Anyone can help me?

Member Avatar for ShawnCplus
0
99
Member Avatar for achiman

Hi, Can anybody please tell me if there is a code in PHP that I can attach to a link and when it is clicked the web page is printed

Member Avatar for achiman
0
119
Member Avatar for Dilbert137

Dear All, I'm searching a code which allow the user to download directly a file from the php web page. Has anyone knows how to do it? It seems to be a simple coding. Regards Dilbert137

Member Avatar for Dilbert137
0
139
Member Avatar for basantxbs

Hi Everybody I want list a categories in a tree structure. like this cat 1 --> cat 1.1 -->cat 1.1.1 --> cat 1.2 cat 2 cat 3 i have a code which show all the category subcategory at a time but i want only those sub-category whoose parent category is …

Member Avatar for diafol
0
116
Member Avatar for rutaba
Member Avatar for moerpheus

hi, how do i get pdf lib to work with php. I want to generate pdf docs. please help.

Member Avatar for moerpheus
0
74
Member Avatar for virspy

Hello Friends, can u please help me in coding of Advance of search iam getting the normal search but not getting the advance search so please help me and please see the site [url]http://www.slinfosolutions.com/Restaurant/[/url] i require the search for this please Thanks in Advance Viru

0
50
Member Avatar for Stefano Mtangoo
Member Avatar for bas_brain

Someone can explain to me why and when we need to reference variables and function. example: function &load_class() { } or $class = &new Class(); I also noticed that some php code vars sometimes appears like this: $_var instead of $var; there is any reason for that.

Member Avatar for harshbavaliya
0
99
Member Avatar for s2xi

Hi, I searched all over the net for a clear solution but what solutions i have found just leave me with more questions and answered. I have a multi step form using IF statements such as: [CODE] if(isset($_POST['2'])) { echo "step2 data"; }else if(isset($_POST['3'])) { echo "step3 data with text/ …

Member Avatar for s2xi
0
105
Member Avatar for cyberoptik

Hi, I'm only familiar w/ phpbb, what are the advantages of Vbulletin? Usually the larger forums use vbulletin, and the smaller forums use phpbb (like mine, heh) just curious what the big deal is. Teach Me @.@ hehe Thanks all. Ron Johnson

Member Avatar for jostevensdd
0
5K
Member Avatar for sassenach

Hi, I have a site which i added mod write to the url. Some of the pages are not opening correctly. For example, the WHIWH login, should open a user & pass field in the page. You can see it is not opening it. [url]http://www.whiwh.com/login/[/url] Also a page like this …

Member Avatar for sassenach
0
646
Member Avatar for sarithak

Hi frnds... i m trying to upload mp3 file ..this is my code.. [QUOTE]upload_max_filesize = 20M;//in php.ini[/QUOTE] [CODE] $tname = $_FILES["tphoto"]["name"]; $ttmp_name = $_FILES["tphoto"]["tmp_name"]; //Audio File Uploading.... if($_FILES['tphoto']['type'] == 'audio/mpeg'){ $dir="../../music/$aid"; move_uploaded_file($ttmp_name,"$dir"."/"."$tname"); } [/CODE] it displays no error...but, no output. can any body give me some suggestion plz... Thanks in …

Member Avatar for abhicool1
0
3K
Member Avatar for Mike516

[code] //declare variables $thing = $_SESSION['username']; // get username from session $name = mysql_real_escape_string($_REQUEST['name']); $pwrd = mysql_real_escape_string($_RQUEST['pass']); //$mpwrd= md5($pwrd); $error = 0; $select = mysql_query("SELECT * FROM users WHERE username='$username'"); $numrows = mysql_num_rows($select); $check = mysql_query("SELECT * FROM users WHERE username='$name'"); $check2= mysql_num_rows($check); //if submitted if (isset($_POST['submit'])){ if(!$name){ $error ++; …

Member Avatar for kireol
0
95
Member Avatar for loll_l

Hi, I have recently designed a website for my new business. I have included a booking form which can be found here [url]www.n-v-m.co.uk/Booking.html[/url] I used Dreamweaver CS4 to create the site and 123-reg.co.uk is my web host As it’s my first attempt at making a website I realise I may …

Member Avatar for harshbavaliya
0
1K
Member Avatar for loll_l

I am trying to go through this tutorial [url]http://www.daniweb.com/tutorials/tutorial173026.html[/url] but when I load a php document in my browser I either get a blank page in the browser or dreamweaver opens the php and gives me a blank page! My web host is [url]www.123-reg.co.uk[/url] ... Will the problem be with …

Member Avatar for loll_l
0
137
Member Avatar for james.jakab

I want to know that is there any best MLM Script/System available for network marketing. Can someone point me to the right direction. Any help will be appreciated.

Member Avatar for vladimir26
0
102
Member Avatar for kripssmart

Hi, I have 2 web pages pg1.php & pg2.php and I am providing a link from pg1.php to pg2.php. I am able to navigate but I can't pass parameters. When the user clicks on the link, I need to pass certain parameters also from pg1.php to pg2.php. I wrote the …

Member Avatar for vaultdweller123
0
91
Member Avatar for nats01282

I am after a text are like the one in the quick reply at the bottem of this page, I have no idea what the propper name is for them I have no idea to do the coding for it, but would like to be able to let my friends …

Member Avatar for kireol
0
94
Member Avatar for Mujahid158

I'm developing a simple instant chatting system. I need to do the following; I want to refresh a different page when I click submit. Suppose, I've the submit button on page1, on clicking submit, the page2 should be refreshed/reloaded. How can I do it? I've searched a lot on Google …

Member Avatar for diafol
0
148

The End.