39,326 Topics
| |
Need help with the quiz problem. I want to set time limit for each question in quiz module (say 30 seconds) and after that time, the form will auto submit the question (auto submit = no option selected = unanswered). There are 3 questions, so total time limit is 90 … | |
Ok Guys I have searched a lot but didnt find proper suitable content Where In a single php page 1)I want to populate 2 drop down list which display data! from 2 different tables that is table_designation and table_relation and 2)at same time am going to add one question[by textbox] … | |
Hi guys i've one page which is hosted on cpanel! and on my localhost is working properly, but on cpanel is not working. The problem is about session and redirecting login, is not working how i want! my cod is: <?php session_start(); /* * To change this license header, choose … | |
I've got a problem with my pagination with one of my components on my Joomla 2.5 website. I no longer have a subscription with the developers so they won't help me. Basically the pagination in this component is vertical instead of horizontal, as in the picture below. ![pagination.PNG](/attachments/large/3/39807112133f3356027c716834f3863e.PNG "align-center"). I've … | |
class booking_diary { // Time Related Variables $a="09:30"; $b="19:00"; public $booking_start_time = $a; public $booking_end_time = $b; } I have an input fields where the user will set the $a,and $b fields instead of fixing the dates in the code. Can i do this. Please help. Thank you | |
<?php require_once '_includes/_coo.php'; $id =$_post['user_id']; //error here -> line 4 // sending query mysql_query("DELETE FROM example WHERE BookID = '$id'") or die(mysql_error()); header("Location: index.php"); ?> error in line 4 | |
update_image2.php $result2 = mysql_query("SELECT * FROM image_upload"); $data2 = mysql_fetch_array($result2); if($image_width > $data2['maxwidth'] || $image_height > $data2['maxheight']) { echo '<br>'."Image is too big".'<br>'; echo $image_width.'>'.$data2['maxwidth_bn'].'<br>'; echo $image_height.'>'.$data2['maxheight_bn']; exit(); } Successfully upload pictures Image is too big 995>1000 227>240 I wonder why the message says the image is too big? | |
Hi guys, wondered if someone could help please, i am trying to display a championship table from the 3 tables i have in my mysql. tbl_champ holds the championship name (nitro) and date (2015) tbl_rounds holds the round name (round1 so on) the date (01/01/2015 so on) and the champ_id … | |
Hello. I'm new to PHP, i've started it yesterday. I want to creat a simple CMS with (PHP and PDO), what should i do? I'm going to start with creating the CMS core. I want to create sth like a simple wordpress. What should i do? Where should i start … | |
umm i have vry serious issue with my php code...im trying to pass the value of a radio button which is being fetched from the database to an onclick function. the function is being called on the submit button.But the function is not getting called...how shud i solve this problem | |
The following snippet is a simple PHP Pagination Script which I wrote. As far as I know it works fine. It is meant to be used within a class, and I have wrapped in in a class in order to demonstrate it's usage. The example given below will return something … | |
Hi i have a table route day,position... day position 1 1 1 2 1 3 1 4 then day pass to number 2 and position passes to 1 i have these data in my table but when i order the table by day..position are all messed..if i order the 2 … | |
I have created an Open Graph story.I am thinking of using the PHP SDK code provided by Facebook here is the code $response = $facebook->api( 'me/objects/rovespier:art', 'POST', array( 'og:url' => http://samples.ogp.me/407704082730386, 'og:title' => Sample Art, 'og:type' => rovespier:art, 'og:image' => https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png, 'og:description' => , 'fb:app_id' => 34954712323 I dont know … | |
| |
Hi how i can use this sql in php.. SET @a = 0; UPDATE van SET position = @a:=@a+1 where day='2';===>can be variable it goes from 2 to 30 thanks | |
hya i want to show each user there own id number for identity purposes so far i have <?php include("config/db_connect.php"); include("config/ckh_session.php"); ?> <?php $userinfo = mysql_query("SELECT user_id FROM user"); ?> <ul> <li>You must be fully clothed, no nudity.</li> <li>Your face must be clearly visible although you may obscure your eyes … | |
Can someone tell me how to extract a fully qualified URL from a form input <input type="file" name="datafile"> When I use this in a form and navigate to a picture like domainname.com/images/banners/banner1.jpg The only thing I get back is banner1.jpg Am I missing something (besides the file path). thanks in … | |
Hello. Please look at the code below and tell me the correct code for it please. here is the message i get.."Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given" <?php include("function.php"); ?> <?php include("header.php"); ?> <?php include("headscript.php"); ?> <script type="text/javascript"> function noAcc(){ $.fallr('show', { icon : 'error', content … | |
A method in the **controller.php** file public function invoke() { if (isset($_GET['book'])) { // show the requested book $book = $this->model->getBook($_GET['book']); include 'view/viewbook.php'; } else if(isset($_GET['add_book_form'])) { $action = $_GET['add_book_form']; include 'view/add_book.php'; } else if(isset($_GET['add_book'])) { $title = $_POST['title']; $author = $_POST['author']; $description = $_POST['description']; $this->model->addBook($title, $author, $description); include("view/add_book.php"); } … | |
Hello, I Have created an admin page to view user account information on monthly bassis but the values to me are not showing up here is the code <?php $record_campaign = mysql_query("SELECT campaign FROM dailyreport where uid='" . intval($_POST['select3']) . "'"); $record6 = mysql_fetch_array($record_campaign); $campaign = $record6['campaign']; $date_table = "Date"; … | |
what i want to do is find a word from a text file and delete that word using php plzzzzzzzzz help me......... i can find the word using this codes [CODE] $handle = file_get_contents("files.txtl",NULL); $a="first"; $a=substr_replace($a, '0', 0); $a=explode(" ",$a); $c=0; foreach($a as $y){ if (stristr($handle,"$a[$c]")) $b[]= 'yes'; else $b[]='no'; … | |
Hi All, I'm trying to remove the <head> tag and contents from some html but I'm having no luck. The <head> portion of the html is: <head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style><![endif]--><title>Resume (Origin design)</title><style><!-- /* Font Definitions … | |
Hi Friend. i want to add a tr in an table using php only. please help me how to create it. i dont want jquery or javascript. | |
I am working on a small project, creating a calendar based booking system which includes the following features: 1) A color coded key for Booked days, Available, Partly Booked, Off Days 2) Clickable days which open up a form with available time slots 3) When time slots selected another form … | |
very embarassing but i just got hacked by the folloeing, any advise truly welcome Hacked By : Mr.HaurgeulisX196 TypingText = function(element, interval, cursor, finishedCallback) { if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) { this.running = true; return; } this.element = element; this.finishedCallback = (finishedCallback ? finishedCallback : function() … | |
I am beginning what appears to be the daunting task of securing all of my code from injections, XSS, etc. I have been reading about some of it and it is a bit overwhelming. I just wanted to come here and ask for experts' advice on the main things I … | |
hello dear friend. on my page i have a form with data with submit bouton when user click on insert data insert into a table all work fine i would like to redirect user to other page after insert into the i use this code $insertGoTo = 'order-line.php'; if (isset($_SERVER['QUERY_STRING'])) … | |
I think I am missing something obvious here but I can't see what. I am pulling information from another file using `file();` which works as expected - putting each line in to an array. The file contains some HTML tags but is just a text file (not a full web … | |
Hi Gentlemen Please help the following code shoots error, my purpose is to view the table value for checking purpose, but it fires error, <?php include ('main_config.php'); //get all web settings $web_settings = array(); try { $db = new PDO($mysql_host_db, $mysql_user, $mysql_pass); $query = "SELECT * FROM t_lfs_web_settings"; //$result = … | |
the following is the error message, Undefined index: gld in F:\xampp\htdocs\lfs\site_globalfn.php on line 14 |
The End.