39,323 Topics

Member Avatar for
Member Avatar for eburlea

Hi all. For 3 days I have searched the web to find out how it works, unfortunatelly with no success. I need to compare the encrypted haptcha code with my text, both of them sent by a form. if(!isset($_POST['my_text'])) { $view = new Zend_View(); $captcha = new Zend_Captcha_Figlet(array( 'name' => …

Member Avatar for eburlea
0
166
Member Avatar for Venter

> QuoCAtted Text Here Actually I'm passing connection Parameters by calling class Connection.Here what i cant understood is what is the way for passing the value in $link(which can declare as protected).when i want to use this connect class in other page how can i use this class. <?php class …

Member Avatar for pritaeas
0
844
Member Avatar for janskey15

<?php session_start(); include "dbConfig.php"; if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page // Header("Location: login.php"); } echo "<p>User ID: " . $_SESSION["valid_id"]; echo "<p>Username: " . $_SESSION["valid_user"]; $sql = "SELECT tbl_subject.SubjectID, tbl_subject.SubjectDesc, studentsubjectgrade.Finals FROM tbl_subject INNER JOIN studentsubjectgrade ON tbl_subject.SubjectID=studentsubjectgrade.SubjectID INNER JOIN academicyr ON studentsubjectgrade.SubjectID=academicyr.SubjectID WHERE …

Member Avatar for LastMitch
0
1K
Member Avatar for rahim92

This my error massage : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\test\loginproc.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\loginproc.php:16) in C:\xampp\htdocs\test\loginproc.php on line 24 ======================================================================================================== <?php require_once('Connections/kgcrmis.php'); ?> <?php // Inialize session session_start(); // Retrieve …

Member Avatar for TonyG_cyprus
0
161
Member Avatar for TonyG_cyprus

Ok, so this is driving me nuts, because I can't see why it's happening. Simple code: <html> <head> <meta name='author' content='TonyG' /> <meta name='description' content='' /> <meta name='keywords' content='' /> <title></title> <link rel='stylesheet' type='text/css' href='css/style.css' media='all'/> <link rel='shortcut icon' href='favicon.ico'> </head> <body><div class='container'> <div class='header'></div> <div class='content'> <div class='navi'> <ul …

Member Avatar for TonyG_cyprus
0
139
Member Avatar for mehnihma

I have this code: $status_kol=trim($v->Status); $mojakolicina = "Raspoloživo"; if($status_kol=="Raspoloživo"){ $status_dobavljivosti=2; } else { $status_dobavljivosti=0; } echo "OVO JE ZA dostupnost : $status_dobavljivosti <br/>\n"; But i alway get 0 And I get 3 when status_kol is not "Raspoloživo"? Can you help me with this? Thans

Member Avatar for diafol
0
162
Member Avatar for bradly.spicer

Hey, I've been messing around with SQL And PHP recently and I've come into another problem which has blown all logic out for me. I have this form: System Type <select name="systype"> <option value="systype1">type1</option> <option value="systype2">type2</option> <option value="systype3">type3</option> <option value="systype4">type4</option> <option value="none" selected="selected">None</option> </select><br> This form will send whatever is …

Member Avatar for bradly.spicer
0
129
Member Avatar for jahidshumon

i know something about php.but i cant know how to start my work in php.pls help me...

Member Avatar for veedeoo
0
220
Member Avatar for soapyillusion

Hello all, I'm working with a currently existing custom page bookmarking tool for an application. The application records the last 5 pages viewed and the allows the user to save 5 bookmarks at anytime. And this function works fine. However we have a specific web page that is used for …

Member Avatar for soapyillusion
0
153
Member Avatar for VenusCrystal

Hi, I have ajax call in my script which calls php file. I need to extract its response in two parts to add it on my page to different components each. For example, say I have these two echo statements in my php: echo "<option> add to list1 </option>"; echo …

Member Avatar for diafol
0
2K
Member Avatar for GraficRegret

I have aske this once before with different peramiters and im not sure how to adjust the code to suit what I need it to do so once more here is the code <?php include 'conection.php'; $result = mysql_query("SELECT * FROM inventory") or die(mysql_error()); echo "<table border = '1'>"; echo …

Member Avatar for GraficRegret
0
154
Member Avatar for daniel36
Member Avatar for abeer.rao

hi, i am creating a php based image gallery, after long search on google i found a good decent code for it. but when i change the opendir() location in code, the thumbnail image shows blank image instead of orignal image! here is the code! <?php # SETTINGS $max_width = …

Member Avatar for Webville312
0
244
Member Avatar for siddharth.dixit.5243

Write a php program for Currency conversion. Input Currency name, Value of Input Currency, Output Currency Name Output Currency Value. 1 dollar=50 Rupee 1 Pound= 1.5 dollar 1 Pound= 80 Rupee

Member Avatar for gon1387
0
185
Member Avatar for abeer.rao

i am creating a image gallery that uses different pages. i use simple html menu to link those pages but it was not redirecting to their orinal location. <ul> <li class="menu"><a href="new/index.php">Aww</a></li>; <li class="menu"><a href="mew1/index.php">Hot</a></li>; <li class="menu"><a href="new2/index.php">Chicks</a></li>; </ul> i have no clue that what to do!!

Member Avatar for Webville312
0
164
Member Avatar for subrata_ushasi

Hi , I have return type object is "$answer" and I am getting the output by ussing "echo $answer"; is : array 'AnswerId' => int 1 'Comment' => string 'The license is found.OK' 'LicenseInt' => array 'LicenseID' => string 'L005673’. 'Prod_ID' => int 5644 'LicenseDate' => object(DateTime)[35] public 'date' => …

Member Avatar for subrata_ushasi
0
206
Member Avatar for unikorndesigns

Hello guys, i'll try to explain the problem i am facing here. I had searched for many file uploaders with drag and drop interface. I came across something at http://demos.9lessons.info/multiupload/index.php called the multiuploader. I saw the code and it was a bit of nightmare to me as am not so …

Member Avatar for unikorndesigns
0
427
Member Avatar for bangla

Hi, Would you please help me how to store a value from java script into php variable? <SCRIPT language="JavaScript"> var q1=Math.floor(Math.random()*11) <? php $q1v = q1 ; ?> </SCRIPT> echo $q1v

Member Avatar for bangla
0
81
Member Avatar for GraficRegret

I would like to know if there is a way to change an uploaded files dimentions to a specified dimention and make the size of the file adhere to a specified size, I have a person uploading huge files after being told to make them smaller, this guy refuses to …

Member Avatar for GraficRegret
0
218
Member Avatar for simplypixie

This is driving me mad. I am using jquery and ajax to run the php to update my database and that all works fine, but after the update (specifically adding records) I want to re-run the query to get all records so that the new one is displayed but nothing …

Member Avatar for diafol
0
1K
Member Avatar for jonsan32

I have a basketball league with over 100 teams, and I'm trying to organize the look and feel of the schedule, standings, and gym locations for the coaches, players, and parents to view on my website. I'm wondering how I could apply something like the code I posetd below, but …

Member Avatar for diafol
0
213
Member Avatar for fiona.mcburney

Hi there. I'm trying to wrap my brain around something that is probably really simple - once you know how. I want to print the name of each park, only once, along with a list of its features. I have the following SQL query... $query = 'SELECT id, name, feat_name …

Member Avatar for diafol
0
131
Member Avatar for garyjohnson

Okay what I am trying to do might be hard to understand, but I will give it my best shot. I have created a script which selects data randomly from a table called albumname in a databse called characters. This array is then used again in a mysql_query to select …

Member Avatar for diafol
0
232
Member Avatar for azgold472

This is what im trying to do. I qwery the database for 7 events and im attempting to do a rotating banner with link and a caption. However being new to this php coding im having issues with my echo statements. The title Tag is my caption. Im attempting to …

Member Avatar for diafol
0
160
Member Avatar for raju_boini525

hi all, i am redirecting [url]http://test.asia/[/url] to [url]http://test.com.au/asia/[/url] folder. but my problem is i don't want to show [url]http://test.com.au/asia/[/url] in address bar. i want to display [url]http://test.asia/[/url] instead of [url]http://test.com.au/asia/[/url]. i tried this using iframes and cloning but query strings are not showing . anyone have any idea please help …

Member Avatar for logu2win
0
780
Member Avatar for amith_ami

hi..all.. im a newbie to wordpress im using beauty spa theme... but it doesn't support the plugins.. and it also adding the characters like "#!" in the url when i click on the links. when i removed custom.js from the footer.php the plugins working fine but other functions not working …

Member Avatar for veedeoo
0
190
Member Avatar for 03hasnam

I used the folowing website towards the end of the website http://zetcode.com/databases/sqlitephptutorial/ to make a connection to the sqlite database using PHP. Working on netbeans and have imported the appropriate driver and jar files however clicking submit on html is not doing the job and simply prints the whole php …

Member Avatar for TonyG_cyprus
0
209
Member Avatar for Navlag

Hello, I am just playing around with PHP and I have a silly little little login page, with the username and password hard coded in (not secure, I know). They are: username and password, respectively. Once logged in, there is a message saying I am logged in and a form …

Member Avatar for Navlag
0
304
Member Avatar for janskey15

Pls help me with this code.. <?php include "dbConfig.php"; if ($_GET["op"]=="login") { if (!$_POST["FullName"] || !$_POST["StudentID"]) { die("You need to provide a username and password."); } $q = "SELECT * FROM `register` WHERE `FullName`='".$_POST["FullName"]."' AND `StudentID`='".$_POST["StudentID"]."' LIMIT 1"; $r = mysql_query($q); if ($obj = @mysql_fetch_object($r)) { $_SESSION["FullName"] = $_POST["FullName"]; $_SESSION["StudentID"] …

Member Avatar for LastMitch
0
249
Member Avatar for LastMitch

Hi I want to create a simple calendar on Smarty. I attached an image on how it looks so far. Here is my code **calendar.php** file: <?php require("libs/Smarty.class.php"); $smarty = new Smarty(); $date = "1/01/2013"; //January 01, 2013 $week_days = array("Sun"=>1, "Mon"=>2, "Tue"=>3, "Wed"=>4, "Thu"=>5, "Fri"=>6, "Sat"=>7); $total_day_of_month = get_total_day($date); …

Member Avatar for LastMitch
0
567

The End.