39,323 Topics

Member Avatar for
Member Avatar for rfrapp

This is the beginnings of a login script that I've been working on, and I can't seem to figure out why I have this error. The error is said to be on line 10. Any help would be appreciated. I've changed the info in the variables used for connection just …

Member Avatar for diafol
0
425
Member Avatar for adityamadhira

Hi I am new to PHP and need a help regarding data controls in PHP. Like grid view? Thanks

Member Avatar for pritaeas
0
288
Member Avatar for deucalion0

Hey guys, I am creating a form that allows a logged in user to enter a new password for their, account, I already have the query set up to update the password, but in my form I have the first input set to take the existing password, which must match …

Member Avatar for diafol
0
130
Member Avatar for javedsai

Hi everyone, I'd uploaded virtual tour from ftp server. Three virtual tour which was uploaded couple of days ago are working fine but, now which I uploaded is not working. Url for your reference :- This are working fine. [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3920[/url] [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3921[/url] [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3922[/url] (is not working) For viewing virtual tour just …

Member Avatar for pritaeas
0
159
Member Avatar for 68thorby68

I have a simple dynamic form with 5 input fields [CODE] <input type=text name=name /> <input type=text name=height /> <input type=text name=length /> <input type=text name=width /> <input type=text name=weight /> [/CODE] If the user needs more than one of the same item they can add additional input fields. [CODE] …

Member Avatar for diafol
0
2K
Member Avatar for cskinittest

<?php session_start(); if(isset($_POST['next'])){ $a=$_POST['a']; } if(!isset($a)){ $a=0; } $q = $_SESSION['q']['a']; include('dbconfiguration.php'); $sql1="SELECT * FROM question WHERE question_id='1' LIMIT 1 OFFSET 0 $q"; $result=mysql_query($sql1); echo $sql1; echo "<form method='post' action=''>"; while ($row = mysql_fetch_array($result)) { echo $row['Question']. "<br/>"; echo "<input type='radio' value='answer1' name='answer'>" .$row['optionone']; echo "<input type='radio' value='answer1' name='answer'>" .$row['optiontwo']; …

Member Avatar for StephNicolaou
0
91
Member Avatar for jonatec

Hi Please take a look at the code section. Does anyone know how to: a) Return JSON from the prepared procedure call instead of me using a while loop and a concatenated string? b) Given the MySQL query returns these columns: ID, DepartmentName how do I access these in my …

Member Avatar for jonatec
0
163
Member Avatar for dr3ex

Hi, I have problem with evaluating XPath with query. When I use this in xpath_tester script: [B]URL: [url]http://www.seznam.cz[/url][/B] [B]XPath: //*[@id='gadget-6']/div/div/h3/span[1][/B] Works fine, but this: [B]URL: [url]http://www.seznam.cz[/url][/B] [B]XPath: //*[@id='gadget-1']/div/div/div/div/table/tbody/tr[1]/td/div/div/strong/a[/B] Result: "ERROR 2: No result!", because there are no items in $nodeList I'm 100% sure XPath is OK. (using XPath checker extension …

0
126
Member Avatar for ethio

