39,323 Topics
| |
| 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"; } … |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
<?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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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' … | |
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: ::: … | |
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 … | |
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 = … | |
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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"; // … |
The End.