39,323 Topics

Member Avatar for
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
225
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
296
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
298
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
364
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
117
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
251
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
736
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
149
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
Member Avatar for tutusaint

I have a registration form which sends confirmation email to the new user. i also want the same email to be sent to all registered users. I have a table containing all registered members email and i need to inform all of them of the new user. This is what …

Member Avatar for Javvy
0
106
Member Avatar for renjithdas

Hi I tried to resize image with file name ._DYK_RTH134_1000.jpg. I got the following errors Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error. If I am using image with name like DYK_RTH134_1000.jpg then its working fine. Some of my filename have special characters. like . ( ' etc. Could …

Member Avatar for renjithdas
0
173
Member Avatar for gilgil2

Hi am trying to delete a row from a mysql database and can't work out why it is not working. Here is the code $link = mysql_connect('', '', '') or die('Could not connect: ' . mysql_error()); mysql_select_db('') or die(mysql_error()); mysql_query("DELETE FROM gigs WHERE gigname='".$name."'"); mysql_close($link); The $link is working, and …

Member Avatar for phorce
0
496
Member Avatar for joseph.akinadewo

I need some help on how to calculate amount. For example, my subscriptin is $100 per 100 credit, to calculate the amount of this or more, can someone provide me this scripts please.

Member Avatar for joseph.akinadewo
-1
82
Member Avatar for shehnaz1991

hiii i hv tried updating a database table frm the form bt it is not getting updated can u suggest me some php code for updating the database values i hv used the following code <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="root"; // Mysql password $db_name="project"; // …

Member Avatar for Squidge
0
109

The End.