Hi all, I am trying to display some data from text file with an array. [CODE]$filename = "comments.txt"; $filepointer = fopen($filename,"r"); $myarray = file ($filename); for ($mycount = 0; $mycount < count($myarray); $mycount++ ) { $aline = $myarray[$mycount]; print $aline ." \n"; } fclose ($filepointer); If (if else statement-checks search …

Member Avatar for ethio
0
118
Member Avatar for eduard77

I am trying to install XML_RSS extension but it seem that something is not working. I was looking over the documentation and it says that I should run some commands in the command line. this one confused me totally. Could anyone help me get this done? Thanks

Member Avatar for eduard77
0
694
Member Avatar for ceeandcee

On days when my site gets a lot of traffic, I get this error message... Warning: mysql_connect() [function.mysql-connect]: User OH_admin already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\ourhometown.ca\httpdocs\includes\all.oh.front.inc.php on line 3 User OH_admin already has more than 'max_user_connections' active connections Can someone point me in the direction in how …

Member Avatar for pritaeas
0
87
Member Avatar for abhishek2301

Hello, I intend to execute a shell script from PHP using shell_exec() in a simple file as follows: [CODE] <?php $result = shell_exec('sh /var/www/script.sh'); echo "<p>$res</p>; ?> [/CODE] This fails to produce any sort of output! I have manually executed the script from the shell of the PHP web-server and …

Member Avatar for pritaeas
0
102
Member Avatar for martin11ph

I am trying out the sample code on: [url]http://www.php.net/manual/en/pdf.examples-basic.php[/url] I get an error that Class PDFLib is not found. Where can I get this class? There seems to be a lot of resources on the web and they just confuse me.

Member Avatar for pritaeas
0
151
Member Avatar for gopi17

helooo.....i'm developing a login page currently...and i'm getting tis particular error...i have look it up on the net, changes were made....but still can't find a solution to this problem...i would be grateful if you guys could help me.. [CODE] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // …

Member Avatar for karthik_ppts
0
68
Member Avatar for Waqas088

Im in final year year of BSCS in fact in final semester I have my php project,it is a Learning Management System. It contains online examination,course registration,gpa estimator, e libaray,forum etc. Im not that much expert in PHP but I know all the general concepts. The problem is that i …

Member Avatar for diafol
0
57
Member Avatar for karthik_ppts

Hi Frendz, How to create family tree chart using php/javascript/jquery? I googled that but :(. If any one know the link then help me..

Member Avatar for subrata_ushasi
0
3K
Member Avatar for Webville312

I intend to maximize the use of space on my web page, so I have decided to use Spry Tabbed Panels. However, problem is that Whenever I submit data on one panel to a mysql database, the second panel submits itself too. I want to deal with the data on …

Member Avatar for Webville312
0
112
Member Avatar for pygmalion

hi i have the following issue. i'd much appreciate someone helping me out here. i'm trying to let a drop-down list (which will be placed, and vary on many pages) with the contents of an array. how can i get that done? plus, once a certain element has been selected, …

Member Avatar for tmks
0
763
Member Avatar for mynameisfish.22

I have this error appearing Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /websites/123reg/LinuxPackage21/th/er/ag/theragereport.co.uk/public_html/feed/feed_view.php on line 148 from this code [CODE]$sql3="SELECT view FROM $tbl_name2 WHERE id='40'"; $result3=mysql_query($sql3); $rows=mysql_fetch_array($sql3); $view=$rows['view']; // if have no counter value set counter = 1 if(empty($view)){ $view=1; $sql4="INSERT INTO $tbl_name(view) VALUES('$view') WHERE …

Member Avatar for karthik_ppts
0
197
Member Avatar for anthonyjpv

Im building a shopping cart for every product that is clicked, i append them to $_SESSION['product_id] and put comma so if producct 1 is clicked, the value of the $_SESSION['product_id] is 1 then if producct 2 is clicked, the value of the $_SESSION['product_id] becomes 1,2 and then I explode the …

Member Avatar for karthik_ppts
0
4K
Member Avatar for bo0ga

Is it possible to write a program that you can put on a webpage where a person fills out a form, and once they submit the form, it gets automatically sent to an external site? For example, I want someone to visit my webpage to review a company. After they …

Member Avatar for zeroliken
0
119
Member Avatar for anthonyjpv

if I use session in a web app can I be assured that every guest who visits the site has a unique session id? and for example I use a rand() to generate and store a $_SESSION['customer_id'] can I be assured that every set of rand() is also unique? say …

Member Avatar for vaultdweller123
0
90
Member Avatar for eduard77

I have some pages in a database and I want to write a program that takes the web addresses from this database, get all the rss feeds and then returns the results in another table. Can anyone gives me some ideas about how to do this?

Member Avatar for diafol
0
95
Member Avatar for xilix

I am trying to start a daemon on a server with Ajax PHP and JQuery. The following code executes without any errors an opens all the html files in separate browser windows like it's supposed to. I receive the alert message . However, the daemon never starts. Can anyone see …

Member Avatar for pritaeas
0
281
Member Avatar for eldes23

i've already searched but i got more confused when new codes appears in my sight again (cuz im just a newbie) So, what I want to is, when the user successfully uploads the image(upload.php), it will be viewed before continuing into the next step (view.php). [B]index.php[/B] [CODE=php] <html> <body bgcolor="black" …

Member Avatar for eldes23
0
212
Member Avatar for refresher

hi, does anyone would help me fixing my code, i got a problem in my search bar, when i want to click the add to cart button of the product searched or the items there's nothing happened, all i want is to add the product search in my cart. hope …

Member Avatar for pritaeas
0
208
Member Avatar for filipgothic

can someone explain me where is problem in this code it need to send this data to database table called anketa [CODE]<html> <head><title>Anketa</title></head> <body> <form action="insert.php" method="post"> Mesna zajednica <select name="mesto"> <option value="donji_grad">Donji Grad</option> <option value="karadjordjev_dud">Karadjordjev Dud</option> <option value="plavinac">Plavinac</option> <option value="seone">Seone</option> <option value="ladna_voda">Ladna Voda</option> <option value="lestar">Lestar</option> <option value="zlatno_brdo">Zlatno Brdo</option> <option …

Member Avatar for filipgothic
0
1K
Member Avatar for Valkyrian

Hi, My products (records) are selected with a number of pages. Then I use navigationbuttons like first | next | previous | last, to the next or the previous. like [CODE]<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>"> <input name="faktura_datum" type="text" id="faktura_datum" value="<? echo $date; ?>" /> First</a></strong></span></span> | <a href="<?php …

Member Avatar for Valkyrian
0
341
Member Avatar for trektrak

Hello.. I would like to know if this is possible. Which I assume YES it is possible. Since I add column (CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP), so I want to pulling the data from mysql table out to html php table filtered by the current time on the machine (computer system). …

Member Avatar for pritaeas
0
52
Member Avatar for emidevil

I really dunno wats wrong here. the firts query works but the second does not . please help... There a these connected files: save.php [CODE]<?php include_once("classes/jewelry/item.class.php"); $inum = $_POST['ItemNo']; $i=new item(); $i->ItemNo = $inum; $i->ItemName= $_POST['ItemName']; $i->CapitalPrice=$_POST['CapitalPrice']; $i->SalePrice=$_POST['SalePrice']; $i->Category=$_POST['Category']; $i->Description=$_POST['Description']; $i->save(); include_once("classes/jewelry/stock.class.php"); $j=new stock(); $j->ItemNo = $inum; $j->NumStored= $_POST['Nload']; $j->NumSold= …

Member Avatar for cossay
0
574

The End.