39,316 Topics

Member Avatar for
Member Avatar for himvj1

Hi, I am new to php. I have copied one php application from one linux server to other linux server after copy application is working fine but the applet to view image in that application is showing two error messages. error is : java.lang.NullPointerException at com.primeleaf.viewer.manager.DocumentManager.setDocument(DocumentManager.java:123) at com.primeleaf.viewer.manager.CommunicationManager.init(CommunicationManager.java:76) at com.primeleaf.viewer.DocumentViewer.init(DocumentViewer.java:67) …

Member Avatar for cereal
0
309
Member Avatar for neha05

Hello everyone here I am making project on bids and offer ,in which payment gateway i need to use is bitcoin ,so any one help me to guide from where i start Thanks

Member Avatar for neha05
0
199
Member Avatar for OsaMasw

I have single input to be enterded into database I want to use ajax to do this The problem that I already have form to do something else so I can't put from inside form how can I achive somthing like this without touching the original form ![ssss](/attachments/large/3/ssss.jpg "ssss") when …

Member Avatar for OsaMasw
0
208
Member Avatar for Dani

Currently, to check if something is serialized, I do this: function is_serialized($data) { return (@unserialize($data) !== false); } But it issues an E_NOTICE. The @ is great to suppress output, but it's still clogging up every other line of my error log (which is purposefully enabled for notices). Are there …

Member Avatar for IIM
0
4K
Member Avatar for AARTI SHRIVAS

give all of the movie name you have watched and lets who have long list of movies so the game is start logn list win the game

Member Avatar for neha05
-1
219
Member Avatar for skitband

here's my canned.php <?php $conn=odbc_connect('firebird','SYSDBA','masterkey'); if (!$conn) {exit("Connection Failed: " . $conn);} $sql="SELECT * FROM CANNED"; $rs=odbc_exec($conn,$sql); if (!$rs) {exit("Error in SQL");} echo "<table class='tbcanned' cellpadding='5' cellspacing='5'><tr>"; echo "<th>PRODUCT</th>"; echo "<th>QUANTITY</th>"; echo "<th>PRICE</th>"; echo "<th>DESCRIPTION</th>"; echo "<th>ADD TO CART</th></tr>"; $i=1; while (odbc_fetch_row($rs)) { $id=odbc_result($rs,"ID"); $name=odbc_result($rs,"NAME"); $quantity=odbc_result($rs,"QUANTITY"); $price=odbc_result($rs,"PRICE"); $description=odbc_result($rs,"DESCRIPTION"); echo "<tr><td …

Member Avatar for LastMitch
0
179
Member Avatar for ahudson

