39,326 Topics

Member Avatar for
Member Avatar for cali_dotcom

Hi guys, i have an application that seats on a single webserver that depends on a third party application running mssql, so i use mssql over free tds. now i have to scale this site so i have to think about how to handle the sessions. i ma basically looking …

Member Avatar for pritaeas
0
297
Member Avatar for joshmac

I want to convert my MVC framework to conform to the PSR-0 standards, but I am having a devil of a time trying to wrap my head around namespaces and how it works. I am using the suggested [SplClassLoader](https://gist.github.com/221634) class. Below is my file structure, and what I am trying …

Member Avatar for pritaeas
0
209
Member Avatar for zenp

Hi I am trying to run this code for long but failed.Can anyone help me? 1. <?php 2. $button_text=$_POST['button_text']; 3. $color=$_POST['color']; 4. 5. if(empty($button_text)||empty($color)) 6. { 7. echo 'Could not create image - form not filled out correctly'; 8. exit; 9. } 10. $imgname="I:\xampp\htdocs\test\button\"; 11. $im=imagecreatefrompng('$imgname'.$color.'-button.png'); 12. $width_image=imagesx($im); 13. $height_image=imagesx($im); …

Member Avatar for pritaeas
0
210
Member Avatar for LuxNova_1

Hello! I'm crazy new at PHP and I'm having problems with recieving all the info from the drop down portion of my form in the email submitted from php. The code for the HTML portion is: <label for="birthday">Birthday</label> <select name="Month" value="option"> <option value="January">January</option> <option value="February">February</option> </select> <select name="Day" value="option"> <option …

Member Avatar for Zagga
0
256
Member Avatar for LastMitch

Hi, I'm trying to understand how **HMAC Verification** works in general (big picture). I want learn and understand how this equation works. Writing the script it a bit hard too. I know that **HMAC Verification** can prevent people from tampering with variables passed in the URL. Here is the formula …

Member Avatar for LastMitch
0
108
Member Avatar for LastMitch

Hi, It's really late now, I am trying to figure out how to echo a message when I submit a form. Here is the code: <?php $msg = ""; if ($_POST['title'] != ""){ $title = $_POST['title']; $author = $_POST['author']; $author = stripslashes($author); if (!$title){ $msg = "Please Add Title"; } …

Member Avatar for LastMitch
0
215
Member Avatar for mehmatt

hello all, i have a website like forum not exactly forum but similar. honestly, i bought it cos i didnt have any idea for php. but something about linking is not as i want. for example: when i link some webpage it shows the link [Click Here](http://www.aaa.com) but i want …

Member Avatar for diafol
0
226
Member Avatar for rajeshgoblet

hello i am working on a c,c++,java tutorial website, & i want to insert lots of source code example in it. I am doing this using <span> & CSS classes. I have seen some online code highlighter. i want to make one for my site. And is there any other …

Member Avatar for Dani
0
113
Member Avatar for shhh

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\dl\cart\includes\functions.php on line 37 There was an error with your order! function get_order_total(){ $cnt = array(); $products = array(); foreach($_POST as $key=>$value) { $key=(int)str_replace('_cnt','',$key); $products[]=$key; $cnt[$key]=$value; } $result = mysql_query("SELECT * FROM shop WHERE id IN(".join($products,',').")"); if(!mysql_num_rows($result)) { echo …

Member Avatar for Kieran Y5
0
155
Member Avatar for naru vaishnaw

this mail system is working in my local domain(S.K@ r.j.com).i want to send mail to S.K@ j.com. please help me to how to configure mail system . <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); $sql="INSERT INTO entryform (Name,Department, Problem, Ext_no, Ip_Add, …

Member Avatar for pritaeas
0
154
Member Avatar for tigersaver

I would like to have a cron job for my web host to take all files in a given directory and create a sub directory with the folder name as the date of the files in the directory and move all files for that date to this sub folder. Sounds …

Member Avatar for pritaeas
0
297
Member Avatar for weirdCreature7

Please help im a super beginner in php and I am doing this for my homework :) I just want to add a code that will Deny Access if password is wrong 3 times and the code for my alert box which is the Incorrect username and password is not …

Member Avatar for devianleong
0
299
Member Avatar for rob.peters.1257

I just installed on my development box the WAMP EasyPHP 12.0 which includesPHP 5.4.4 VC9 | PHP 5.3.14 VC9 | PHP 5.2.17 Apache 2.4.2 VC9 + MySQL 5.5.25a + PhpMyAdmin 3.5.1 + Xdebug 2.2.0. The problem: Old PHP pages are parsed by Apache and load correctly. However, any new pages …

Member Avatar for blocblue
0
190
Member Avatar for weajane01

<?php //Database Connection $connection = mysql_connect("localhost", "root","mysql"); if(!$connection){ die("Database connection failed: ". mysql_error()); } //Select a database to use $db_select = mysql_select_db("school",$connection); if(!$db_select){ die("Database connection failed: ". mysql_error()); } //Database query $result = mysql_query("DELETE FROM tblstudent WHERE id=$id AND course='$course'", $connection); if(!$result){ die("Database connection failed: ". mysql_error()); } // Use …

Member Avatar for devianleong
0
126
Member Avatar for ska_defender

The following code generates a new php file playlist.php which contains the code as in $start $result variable $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start="<asx version='3.0'>\n<title>Example ASX playlist</title>"; $Fnm = "./playlist.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file …

Member Avatar for ska_defender
0
241
Member Avatar for rayidi

Dear All, I'm developing a Bulk SMS application. I want to send Shedule sms using php. I'm not aware of sheduled Or timing interval things in php. Please help me.

Member Avatar for blocblue
0
113
Member Avatar for rkumaram

I want to create quick view for a shopping cart, Problem 1: When I Place my mouse over any of the boxes, quickview appears on all the box, how can I display it only in parent node. Problem 2: When I place my mouse on quickview link, it keeps on …

Member Avatar for rkumaram
0
373
Member Avatar for Leslie Joy

well hello guys want to ask for your help in improving this code. Please help me. First things first I have a database name called quotation and it has 4 fields namely Id, Date, Product and Price. Well I want to get the name of the product in the drop …

Member Avatar for Leslie Joy
0
118
Member Avatar for vishalonne

Hi All I found many article and discussions on storing values of multiple check box here I found one thread [Click Here](http://www.daniweb.com/web-development/php/threads/165648/how-do-i-insert-multiple-checkbox-data-into-mysql) from which I tried to solve my problem but after doing every thing mentioned in that post finally I reached with an errorError: Column count doesn't match value …

Member Avatar for vishalonne
0
2K
Member Avatar for sourab

Hi, i am developing a website but got stuck. I got couple of queries , I would appreciate if anyone can help me out. 1. is it possible to re-size image ( e.g on facebook thumbnail picture ) without loosing quality using php code. 2. If not is there third …

Member Avatar for cereal
0
253
Member Avatar for eLaunty9487

hello, i have a dropdown list of several values, now i am successfully created a script in which data is display from database by selecting a value from drop down i.e a post value thrown by select a value from drop down. My question is how to display data for …

Member Avatar for ibakir
0
2K
Member Avatar for kovidd

i have recently started learning java .... i completed "head first java" recently ....it is just an intro to java . now i am looking to learn other aspects of java so could you tell me which book to read next . Or should i jump straight into a example …

Member Avatar for JamesCherrill
0
241
Member Avatar for Pidgetastic

I'm trying to create a treeview which is mostly populted by a database. I have two code snippets which on their own work fine but when I place them together it won't seem to work no matter what I try. Main Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html …

Member Avatar for blocblue
0
737
Member Avatar for McLaren

Hello, is my eyes wrong or what but I cannot see simple thing. //ok $this->utils->logging('DEBUG', 'submit dogs card5: ' . serialize($slip_data)); foreach ($slip_data as $data) { //not ok $this->utils->logging('DEBUG', 'submit dogs card7: ' . serialize($data)); }; the first logging line logs this array: array ( 36017 => array ( 'subtypes_id' …

Member Avatar for McLaren
0
87
Member Avatar for kletig

Hi guys Currently working on a webshop and have been running in to some noob problems. So i have three tables that i need to pull some data out of. One table stores the suppliers, the other one orders and the third ordered products. It looks something like this: ::: …

Member Avatar for pritaeas
0
150
Member Avatar for architact

Hello, I am assigned with the task of cloning digg.com, I am doing quite well except one issue, I want the user to enter a link in a text field and then I want the take a screen shot of that url (like digg.com). Please help me with what libraries …

Member Avatar for pritaeas
0
642
Member Avatar for vijayram

Hai everybody, i want to layout rcords in three columns. 1. previous records 2.todays records 3.nextday records i did query. but i have problem in display records in layout page. how to make it . anybody plz help me. public function executeIndex(sfWebRequest $request) { $myplans_obj= Doctrine_Query::create()->select('m.personal_id,m.photo,m.plantitle,m.country_id,m.zone_id,m.city,m.plantype,m.about_plan,m.date,m.what,m.where_go,m.time')->from('meetnewpeople m') ; $result = …

Member Avatar for diafol
0
151
Member Avatar for mascot07

I have a problem on using php array for checkbox by using **foreach**

Member Avatar for themastermind
0
108
Member Avatar for aianne

Hello everyone! I need your help. So I am currently working on my school project for web based voting system and I'm having a hard time to figure it out how to pass value 1 of multiple selected radio buttons to database. Here's my code so far: Here is my …

Member Avatar for aianne
0
1K
Member Avatar for jckb188

Hello, I am somewhat new to databases and just had a quick question on database structure when incorporating users. When building the schema, does anybody have a best practice as whether to put users in a separate database apart from the content, or to put the users into the same …

Member Avatar for rch1231
0
103

The End.