39,393 Topics

Member Avatar for
Member Avatar for magicmarkuk

Hi I have the following code: $locationcheck = wp_strip_all_tags( get_the_term_list( get_the_ID(), 'project_location', ' ', ' , ', ' ') ); And I want to check if the value of $locationcheck is equal to ">> Online/Remote <<" However, I am getting stuck with the >> and << as it doesn't seems …

Member Avatar for magicmarkuk
0
188
Member Avatar for jrotunda85

I'm not sure if this should be in this forum but I figured it was a good starting place. I am creating a database that, among other things, allows users to input a store's location (e.g. name, address, etc). Once a store has been added, there is an ability to …

Member Avatar for Yong woon
0
582
Member Avatar for best4earn

i was using same setting on my sice last 6 months , Now i need to change some things on my site i have changes picturess css style but my web looks remain same , i remove my cookis and cache of browser but still not responsive than i go …

Member Avatar for mattster
0
88
Member Avatar for bolfescu

Hy i'm using $_GET function to a variable and after make a query, but when i simply trying to display that variable, is not the full text...is less and then thats why dsnt work the query...how can i fix it ?

Member Avatar for bolfescu
0
91
Member Avatar for JosephHanh

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 …

Member Avatar for minitauros
0
185
Member Avatar for King_Of_lords

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] …

0
104
Member Avatar for hell hansen

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 …

0
86
Member Avatar for tsp003

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 …

Member Avatar for gentlemedia
0
386
Member Avatar for kingwash

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

Member Avatar for minitauros
0
142
Member Avatar for shady atef

<?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

Member Avatar for minitauros
0
148
Member Avatar for davy_yg

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?

Member Avatar for davy_yg
0
83
Member Avatar for Sammys.Man

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 …

Member Avatar for Sammys.Man
0
136
Member Avatar for Niloofar24

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 …

Member Avatar for Niloofar24
0
1K
Member Avatar for aru786

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

Member Avatar for Wolf_2
0
116
Member Avatar for DennisP

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 …

Member Avatar for Wolf_2
2
3K
Member Avatar for asaidi

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 …

Member Avatar for asaidi
0
225
Member Avatar for SimonIoa

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 …

0
151
Member Avatar for sarathnair

HOW CAN I INCLUDE JQUERY SLIDER INSTED OF PHP WITH LOOP PLS HELP...

Member Avatar for diafol
0
155
Member Avatar for asaidi

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

Member Avatar for asaidi
0
283
Member Avatar for janicemurby

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 …

Member Avatar for janicemurby
0
215
Member Avatar for showman13

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 …

Member Avatar for showman13
0
253
Member Avatar for Mushfik

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 …

Member Avatar for Mushfik
0
472
Member Avatar for romiaujla

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"); } …

Member Avatar for charlie_3
0
603
Member Avatar for UK-1991

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"; …

Member Avatar for UK-1991
0
186
Member Avatar for ruwanaru

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'; …

Member Avatar for diafol
0
200
Member Avatar for Tinnin

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 …

Member Avatar for diafol
0
265
Member Avatar for rpv_sen

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.

Member Avatar for diafol
0
257
Member Avatar for Tom_11

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 …

Member Avatar for suresh43
0
182
Member Avatar for edbr

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() …

Member Avatar for edbr
0
369
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
454

The End.