39,402 Topics

Member Avatar for
Member Avatar for jakizak

Does anyone see an issue with the following IF statement... I sure can't yet it doesn't work! VARIABLES: $CHECK = A returned value from the database either "y" or "n", the value is returned successfully so I know that is not the issue here. There is no error message returned, …

Member Avatar for almostbob
0
179
Member Avatar for dhruv_arora

I had setup some submission form using Joomla and a CCK component "Zoo", when i click for the form, i get this error : [CODE]Fatal error: Call to a member function getItem() on a non-object in /home/content/b/o/o/boomshiva/html/tafconnect/bazaar/media/zoo/applications/business/templates/default/renderer/item/submission.php on line 15[/CODE] Can anyone help me with that The contents of the …

Member Avatar for diafol
0
155
Member Avatar for zacharysr

im wanting to make a 'pop up' form, kinda like facebook does when you delete your history and cookies and it tells you you need to sign back in, or when you click on a music link and it pops up the form, but it not a new window, its …

Member Avatar for pritaeas
0
103
Member Avatar for KJThaDon

[url]http://lcdforvideo.com/josh/[/url] I am trying to add additional input fields to the fields Features, Includes, and both rows under Specifications. I would like them to post to the next page when you submit. I have got all of the other ones working but I cannot figure out how to get additional …

Member Avatar for pritaeas
0
93
Member Avatar for vijayram

Hi everybody, I make a social media website.user having event for todays date. pageloading time automaticaly dispaly that event.how to create.another date event click the date display

0
63
Member Avatar for trektrak

Hello guys, Is it possible to convert html page into image using php? Thanks in advance guys...

Member Avatar for jyothirpatil
0
67
Member Avatar for patishere

It always receive undefined. I'm almost two week working on this code. BTW the code is based on the tutorial on this site [url]http://active.tutsplus.com/tutorials/actionscript/create-a-flash-login-system-using-php-and-mysql-part-1/[/url] I modified it. Any help? PHP CODE: [code]<?php include_once "connect.php"; session_start(); $username = $_POST['username']; if ($_POST["sysCall"] == "checkLogin") { /* The * means the query initally …

0
116
Member Avatar for mln_ndh

Hi, It always stated that 'No Database Selected'. Really need your help. Thanks :) This is the coding [CODE]<?php require('include/config.php'); $conn = mysql_connect($db_host, $db_user, $db_pwd); mysql_select_db($db,$conn); $sql = " SELECT * FROM hod_approval WHERE hod_approval='2' "; $result = mysql_query($sql) or die (mysql_error()); [/CODE] Here's my config.php [CODE]<?php $db = 'TADMS'; …

Member Avatar for mohamedasif18
0
181
Member Avatar for Que336

I have been trying to follow this google maps API tutorial. [url]http://code.google.com/apis/maps/articles/phpsqlajax.html[/url] The problem is i keep getting this error and I don't know what I'm doing wrong. Here is my code. [CODE]<?php require("phpsqlajax_dbinfo.php"); function parseToXML($htmlStr) { $xmlStr=str_replace('<','&lt;',$htmlStr); $xmlStr=str_replace('>','&gt;',$xmlStr); $xmlStr=str_replace('"','&quot;',$xmlStr); $xmlStr=str_replace("'",'&apos;',$xmlStr); $xmlStr=str_replace("&",'&amp;',$xmlStr); return $xmlStr; } // Opens a connection to …

Member Avatar for HITMANOF44th
0
240
Member Avatar for vijayram

