-
Replied To a Post in Looking for help on doing a simple category script
To follow good design practices you should keep categories in a separate table. But anyway: - put a select element (a dropdown) or checkboxes on page to let people chose … -
Stopped Watching Display Object's inner elements
How I can display elements of the following object ? e.g : data -> percent_off As I stored following like : $input = file_get_contents("php://input"); $retun_val = json_decode($input); stdClass Object ( … -
Stopped Watching PHP and JavaScript
Hi, I have php page, 2.php, which collects the data and dispalys it from previous page , 1.php. In 2.php, I also have html and javaScript, which contains a button, … -
Stopped Watching Php Session Variable
Hi, I am trying to fetch username from session variable of one php page to another php page. This below code fetch username from login page <?php $uname = $_GET['uname']; … -
Stopped Watching PHP/Outlook Email
This is regarding the sending E-mail using php and OUTLOOK. I have a "php page" which collect output from previous page. once clicking on send button, it should open my … -
Stopped Watching Cannot INSERT data into mysql database
Hello everyone. I have just bought a new computer and I am currently working on creating an online cloud storage service. Every thing is going fine until I am struck … -
Began Watching PHP and JavaScript
Hi, I have php page, 2.php, which collects the data and dispalys it from previous page , 1.php. In 2.php, I also have html and javaScript, which contains a button, … -
Replied To a Post in PHP and JavaScript
In 2.php you should have details enclosed within an html eement (such as div) with an ID so that you can access it using jquery `text()` or `html()` or similar … -
Replied To a Post in php survay
If solved, please mark thread as solved. Happy coding. -
Began Watching Display Object's inner elements
How I can display elements of the following object ? e.g : data -> percent_off As I stored following like : $input = file_get_contents("php://input"); $retun_val = json_decode($input); stdClass Object ( … -
Replied To a Post in Display Object's inner elements
Not sure if I understood the question but this recursive function will traverse the object, search for a property and display it: function displayElement($obj, $el) { foreach($obj as $key => … -
Replied To a Post in php survay
The $_GET array contents is OK. You are getting the email address through. After filtering/sanitizing it the email should not change. It should be writen OK into the database. Ups, … -
Replied To a Post in php survay
Stick this code on line 3 just after the `if(isset($_GET['submit']) && isset($_GET['q']) && isset($_GET['email'])){` line: die(print_r($_GET, 1)); That will print out the values sent from the form and stop the … -
Began Watching php survay
Dear friend, i have 2 tab 1) atab 2) qtab.. when i put question and options answers .. i use three forms qset.php, Ans.php and result.php here are code what … -
Replied To a Post in php survay
The $mail doesn't even come from the form. Should you code it something like: if(isset($_GET['submit']) && isset($_GET['q']) && isset($_GET['email']) { $mail=$_GET['email']; // sanitize this first ... Then the question is … -
Replied To a Post in single statement multiple lines in PHP
If no more questions please mark thread as solved. Happy coding in PHP :-) -
Replied To a Post in Php Session Variable
Cool. If this answers your question please mark the thread as solved. Happy coding. -
Began Watching Php Session Variable
Hi, I am trying to fetch username from session variable of one php page to another php page. This below code fetch username from login page <?php $uname = $_GET['uname']; … -
Replied To a Post in Php Session Variable
First store the username in the session variable. // sanitize/validate first //... $_SESSION[$uname] = $uname; On other pages (within the same session) it will be available to your scripts: $uname … -
Replied To a Post in character in php
So you have to make sure the database collation is the right one and also that the DB connection collation is OK (in mysql utf8_unicode_ci is pretty safe). Also you … -
Replied To a Post in character in php
Where is the name comming from? The database or is it just a part of plain HTML? And what editor are you usinh? -
Replied To a Post in PHP/Outlook Email
Seems to be possible doing this using Javascript. And use PHP to pepare the HTML part. See http://msdn.microsoft.com/en-us/library/office/fp161148%28v=office.15%29.aspx -
Began Watching PHP/Outlook Email
This is regarding the sending E-mail using php and OUTLOOK. I have a "php page" which collect output from previous page. once clicking on send button, it should open my … -
Replied To a Post in PHP/Outlook Email
Seems to be possible doing this using Javascript. See http://msdn.microsoft.com/en-us/library/office/fp161148%28v=office.15%29.aspx. And use PHP to pepare the HTML part. -
Began Watching character in php
how to display this charactor in page Schönefeld . it display like Sch�nefeld -
Replied To a Post in character in php
It should not be a problem if you use UTF-8 I guess. But anyway, the character code for ö is `ö` or `ö`. <p>Schönefeld</p> -
Stopped Watching Deprecated: Function split() is deprecated
Hello , I have this error Deprecated: Function split() is deprecated. How can i resolve this problem. I use explode and preg_split but the problem persist $add=long2ip($result["ip_src"]); $mask="24"; $ipNetmask = … -
Began Watching Deprecated: Function split() is deprecated
Hello , I have this error Deprecated: Function split() is deprecated. How can i resolve this problem. I use explode and preg_split but the problem persist $add=long2ip($result["ip_src"]); $mask="24"; $ipNetmask = … -
Replied To a Post in Deprecated: Function split() is deprecated
If you replace the following code: list($ip, $netmask) = split("/", $ipNetmask ); $ip_elements_decimal = split("[.]", $ip ); with this one (for IPv4 addresses): list($ip, $netmask) = explode("/", $ipNetmask ); $ip_elements_decimal … -
Stopped Watching PHP Security - GET Variables, URL safe?
how to make php security in the url with the get method for example as media.php?hal=detail&id=1 -
Began Watching How to get average value based on user selection?
I manage to display data using below query that will show value for each month. How to calculate average value starting july onwards(based on user selection). Let say the value … -
Replied To a Post in How to get average value based on user selection?
Something like: $rs2 = mysql_query($sql2); // array of months to get the index $months = array('Jan' => 1,'Feb' => 2,'Mar' => 3,'Apr' => 4, 'May' => 5, 'Jun' => 6, … -
Stopped Watching Convert Date format
How to convert 19/Sep/2014 to 2014-10-19 -
Began Watching single statement multiple lines in PHP
Im new to PHP, i just want to know if theres any rule in php in terms of single statement multiple lines. for example in VB.Net we uses "&_"(w/o the … -
Replied To a Post in single statement multiple lines in PHP
If I got your question right you want to know whether a special character is required in PHP to write a statement on multiple lines. The code in PHP would … -
Began Watching Convert Date format
How to convert 19/Sep/2014 to 2014-10-19 -
Replied To a Post in Convert Date format
If you know the structure will be exactly like the above: function convertDate($oldDate) { $months = array('Jan' => 1,'Feb' => 2,'Mar' => 3,'Apr' => 4, 'May' => 5, 'Jun' => … -
Stopped Watching Getting header error when generating Alert Messsage
Hi All I have a simple add to shortlist function using php and would like to add a success Alert message so that users know that the item was added … -
Gave Reputation to malatamil in mail send to inbox
got solved. if i will give valid name then only its coming to inbox, if i will give abcd@gmail.com means its considered as a spam user. -
Began Watching Getting header error when generating Alert Messsage
Hi All I have a simple add to shortlist function using php and would like to add a success Alert message so that users know that the item was added … -
Replied To a Post in Getting header error when generating Alert Messsage
The main error was in the fact that you should not send any output to the browser before the [header](http://php.net/manual/en/function.header.php) function. In your second alternative coding example above you broke … -
Stopped Watching mail send to inbox
mail is not getting to my inbox. while submit the form am getting message as mail has been sent, but after sending i checked my mail am getting mail in … -
Replied To a Post in Form
Do you mean the outline around the active link? You can remove it in your css: a { outline: 0; border: 0; } -
Replied To a Post in PHP Security - GET Variables, URL safe?
Welcome to php and hopefully you will get plenty of joy in programming. If this question is answered please mark the thread as solved. -
Stopped Watching POST using PHP cURL
Hi all! I am trying to post from a form to an URL, using cURL. I have managed to do the posting bit, and my data is coming thew to … -
Stopped Watching Edit Invoice
This is the first url: http://localhost/SquprimeRevise/administrator/admin/invoice_edit.php?group_id=7&type=new invoice_edit.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" … -
Replied To a Post in Form
You can do it this way (without a login class): <input type="submit" name="submit" value=""><img src="../images/login.jpg" alt="Submit"></input> or with the login class (but you must specify the image dimensions): .login { … -
Began Watching mail send to inbox
mail is not getting to my inbox. while submit the form am getting message as mail has been sent, but after sending i checked my mail am getting mail in … -
Replied To a Post in mail send to inbox
Your script seems to be OK. Check your configuration (php.ini -> [mail function] section) which depends on your environment. In my Windows XAMP on localhost all mail is written to … -
Replied To a Post in Form
As I said in my post above: try with the stripped down version of the form. Here is your code with bare form: <html> <title></title> <head> <link rel="stylesheet" href="css/style.css" type="text/css" …
The End.