39,326 Topics
| |
Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 … | |
Why i get this error `Notice: Trying to get property of non-object in C:\xampp\htdocs\asdf\navigation.php on line 214` i have this code: <?php if(isset($_POST['sendTicket'])) { $ticketID = $_POST['ticketID']; $ticketReceiver = $_POST['ticketReceiver']; $ticket_id = getUserData('kladilnica', 'ticket_id'); $sender = getUserData('users', 'Username'); if(!empty($ticketID) && !empty($ticketReceiver)) { $sql = "INSERT INTO ticket (senderName, receiverName, Date, … | |
am using ci 2.1.4 to create a simple crud application being new to ci and am having this error:'Unable to load the requested class: validation' here is my controller code: class Person extends CI_Controller{ //num of records per page private $limit = 10; public function __construct(){ parent::__construct(); //load library $this->load->library(array('table','validation')); … | |
Dear All I have developed a lease management System. I have stored 4000+ Lease agreements and purchase orders. Folders Structure Main Folder : LAPO Subfolders: North , Center , South Subfolders : 1245 , 9867 like these (numeric) In each numeric folder there are 2 files LA.pdf and PO.Pdf How … | |
how to store json output into seperate PHP variables? {"msg":"success","msg_text":{"9912345678":"N"}} | |
Hi Everyone, I need to check if a date is valid but not relative. Here's what I came up with: if ( strtotime ( $date ) && strtotime ( $date ) == strtotime ( $date, 1 ) ) { $its_all_good = true; } If that's helpful, then I'm glad I … | |
Hi guys, below are simple replacing script a word in to another word, or censorship $word = array( 'google', 'yahoo' ); $link = array( 'go*gle', 'yah*o' ); $this->post['message'] = str_ireplace($word, $link, $this->post['message']); the problem its currently also replacing another words like googler yahoos into go*gler yah*os please help how to … | |
I am importing Excel into Data Base. I enter in Excel is 9-Oct-2006.I want to get the excel to php file but i am not getting. I am trying this code $date = date('m-d-Y',strtotime($dob)); echo $date; but getting o/p is 01-01-1970 any body help me to get date formate | |
I i get the following error in a script im using has anyone got any ideas what it could be ty jan x Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/letsswin/public_html/template_status.php on line 47 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/letsswin/public_html/template_status.php … | |
Hi there, My PHP is appalling/non-existant. I have a HTML website with a PHP header that I've 'included' on all the pages. The problem is that this header colours red whichever page we are currently on, defined under the CSS as being 'active'. Therefore, from what I see, I need … | |
Hi I'm using a template from the web for a tabbed GUI.[Click Here](http://informationsystems.uf9.in/rspcy/tabs_demo_real.html) I'd like to use php includes to existing files I've created. But if I do, all the tabs disappear. Can I do this, or something similar, without the tabs disappearing? The following is an example of how … | |
Hi there, I have a webpage in HTML, strong-links.org, and am tired of having to make changes to every single page when I update the header or footer, and someone suggested I can use PHP to reference the template within the HTML pages. As a test, I have test.strong-links.org/index2.html live … | |
Hello i cant understand how i can send database info to user for example i want to send my note which contain (date, text, title and other info) and this info is under ID for ex. (123456) please someone explain me how i can do that or help me thank … | |
hello I have an application run in php with mysql database that shows me a list of people in different services it occupies. I would like to make a menu that is based on the clicked service shows me the list of persons who holds this service and each new … | |
I notice that my PHP code contain special numbers (e.g. _5b9652a96785) representing variables: <?php include_once('../include/config.php');include_once('../class/db.php');if (isset($_POST["points"])) {$_5420457f97cc = json_decode(stripslashes($_POST["points"]), true);$_a095ff903bcc = trim($_5420457f97cc["itemName"]);$_58f60403479c = trim($_5420457f97cc["itemCost"]);$_bb2bde3e818f = trim($_5420457f97cc["itemPrice"]);$_5b9652a96785 = $_5420457f97cc["itemUnit"];$_03d9de238649 = $_5420457f97cc["itemCategory"];$_22f632d073d5 = $_5420457f97cc["ingredientArray"];$_83647d4cbbd0 = new dbPdoMysql;$_6445f036fed3 = $_83647d4cbbd0->dbInsertItem($_a095ff903bcc,$_5b9652a96785,$_03d9de238649,$_58f60403479c,$_bb2bde3e818f, $_22f632d073d5);if ($_6445f036fed3 == true){echo "true";}else{echo "false";}}else{}?> What does the special numbers mean and … | |
Hello. When i open a file in my linux localhost with the command "gedit file.php" and then put a part of code in it, then i can't save the file. the save icon above the gedit is deactivated. What can i do? | |
Hi, I need a code for inserting, viewing, editing, deleting in a single registration form in simple way. | |
Hello i am using WAMP server and the audio player doesnt show up This is the code <audio controls preload="metadata"> <p><label>Error: Your browser does not support the audio element. Install the latest version. If you are using Safari you must install Quicktime.</label></p> <source src="<?php echo $base_url.'uploads/audios/143154310611.mp3';?>" type="audio/mp3" /> <source src="<?php … | |
Hi there, I' ve got some data in my database and I' m using PHP to fetch it and would like to transport it to client side via JSON. The problem that I'm facing is the folowing: I have a timeline which was built in html and css and I … | |
HELLO i would like to ask that fetchAll() is good choice to retrieve all user message from database or i should use while loop? I asked this question because i worry about internet traffic.. | |
Hello All, My old computer crashed. I installed XAMMP on my new computer. My old PHP files don't run. I learned that the reason is that register_globals feature has been deprecated and is now permanently Off by default. My old files were written in a 'register_globals=On' environment. I understand that … | |
Hello, I am build up POPUP Box for the warrning, reference link [Click Here](http://www.pcattention.com/) That can be supported for all the browser Safari, Chrome, IE, Mozila. I have RND for that but not given exactly solution. Can suggest me something for that. Thanks. | |
Hi. There is a textarea in my page. I type a text in the textare and then in the script there is: $text = nl2br(htmlentities($_POST['text'])); Now what is the problem? When i type: `I'm fine.` It will be sent to db and will be printed, in both place as: `I'm … | |
Hello, I'm getting problem file or directory not found when I try to load the file from another directory. Kindly help me fix this problem. Thanks you. Website -classes -core.php -inc -autoload.php -config.php -index.php **Index.php** <?php require_once('inc/autoload.php'); $core = new Core(); $core->run(); **autoload.php** <?php require_once('config.php'); function __autoload($class_name) { $class = … | |
I am using xampp and windows.... I need to call java classes from php. How to use php java bridge... I am using php 5.2.6 | |
Hi. I'm thinking about a new project in php.... any idea of a cool and fun or useful and efficient project?! | |
<?php $xml = simplexml_load_file('/exam/'.$file); foreach($xml->main as $main) { if($main['select'] == "selected") { ?> <div> <textarea rows="2" class="span11"><?php echo $main->question ?></textarea> <div class="row" style="padding-left:3%;margin-bottom:1%;"> <ul> <?php foreach($main->ans as $ans) { ?> <li style="float:left; margin-left:1%;" ><input type="radio" name="optionsRadios" class="rdChk" style="margin-top:-2%"> <span><?php echo $ans ?></span></li> <?php } ?> </ul> </div > </div> <?php } … | |
Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too? | |
I am helping a friend build as site and at a testing stage. it came to creating a database and i discovered he was a bity lost. i explained howto do it in phpadmin but i then decided to write a page or 2 to install it would be a … | |
> while updating my form it retrieves all info from db in respective field but unable to display values in dropdowns > this is my controller for update function update($a_id) { $data['a_id'] = $a_id; $data['sector'] = $this->sf_model->get_sector(); $data['subsector'] = $this->sf_model->get_subsector(); $data['type'] = $this->sf_model->get_type(); $data['view'] = $this->sf_model->get_account_record($a_id); $this->form_validation->set_rules('a_name', 'Account Name', 'trim|required|xss_clean|callback_alpha_only_space'); … |
The End.