38,022 Topics

Member Avatar for
Member Avatar for patk570

I have a url that is `filemgr.php` when a user navigates to lower levels of said file manager it shows up as `filemgr.php#userfiles/username/Images` Is there a way to just have it show up as `filemgr.php ` with out the rest of the url showing? I am open to .htaccess editing …

Member Avatar for diafol
0
339
Member Avatar for rjusman90

$abc =$_POST['LinkWidth']; $link = $abc; echo $link; if ( $link == "page" ){ die('inputbox validate[required]'); } else if ($link =="otherlink"){ die('inputbox validate[required]'); return; }

Member Avatar for DJBirdi
0
149
Member Avatar for SimonIoa

Hello i cant understand what this variables mean havent seen them before $ser=$_SERVER['HTTP_HOST']; $ref=$_SERVER['HTTP_REFERER']; $url = $_SERVER['SCRIPT_NAME']; $host = $_SERVER['SERVER_NAME']; $url = $_SERVER['SCRIPT_FILENAME']; $ura = $_SERVER['SCRIPT_NAME']; $host = $_SERVER['SERVER_NAME']; this script connects with its own database but i want it to connect to a database that i have already. i …

Member Avatar for chrishea
0
138
Member Avatar for Priti_P

Hello , I have an 2 dimetional array: Array ( [0] =>Array ( [0] => add1 [1] => add2 [2] => May 2014 [3] => ascascascasc [4] => 160 ) [1] =>Array ( [0] => Framework [1] => hii [2] => May 2014 [3] => ascascasc [4] => 161 ) …

Member Avatar for diafol
0
317
Member Avatar for eaanscl@ssm@te

<?php session_start(); // JSONURL // function get_html($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_FAILONERROR, 0); $data = curl_exec($ch); curl_close($ch); return $data; } function get_json($url) { $ch = curl_init();

Member Avatar for Tpojka
0
152
Member Avatar for rjusman90

<td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/> </td>

Member Avatar for Borzoi
0
178
Member Avatar for centenond

foreach($vip_users as $vip_user){ $extra_info = fetch_profile_pic($vip_user); /* in this function it connect to mysql db */ $profile_picture[$vip_user] = $extra_info['ProfilePic']; } its seems like a bad idea to me , what do u guys think? and how can do this in a proper way Thanks

Member Avatar for centenond
0
174
Member Avatar for Priti_P

Hi, I have an array as: $data = array ( array ('add1','add2','May 2014','ascascascasc',160), array ('Framework','hii','May 2014','ascascasc',161 ), array ('Framework','test framework 1','May 2014','asdasdasd',159 ) array ('Framework','test framework','May 2014','asdasdasd',149 ) array ('OS','other OS skill','May 2014','ascascASC',162 ), array ('Databases','test db skill 3','May 2014','bnmbnmbnm',158 ), array ('Databases','test db','May 2014','bnmbnmbnm',18 ), ); I want to …

Member Avatar for Alberto Bucur
0
161
Member Avatar for EJL242000

Hello, I am trying to create a table in MySQL with the following data: $sql = "CREATE TABLE $uID ( Col0 int(10) NOT NULL auto_increment, Col1 varchar(255) NOT NULL, Col2 varchar(255) NOT NULL, Col3 varchar(255) NOT NULL, PRIMARY KEY(Col0) )"; However, I keep getting a syntax error. Can someone pls. …

Member Avatar for cwarn23
0
433
Member Avatar for david.roun.7

Ok, so here is the CSS code in an external sheet: #header{ position:fixed; width:100%; height:15%; } #hedr{ position:fixed; height:5%; width:6%; top:5%; left:30%;} #nme{ position:fixed; font-size:400%; top:3%; left:10%; } Here is the php document: <!DOCTYPE HTML> <html> <head> <meta name="keywords" content="Roun, David Roun, Rounsworld, Heather Roun"> <meta name="description" content="Personal website"> <meta …

Member Avatar for david.roun.7
0
2K
Member Avatar for vishalonne

I have 2 drop down. In 2nd drop down items are added dynamically based on 1st drop down selection. Now I want selected value of 5th subject to store in MySQL table. I am not able to get the value of option which is selected in 2nd drop down. How …

Member Avatar for DJBirdi
0
293
Member Avatar for navaidstech

Hi guys... I'm fairly new to PHP but do have experience with other languages. Having an issue with sharing variables between multiple PHP scripts on the same page. Here is the deal: The page in question is called by another page, which then passes a variable in the URL string, …

Member Avatar for navaidstech
0
6K
Member Avatar for ankit1122

i have an array names skills in which there are various skills now i wanna create aquery like select * from tablename where skills regexp ""skill1" and skills regexp "skills2" and skills regexp "skills3"; how could i do this.. upon defining a string for concatenation php shows error....`$s=select * from …

Member Avatar for broj1
0
352
Member Avatar for poochiteap

I want to create an archive list like this: 2014 -March -Feb -Jan *Post 1 *Post 2 2013 -November *Post 1 My config file is: <?php ob_start(); session_start(); //database credentials define('DBHOST','127.0.0.1'); define('DBUSER','name'); define('DBPASS','pass'); define('DBNAME','sample'); $db = new PDO("mysql:host=".DBHOST.";dbname=".DBNAME, DBUSER, DBPASS); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); //set timezone date_default_timezone_set('Europe/London'); ?>` the table I m …

Member Avatar for broj1
0
1K
Member Avatar for hanspeare

Hello PHP Friends, I think this is just if else statement problem but im kinda lose to it. The whole code is succesful in deleting the data from database the problem is i wanted to put a script that remind the user if he/she really sure to delete the data. …

Member Avatar for broj1
0
311
Member Avatar for jorgeftz

$result =0; if ($id_marca!=1) { $result = $result + $vl_max*$pares; // id_marca = 22 [ 38 pares * 1.451 = 55.14 ] } elseif ($id_marca=='1'){ $result = $result + $vl_min*$pares; ///id_marca = 1 [ 36 pares * 1.392 = 50.15 ] } else { $result =''; } $result; Hello, I …

Member Avatar for diafol
0
277
Member Avatar for everton.retweets

Hi, I am trying to get the records out of a mysql database where the time is less than todays date and time - I have set the column as DateTime in mysql and it is stored as 2014-05-31 15:00:00 $TodayDate = date('Y-m-d H:i:s', time()+28800); $sttTodayDate=strtotime($TodayDate); // We Will prepare …

Member Avatar for everton.retweets
0
2K
Member Avatar for azapovjednik

Hello, I got an assignement: to validate a google oauth2 access token using email address.... What is the simplest way of doing it? Can anyone give me some hint? I am desperate here... trying to figure it out.. but I cannot find anything understandable... So far, I discovered how to …

0
147
Member Avatar for poochiteap

want to create an archive list like this: 2014 -March -Feb -Jan *Post 1 *Post 2 2013 -November *Post 1 My config file is: <?php ob_start(); session_start(); //database credentials define('DBHOST','127.0.0.1'); define('DBUSER','name'); define('DBPASS','pass'); define('DBNAME','sample'); $db = new PDO("mysql:host=".DBHOST.";dbname=".DBNAME, DBUSER, DBPASS); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); //set timezone date_default_timezone_set('Europe/London'); ?>` the table I m using …

0
276
Member Avatar for ankit1122

i have this code which doesnt work completely...csv file is generated but query string named as $s is not shown... <?php $count = 0; foreach($_POST as $item) { $count += (is_array($item)) ? count($item) : 1; } // echo "Items = $count"; $db=$_POST["db"]; $skills = explode(",", $_POST["skills"]); $table = explode(",", $_POST["table"]); …

Member Avatar for cereal
0
166
Member Avatar for gogs85

How to make searching for my blog with pdo? I try like this: <?php require('include/config.php');?> <?php $query = $_GET['query']; // gets value sent over search form $min_length = 3; // you can set minimum length of the query if you want if(strlen($query) >= $min_length){ // if query length is more …

Member Avatar for diafol
0
3K
Member Avatar for cdinarte

I'm developing a website which has support for the most talked languages in the world, but my problem is that in some machines instead of letters, rectangles are displayed. So far this problem has been seen mostly with chinese, japanese and korean languages. Somebody has an ideia on how to …

Member Avatar for cdinarte
0
166
Member Avatar for iamthwee

I'm intending on doing a database for hairdressers (as an example) So there will be: 1. Customers 2. The hairdresser can check their calendar to see who is booked on that day. 3. Customers can search of available times slots. 4. The hairdresser can enter customers onto the system, customers …

Member Avatar for diafol
0
357
Member Avatar for nikesh.yadav

Can anybody convert this code to php for me.. this is code is used to access a webservice but i only C# code they are not providing any documentation. Thanks in advance private CrmService CreateService() { cs = new CrmService(); string username = ConfigurationManager.AppSettings["Username"].ToString(); string password = ConfigurationManager.AppSettings["Password"].ToString(); string domain …

Member Avatar for BogdanCov
1
6K
Member Avatar for jKidz

Hi All, These days I am implimenting a Hotel Room Reservation system. I have a small problem in Check Availability' page. below I listed my database structure. *rooms* rid int(11) <--- AI name varchar(255) ppn varchar(50) facilities mediumtext *reservations* resid int(11) <--- AI rid int(10) arrival date departure date System …

Member Avatar for diafol
-1
5K
Member Avatar for faisal.qureshi.7121614

Hi ! I need to have a single mysql query which should get COUNT of two different values in a single field, suppose i have a field in a table 'approved', and there are only two values ie. approved=0 or approved=1, and have suppose 100 rows for them,so how to …

Member Avatar for faisal.qureshi.7121614
0
393
Member Avatar for ankit.baphna

I have MySQL search query which takes input from drop down values and pass on values to my search query. This works perfectly on my website. But the same when I run on my Mobile it does not give me results(blank) as well its not consistent in displaying results, means …

Member Avatar for ankit.baphna
0
213
Member Avatar for vipulasri.2007

Is there any open source code project of **WEB MAIL CLIENT** that i can use straight away by doing some of the modifications in its ui .I just want to configure **imap or pop3 or smtp** settings in that and i should start recieving my mails from the specified account.

Member Avatar for pritaeas
0
190
Member Avatar for [NOPE]FOREVER

I know that libraries contain functions for certian fields of work but what is a framework? Is it simply just a collection of libraries?

Member Avatar for catalinetu
6
172
Member Avatar for ankit1122

can i use submit button inside a form to access a function in other php file?because i have 2 buttons on same page but want them to do different function..one to query database other to update table..

Member Avatar for iamthwee
0
399

The End.