Hi Everybody, I need help for mouse Over event. I make the following code for click event this is ok.and the event mouse over that time display inside the calender node. very urgent please help me. $(".calendar-node").click(function() { if ($(this).attr('date')) { $.ajax({ url: $("#url_view_schedule").val(), data: "personalId="+$("#personal_id").val()+"&date="+$(this).attr("date"), dataType: "json", success: function(list) …

0
104
Member Avatar for unikorndesigns

hey fellow PHP developer, Is there any way we could protect our PHP source code from being modified after a 3rd person receives the code? I had developed a web application and when i give the source code to another person i want it to be write protected. Currently i …

Member Avatar for edwinhermann
0
932
Member Avatar for kkasp

Hi everyone! This problem has me stumped. I haven't had to work with php for about a year and I have sure gotten rusty. I have created my array, but beyond that was just doodling ideas to try and put something together...can you offer advice? Here is the problem I …

Member Avatar for diafol
0
187
Member Avatar for issaru07

the output of my page is correct yet it shows Notice: Undefined variable: total in D:\xampp\htdocs\book\includes\functions.inc.php on line 36 is there any ways to resolve this? thanks [CODE] <?php function writeShoppingCart() { $cart = $_SESSION['cart']; if (!$cart) { return '<p>You have no items in your shopping cart</p>'; } else { …

Member Avatar for cereal
0
366
Member Avatar for masterjiraya

I found a way on how to code the backup for mysql database table. but I was wondering on how PMA(PHPMyAdmin) does this scenario on backing up the sql file. the one that has AUTOMATIC download to your machine. this is the simple syntax I made myself [CODE=PHP]<?php /*TOOLS YOU …

Member Avatar for pritaeas
0
187
Member Avatar for AaronLLF

I accidentally overwrote one file (for example, file A) onto another (for example, file B), so I had to rewrite file B (Which wasn't hard, it was a pretty short file. Now, PHP is giving me an error that I never had before, saying that all of my functions (which …

Member Avatar for pritaeas
0
79
Member Avatar for KJThaDon

I am trying to make a conditional to only show the Div and contents inside the div/ul if the first input "Features01" has some input. Any help is appreciated! Thank you! [CODE] <?php if (isset($_POST['Features01'])){echo "<div><h3>Features</h3><div><ul><li>$Features01</li>";}?> <?php if (isset($_POST['Features02'])){echo "<li>$Features02</li>";}?> <?php if (isset($_POST['Features03'])){echo "<li>$Features03</li>";}?> <?php if (isset($_POST['Features04'])){echo "<li>$Features04</li>";}?> <?php if …

Member Avatar for pritaeas
0
110
Member Avatar for mandy011

Hi all, I am developing a search engine as project in PHP and MySQL as backend . I have implemented crawler , now i am facing problems in searcher . When a user enters any query by default i want to accept it as OR Query i.e. I want to …

Member Avatar for mandy011
0
163
Member Avatar for rfrapp

I'm making a website, and my index is a php file, whereas the other 6 pages are html. Whenever I click on the "Home" button, it says that it can't find index.html, but that's obvious because it's called index.php. Any way to fix this? If I'm being too vague, then …

Member Avatar for rfrapp
0
306
Member Avatar for 21122012

It is supposed to show up details of a room selected, but the first record in database is always displayed. The link is incorrect too.. http://test/action/roomDetail.php?roomID= The value is missed... ROOM: <table border="0"> <tr> <td> <p> <label for="room">選擇房間</label> <select name="roomID"> <?php do { printf('<option value="%s">%s</option>', $row_rsRoom['roomID'], $row_rsRoom['roomID']); } while ($row_rsRoom …

Member Avatar for Zagga
0
116
Member Avatar for richboy

Hello guys, i am new to PHP and finding it interesting difficult at the same time. I need to connect to an access database depending on the selected menus in the drop down box and printing the selected field in a table. Here is my code [code=php]<?php $ch1 = 'unchecked'; …

Member Avatar for diafol
0
140
Member Avatar for 4cpukid

Hi everyone, I was wondering if their is a way in PHP to take a full URL but in the background it is actually a PHP case. Here's what I mean.... When a user clicks on a link that goes to /About-Us/Staff/NAME I want the index file in Staff to …

Member Avatar for blocblue
0
143
Member Avatar for PixelatedKarma

Hey guys and gals, I have a question that is bugging me because I can't seem to figure out how different php based applications achieve it (curiosity killed the cat right). My question is this, how does forum/cms/etc software utilize functions in their templates without using php code to wrap …

Member Avatar for diafol
0
89
Member Avatar for danielbala

hi.. This is form validation code..im getting errors.. 1. I have to check whether all the field r empty and for certificates,photo,biodata field shud be validated for type,size,whether field is empty.. 2. how to validate the datepicker i used javascript <?php session_start(); if(isset($_POST['Role'],$_POST['Name'],$_POST['datepicker'],$_POST['gender'],$_POST['activity'],$_POST['Address'],$_POST['Photo'],$_POST['Biodata']$_POST['certificates'],$_POST['Salary'])) { $errors=array(); $Emp_Save=$_POST['Emp_Save']; $Emp_Cancel=$_POST['Emp_Cancel']; $Role=$_POST['Role']; $Name=$_POST['Name']; $datepicker=$_POST['datepicker']; …

Member Avatar for danielbala
0
360
Member Avatar for 21122012

[CODE]<? session_start(); if(!session_is_registered(myusername)){ header("location:../index.php"); } ?> <?php require_once('../config/conn.php'); $sql="SELECT * FROM roomBooking ORDER BY roomID ASC"; $rs=mysql_query($sql,$conn); $row_rs = mysql_fetch_assoc($rs); $count=mysql_num_rows($rs); ?><!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>組長控制中心</title> <link href="../css/master.css" rel="stylesheet" type="text/css" media="screen"> </head> <body> <header> <h1>組長控制中心</h1> </header> <nav> <ul> <li><a href="g_home.php">主頁</a></li> <li class="selected"><a href="BookingManagement.php">房間資源</a></li> </ul> </nav> <div id="content"> <div …

Member Avatar for masterjiraya
0
187
Member Avatar for PF2G

Hi, i'm doing a validation of registration form, and i'm checking if there's the same username and email: [CODE]$query_verify_email = "SELECT * FROM alunos WHERE username ='".$username."' AND email_aluno='".$email."'"; $result_verify_email = mysql_query($query_verify_user, $connect); //if the Query Failed ,similar to if($result_verify_email==false) if (!$result_verify_email)[/CODE] How do i do both checks separated? Does …

Member Avatar for masterjiraya
0
152
Member Avatar for Octet

I have the following PHP: [CODE]<?php define('DB_NAME', 'database'); define('DB_USER', 'root'); define('DB_PASSWORD', 'password'); define('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!link){ die('Could not connect to database'); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Could not connect to the database'); } $value = htmlspecialchars($_POST['Name']); $value2 = htmlspecialchars($_POST['Email']); $value3 = htmlspecialchars($_POST['Subject']); …

Member Avatar for Octet
0
163
Member Avatar for theprofoundgeek

Hello Guys! I have just inherited a huge mammoth php project, which is not quite organised. Few of the files are of 25K+ php lines of code. Several sections of code are redundant across the project. Several files are imported into several files... My job is to strip many of …

Member Avatar for pritaeas
0
228
Member Avatar for lastgame2007

help, i cant update my image i cant use session because,its admin who is providing the profile of the student, kindly take a look, what went wrong! [CODE] <?php $pic= $_FILES["piksur"]["name"]; if(isset($_POST['submit'])) { mysql_query("update students set idno='$_POST[id]', year='$_POST[year]', lastname='$_POST[lname]', firstname='$_POST[fname]', middlename='$_POST[mname]', birthplace='$_POST[bplace]', birthdate='$_POST[bdate]', religion='$_POST[religion]', studentcontact='$_POST[scontact]', studentaddress='$_POST[saddress]', father='$_POST[father]', fathercontact='$_POST[fatcon]', mother='$_POST[mother]', mothercontact='$_POST[motcon]', …

0
74
Member Avatar for Galbatorix

hi guys, i have a database which has employee records for a hrms system. i would like to be able to print payslips of all employees without having to open every record and use the javascript window.print() function. Please help

Member Avatar for diafol
0
159
Member Avatar for robertj17

I need some help on why I cant get these numbers to show from the array when i Run it [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="Revised by josephr10"/> </head> <body> <?php $RatesArray = array(.0525;,.0550;, .0575;, …

Member Avatar for diafol
0
154
Member Avatar for scorpionz

Hi This Is ScorpionZ I have an Image Gallery and have a PHP code toooo,,,,I Wana know How to Enlarge image when my mouse Over Image Here is the Code: [code=html]<html> <head> </head> <body> <table class="details-box-products" width="511" border="1"> <tr> <td width="213" rowspan="4" bgcolor="#EFEFE9" align="center"> <strong><a href="#"><img src="./uploaded_images/<?php echo $prod_up_img; ?>" …

Member Avatar for eidshow1
-1
2K
Member Avatar for Maxamus53
Member Avatar for morrisproject

I am trying to get a searched date from one page to appear on another page, i have this code on one page so the user can search for a specific date: [CODE]<?php if(!empty($_POST['searchdate'])) { $mydate = $_POST['searchdate']; } else { $mydate = date('Y-m-d'); } $id = $_POST['id']; if(empty($id) && …

Member Avatar for morrisproject
0
316
Member Avatar for navi17

Hello, I have embed swf file on following page. [url]http://jackdalysalescommunity.com/successful-registration/[/url] Pls check the video. Video is cut off. I have tried all the ways to make it stretch. Also tried Scale parameter but that also not working. Can anyone suggest me what is the best way to stretch the swf …

Member Avatar for tiggsy
0
157
Member Avatar for Octet

I am currently using MySQL so people can send my a message that shall be stored in the database. The only issue is I have no idea how to protect against SQL Injection, below is my HTML: [CODE]<form action="Action.php" method="POST" /> <p>Name: <input type="text" name="Name" /> </p> <p>Comment: <input type="text" …

Member Avatar for diafol
0
156
Member Avatar for polinolin

I have 3 picture on my home.php. i want to make the encrypt when the picture on the click. so the database content of encrypt of 3 picture's id. anyone can give me advice or example? i want to use md5 encrypt. thanks

Member Avatar for coolest_987
0
90
Member Avatar for subrata_ushasi

Hi, I installed wamp server and oracle 9i ,both are running . Oracle having user id,password and host string , using these how can I connect to retrieve data from Oracle ? thanks in advance , very urgent Subrata

Member Avatar for coolest_987
0
111
Member Avatar for masterjiraya

My PHP Session Log-in and log-out works fine but this is the problem I have a site consists of admin folder and outside the admin folder are the customer page files. both of them has sessions for log-in and log-out purposes but it acts so WEIRD because if I'm running …

Member Avatar for masterjiraya
0
290
Member Avatar for cambraydesign

I have an RSS feed that is called using javascript. What I would like to happen is that the information gets displayed as html when you view source instead of the javascript. Here's the javascript: [CODE] <script type="text/javascript" onload="$('div.rssBody').vTicker();"> $(document).ready(function () { $('#ticker1').rssfeed('http://feeds.bbc.co.uk/iplayer/highlights/tv',{}, function(e) { $(e).find('.homepageupdates').vTicker(); }); }); </script> <div …

Member Avatar for cambraydesign
0
239
Member Avatar for HB25

Hi I am using the fallowing code to give some information back to the user after running some queries. The information will be displayed in row only. [Code] $result1 = mysql_query("SELECT * FROM bookings WHERE bookingID='$last_insert_booking_id'"); echo "<table border='1'> <tr> <th>ID</th> <th>Firstname</th> <th>Lastname</th> <th>address1</th> <th>address2</th> <th>town</th> <th>postcode</th> <th>telephone</th> <th>email</th> <th>Arrival</th> …

Member Avatar for minilik
0
3K
Member Avatar for jonatec

Hi Please take a look at my code snippet. Works fine, however I don't know how to get the number of rows returned so that I can handle it accordingly. Any ideas please? [CODE] <?php require ('mysqli_connect.php'); // Connect to the Db. $sql = "CALL customers_for_rep(?, ?)"; $stmt = $dbc->prepare($sql); …

0
41
Member Avatar for danielbala

Hi.. this is code to display the datas from db to web page .. im not getting the outputphp,mysql <?php $host="localhost"; $username=""; $db_name="dbname"; . mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $query="SELECT * FROM database"; $result=mysql_query($query); $num=mysql_num_rows($result); mysql_close(); echo "<b><center>List Of Employees</center></b><br><br>"; $i=0; while ($i < $num) { …

Member Avatar for pritaeas
0
134
Member Avatar for vijayram

Hi everyone, how to create slideshow, user click album .all album picture display slideshow.

Member Avatar for WorksForWeb
0
80
Member Avatar for degroundshaker

I am working on a website where I have 2 php pages. 1st page: addfb.php 2nd page: fbadded.php Now, "addfb.php" contains a form with a text field and a submitt button with form action method set to "fbadded.php" Now whenever I click submit button on addfb.php, instead of going to …

Member Avatar for pzuurveen
0
333
Member Avatar for aldm

Hi, I'm trying to use Zen_Service_Amazon api but I have a problem. When I try to run this code on localhost: [CODE] <?php require_once 'Amazon.php'; //i've gor api key and secret key from my aws account $amazon = new Zend_Service_Amazon($api_key, 'US', $secret_key); $results = $amazon->itemSearch(array( 'SearchIndex' => 'Books', 'Keywords' => …

Member Avatar for pzuurveen
0
401
Member Avatar for tarunfuture

Hello Friends i ahve a drop down in which all the values are coming from the database now i have used ajax and jquery for getting the sub categories in another dropdown and its working fine but the problem is when i am using the name of the select box …

Member Avatar for tarunfuture
0
158
Member Avatar for scottymex

I keep getting this error from a working script since using Mysql 5.1 This data from the formshould go to the database with table called users and also sendconfirmation email with the details on using regmail. This works on other site but have to use 5.1 for this site and …

Member Avatar for diafol
0
140
Member Avatar for ebadi

Hi everyone: I am new with PHP, though I can do simple coding in PHP. I would like to create category section in the main page, as in some website you see as follows: Category-1 (20) Category-2 (13) Category-3 (5) 1- I want to use the similar technique, counting files …

Member Avatar for diafol
0
1K
Member Avatar for aiioef

hello~ i just join in this discussion ....er i am Chinese,so my English is poor i search this problem in Google,but i can't find some useful information some people said PHP version cause this problem... i use PHP 5.3.3 but i saw PHP 5.2.1 books [CODE]<html> <title> test </title> <body> …

Member Avatar for mohamedasif18
0
2K
Member Avatar for erik216

I have just download the class "MC_TABLE" I put mc_table.php and ex.php into folder there have fpdf.php I can run script to generate pdf file in this folder But I cannot use MC_TABLE class it says Call to undefined method PDF_MC_Table::MultiCell() I don't know what problem?

Member Avatar for erik216
0
309

The End.