39,323 Topics
| |
hello dears daniweb friend i'm trying to get total price in php with the below code but i get only the shipping price when i request echo total what is wrong in my code ??? <form name="valide" method="POST" action="<?php echo $editFormAction; ?>"> <label for="Sub total"></label> <label for="shipping">Sub total</label><input name="subtotal2" type="text" … | |
| I am trying to make a calculator to calculate your age in dog years, the following is the code I have so far, minus the html portion of it <?php if (!isset($_POST['your_age']) ) { header("Location: dog_form.html"); exit; } if ($_POST['your_age'] == "your_age") { $result = ($_POST['your_age'] *7; if ($_POST['your_age'] >= … |
Dear friends i have developed a report using php/html/css. i have included @media print css style using div tag for page break because i want to print on different pages. each and everyting is working fine but only problem is delaying during printing..the printer print one page and sleep for … | |
hi, in the mysql we can fetch data and store them into variables, like the code below: if (mysql_num_rows($userquery) != 1) { die ("that member could not be found!"); while($row = mysql_fetch_array ($userquery, MYSQL_ASSOC)){ $first_name = $row['first_name']; $last_name = $row['last_name']; $email = $row['email']; $password = $row['password']; $sex = $row['sex']; $dbusername … | |
<?php // post_add.php if( isset ($_POST['title']) && ($_POST['body']) && !empty($_POST) ){ require 'connection.php'; $stmt = $conn->prepare('INSERT INTO posts (title,body) VALUES (:title, :body)'); $stmt->bindValue(':title', $_POST['title']); $stmt->bindValue(':body', $_POST['body']); $stmt->execute(); echo 'Entry posted. <a href="post_view.php?id='.$conn->lastInsertId().'">View</a>'; }else if(empty($_POST['title']) || empty($_POST['body']) ){ echo "no values entered"; } ?> As my code is , empty fields … | |
<?php require_once('connections/careergroup.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . … | |
hi i am new in the development field i want a little guide line about the WYSIWYG editor i have website and i want to integrate a wix html 5 type http://www.wix.com/ editor in it i try to edit the tinymce editor but i does not found it flexible as … | |
/php/FrontController.php namespace FrontController; class FrontController { public static function add($a, $b) { return $a+$b; } } /project/index.php use FrontController; echo FrontController::add(4,5); error message: Warning: The use statement with non-compound name 'FrontController' has no effect in C:\wamp\www\project\index.php Fatal error: Class 'FrontController' not found in C:\wamp\www\project\index.php I want to use namesapces instead … | |
Ive been coding in PHP for over a year now. I was thinking to learn a PHP Framework. After googling around, i found few top frameworks such as Zend, CakePHP, CodeIgniter and Symfony. Still, im not able to choose between these. Can anyone please suggest me the best one ? … | |
Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still … | |
Hello, I have a question as: I have a calender invitation code for gmail as below: $vcal .= "BEGIN:VCALENDAR\r\n"; $vcal .="-//Google Inc//Google Calendar 70.9054//EN\r\n"; $vcal .= "VERSION:2.0\r\n"; $vcal .= "CALSCALE:GREGORIAN\r\n"; $vcal .= "METHOD:REQUEST\r\n"; $vcal .= "BEGIN:VEVENT\r\n"; $vcal .= "DTSTART:$dtstart\r\n"; $vcal .= "DTEND:$dtend\r\n"; $vcal .= "DTSTAMP:20110302T115742Z\r\n"; $vcal .= "ORGANIZER:mailto:$organizer\r\n"; $vcal .= … | |
i developed a website in php i did it 90% but the problem is that if i have 4 PDF files in website and via search box i enter a text and then it finds that text for me in all 4 odf files or display a message that "No … | |
I'm looking for a way to ensure that zero cookies are created by session, is there any way to do so? The session does not need to be overly secure, it is mainly being used to transfer basic and non-sensetive data inbetween pages. This is on a dedicated ubuntu box … | |
I found this code online and i want to understand it, i have read the php documentation but i have found out that the php programming community offers better explanations PHP Code: function mysql_safe_query($query) { $args = array_slice(func_get_args(),1); $args = array_map('mysql_safe_string',$args); return mysql_query(vsprintf($query,$args)); } I figure the function isn't a … | |
Ok so for my register.php page I want to use https however the code that I am using makes my whole site use https how do I make it so only my register page uses https? Code I'm using: if(!isset($_SERVER['HTTPS'])) { header("location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); | |
What is the best API/The CODE to use in integrating e-payment info PHP e-commerce site. especially if the payment is to be made with Phone by Cash Transfer through Mobile Banking. | |
I have an array like so: $array = array(value1,value2,value3,value4,value5,value6,value7,value8,value9,value10,value11,value12); What i need to do is insert the array value into a database row one would have value1,value2,value3,value4 row two would have value5,value6,value7,value8 row three would have value9,value10,value11,value12 I was thinking i would need a for loop. Can anyone help on … | |
This is driving me nuts... I am new to wordpress plugin development... I have got the basic plugin developed. Added my admin menus... What I am trying to do is add a banner image to each options page inside the plugin dashbaord. i'v tried the usual ../images/imagename.png and ./imagename.png but … | |
<?php require_once('connections/careergroup.php'); ?> <html> <head> <title> <?php echo $first_name; ?> <?php echo $lastname; ?>s Profile</title> </head> <body> <?php // Check for a form submission if (isset($_GET["username"])){ $email = $_GET['username']; mysql_connect ("$hostname_careergroup", "$username_careergroup", "$password_careergroup") or die ("Could not connect to the server"); mysql_select_db("careergroup") or die ("That database could not be found"); … | |
hi all, i'm difficult to get values array condition: 1. if value only one get values 2. if value same then get value with index or key most high 3. if value same and key most high get all example: $data = Array(Array ("1" => "12306") , Array ("0" => … | |
What will be the language of the feature web PHP or Python? What framework will be the future a php one or a python one? I would like to add that Laravel for php is still young and the development is not made by a corporation so I don't think … | |
hello all I am a beginner... I want to move a wordpress site from a local computer to live server... live server: plesk parallels I followed some tutorials and it says: you must create a new mySql database on server... ok I went to parallels plesk panel and I created … | |
hi guys, i try write this java code in php using php java bridge: http://www.lucenetutorial.com/lucene-in-5-minutes.html when i found this line: IndexReader reader = DirectoryReader.open(index); i dont get it how to write it in php. i've tried but error result. when it be like this: Query q = new QueryParser(Version.LUCENE_40, "content", … | |
Hello, I have a project hosted on a live server has a domain like: www.abc.com On live domain: I am unable to set cookies in IE (7, 8, 9, 10) - as it is explained in the code below - (cookies are enabled on the IE browser), but able to … | |
Hello, I have tried to create login page with CI. This is the codes that I have: views/login.php <html> <link href="<?php echo $logincss; ?>" rel="stylesheet" type="text/css" media="screen"> <div id="logoadmin"></div> <div id="loginbox"> <img src="<?php echo $logo2; ?>" width="150"> <br><br> <div id="username"> <br><br> <div id="position"> <?php echo form_open('clogin/process'); echo form_label('Username:  ', 'username'); $dataUsername … | |
Hello friends I have little issue. I'm having a block of text, which is log from syslog. say log is Oct 28 11:42:59 MyMachine dbus[692]: [system] Activating service name='net.reactivated.Fprint' (using servicehelper) Oct 28 11:42:59 MyMachine dbus-daemon[692]: dbus[692]: [system] Successfully activated service 'net.reactivated.Fprint' Oct 28 11:42:59 MyMachine dbus[692]: [system] Successfully activated … | |
Hi all , After a long googling I am raising this issue. I want an online invoice from distribut to customer using tripletex but every one used using magento or drupal and I want it from website in php using tripletex.Is there any way to do it because I did … | |
This is my form and i need a script to allow user to send their cv to my email. <form action="post-cv-action.php" method="post" enctype="multipart/form-data"> <table width="100%" border="0" cellpadding="05" cellspacing="0" style="font-size:12px; font-family:Arial, Helvetica, sans-serif;"> <tbody><tr> <td colspan="2" align="center"><h2 style="color:#333333; border-bottom:1px dashed #989898; padding-bottom:7px; margin-top:10px; padding-bottom:15px;">Submit your resume, we will find a right … | |
Hi Everyone. I am trying to add a pagination.class.php to my wp plugin options page using include(ABSPATH.'/includes/pagination.class.php'); But I am getting an error... Saying the file does not exists. When I view the source, the file location is website/includes/pagination.class.php How do I set this to be the plugin directory ? |
The End.