I am having trouble with a registration script that I am trying to implement. When I click the "Register" button, I get this error: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens This is my coding for the register function: `public function register() { …

Member Avatar for JorgeM
0
212
Member Avatar for daniel36

I am first time using like in mysql .but it is giving error.my query with like is $user_query="SELECT * FROM rt_user WHERE rt_user_username LIKE %".$_GET['term']."% OR rt_user_name LIKE %".$_GET['term']."% OR rt_user_description LIKE %".$_GET['term']."% LIMIT 10"; it is giving syntax error.

Member Avatar for dcdruck
0
186
Member Avatar for disha2612_1

I have a my URL as : www.domain.com/controller/login.php And i want to make it look it like: www.domain.com/jobtracker Please help, i have researched lots of links as i am new to this topic, but did not found appropriate solution yet.. It gives me 500 internal server error My .htacess file …

Member Avatar for migcosta
0
330
Member Avatar for Buppy

Hello, It has come to my needs to gather more information about load balancing process and stuff related. So far it's clear that users are distributed to multiple servers depending un their current load and they all run the same app. My question is - how these multiple servers share …

Member Avatar for LastMitch
0
173
Member Avatar for code739

help me find out what's wrong with this code i got stuck with this error > ldap_search Search: Operations error <?php error_reporting(E_ALL); ini_set('display_errors', 'On'); $ADServer = 'sample.example.net'; $loginto = 'Aboitiz'; $uname = $_POST['uname']; $passwd = $_POST['pass']; $ldapconn = ldap_connect($ADServer) or die("Could not connect to LDAP server."); $ldaprdn = $loginto."\\".$uname; $ldapbind …

Member Avatar for LastMitch
0
2K
Member Avatar for lewashby

I'M trying to learn PHP (note that I am using Linux) and I'M having trouble keeping the /var/www directory clean. Since that is the directory that apache will host the files from, how can you keep that directory organized with and for multiple web projects or practive assignments from differenct …

Member Avatar for migcosta
0
89
Member Avatar for kiLLer.zoh_1

<?php function autogen() { $qr="Select * from autogen where gid = 1"; $we=mysql_query($qr)or die(mysql_error()); while($brec=mysql_fetch_array($we)) { $ln=$brec['autoln']; } $lw= ++$ln; return $lw; } $newlead=autogen(); $qry="Select * from leads"; $r=mysql_query($qry) or die(mysql_error()); while($re=mysql_fetch_array($r)) { if($rec['leadno']==$newlead) { ++$newlead; } } $er="UPDATE autogen SET autoln='$newlead'WHERE gid =1"; $bn=mysql_query($er)or die(mysql_error()); ?> This Code generates …

Member Avatar for broj1
0
112
Member Avatar for eltonpiko

hi ive got a script that need to upload a photo for an item and display it.but the photo does not show up i get corrupted file instead here is the scrip for the upload part can someone tell me what is going wrong. the photo needs to be save …

Member Avatar for eltonpiko
0
169
Member Avatar for CreatorZeus

My while keeps looping and i dont know why: code <?php $result = mysql_query("SELECT * FROM tag WHERE point='$pagename'"); while($row = mysql_fetch_array($result)) { $result = mysql_query("SELECT * FROM tag WHERE point='$pagename'"); //username echo $row["user"] . " ||"; //alias check $result = mysql_query("SELECT * FROM tag WHERE (user='$my_name' && point='$pagename')"); if …

Member Avatar for IIM
0
188
Member Avatar for sharmilli

function compile() { $a=shell_exec('gcc -o Compile Compile.c'); echo $a; $b=shell_exec('./Compile'); echo $b; } I tried to call the above compile function from the directory /var/www/. I could get the result by manual execution of gcc command but i could not create an executable file by running the same command from …

Member Avatar for vars
0
926
Member Avatar for Limiter

Hi guys, I am a little new to this stuff but have done a few research regarding PHP. Currently, I am trying to learn PHP to allow a web portal to interact with data stored on MySQL database. In other words, lets say I have a website that displays information …

Member Avatar for davy_yg
0
236
Member Avatar for GraficRegret

I need to convert the `UNIX_TIMESTAMP()` output into a readable date and time for output in a table. Anyone know how to do this? or am I in the wrong area again?

Member Avatar for GraficRegret
0
220
Member Avatar for thilini_l
Member Avatar for diafol
0
317
Member Avatar for Trle94

Hello everyone, i need small help since im stuck, and im not that good with php and vB.net connections... So here is the problem, i manage to get connected to db and php script shows me if im connected or not, grab if user/pw is correct everything works fine, but …

Member Avatar for Trle94
0
2K
Member Avatar for pascal.petitlionceau

i tried to display a common menu in php using php code please try to help me i'm blocked .

Member Avatar for IIM
0
91
Member Avatar for wuzere.crewzz

Example of my record : year quanitity name 2012 10 john 2012 20 mark 2013 30 david 2013 40 alex 2014 50 stacy while (!$report->EOF){ if(is_null($year) || $year <> $report->fields['year']) { $year = $report->fields['year']; ?> <tr><td align="center" colspan="2" >Year : </td><td><?=$year ?></td></tr> <? } ?> <tr><td align="center" colspan="2" >Quantity : …

Member Avatar for IIM
0
162
Member Avatar for jLamp

Dear Friends, Help me to fix this.. Error Message : **mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in** Code is, <?php $database=$diocese; $table=$category; //capture search term and remove spaces at its both ends if the is any $searchTerm = trim($_GET['query']); //check whether the name parsed is empty if($searchTerm …

Member Avatar for pritaeas
0
17K
Member Avatar for dinhunzvi

i have a table with the following structure CREATE TABLE IF NOT EXISTS `test_check` ( `id` int(4) NOT NULL AUTO_INCREMENT, `name` varchar(65) NOT NULL DEFAULT '', `lastname` varchar(65) NOT NULL DEFAULT '', `email` varchar(65) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; i have a …

Member Avatar for broj1
0
1K
Member Avatar for daniel36

i want to compare dates stored in database in the format yyyy-mm-dd by changing it in unixtimestamp in the mysql query.for this my query is $bquery="SELECT * FROM rt_booking WHERE rt_unit_id='".$_POST['unit_id']."' AND (SELECT UNIX_TIMESTAMP(str_to_date(rt_start_date,'%Y-%m-%d'))>=".$my11." OR SELECT UNIX_TIMESTAMP(str_to_date(rt_end_date,'%Y-%m-%d'))<=".$my22.")"; but it is giving syntax error.

Member Avatar for daniel36
0
138
Member Avatar for matildacheng

Hi there, Hope someone can help me on this. I really need help. I have a javascript for a rotating image, whereby a total of 10 images will change automatically in every 3 seconds. It works well in a .html page, however it doesn't work in a .php page. In …

Member Avatar for matildacheng
0
567
Member Avatar for zoreli

Hi everyone What I am trying to do: I am trying to rewrite my urls in seo frendly url. For that purpose I create the following table in my database: CREATE TABLE `seourls` ( `path` varchar(255) NOT NULL, `url` varchar(255) NOT NULL, PRIMARY KEY (`path`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- …

Member Avatar for Squidge
0
553
Member Avatar for baheer

I have the following Code: I also tried also to use foreach Loop but it doesn't work. Any one can help me please: [CODE] ############### Code <?php include("config.php"); $sql="SELECT * FROM news"; $result=mysql_query($sql); $count=mysql_num_rows($result); ?> <table width="400" border="0" cellspacing="1" cellpadding="0"> <tr> <td><form name="form1" method="post" action=""> <table width="400" border="0" cellpadding="3" cellspacing="1" …

Member Avatar for menelik
0
849
Member Avatar for Samyx

Hello Everyone, I am trying to display a graph, but it is not working. I see that the variables is getting the correct value, so maybe the addSeries is not recognizing the variables. Can anyone help me? See the code below: <!DOCTYPE html> <html > <head> <?php //connect to database …

Member Avatar for Samyx
0
188
Member Avatar for rubai

I am new to php, just made a simple calculator. when I don't select the radio buttons; a notice come up. Notice: Undefined index: r in E:\MY LOCAL SERVER\htdocs\php practise\calculator-form-advanced.php on line 59 Also I want show results in this input section <p> <label for="result">Result</label> <input type="text" value="" /> </p> …

Member Avatar for dinhunzvi
0
521

The End.