39,320 Topics

Member Avatar for
Member Avatar for sagisgirl

hi guys.. i need your help.. i want to display the user's login information. like, storage location..but im not sure how to do it.. this is how i try to do it.. $tenantID = $_GET['tid']; " " " $query_recTenantuser = "SELECT * FROM md_storage WHERE tenantID='".$tenantID."'"; $rs_recTenantuser = mysql_query($query_recTenantuser) or …

Member Avatar for sagisgirl
0
201
Member Avatar for rajesh1158

I have a search in my drupal website which searches for users registered in my website (finder module). Upon clicking any user from the user search result, it takes to that user's profile page. At the top of that page, a text 'Relationship' is displayed. Under it, a link saying …

Member Avatar for LastMitch
0
283
Member Avatar for Danny159

Hey guys... I have some code im using in a sub directory called /manager/ and I have the following htaccess file RewriteEngine on RewriteOptions inherit RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule .* - [L] Options +Indexes IndexOptions +FancyIndexing #Rules for root RewriteRule ^$ /index.php RewriteRule …

Member Avatar for LastMitch
0
115
Member Avatar for kakalahori

Warning: include_once(PEAR5.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in C:\wamp\www\test\HTML\PEAR.php on line 730 i have added all the files in from pear into the HTML and test folder and there aare lots of error in the page im getting this error can any body tell …

Member Avatar for pritaeas
0
97
Member Avatar for squeak24

I am currently working on an open source dating script. But I have one bug that I just can't seem to fix. I am unable to send system generated emails to Yahoo! and gmail. I have done a lot of searching online, but can't seem to get it working. I …

Member Avatar for broj1
0
324
Member Avatar for amith_ami

hi... all... i'm doing a wordpress jobsite... in the home page i want to load all the jobs list by using infinite scrolling with load more button... i found an example here http://www.authenticjobs.com/ and i dont know how to do it.. can anyone help me pls... here is my index.php... …

Member Avatar for McLaren
0
166
Member Avatar for Martin C++

I have a weird problem. I try to add two strings together but instad the variable evaluates to 0. Why is this happening and how to fix it ? <?php require_once('config.php'); $connect->query("SELECT id, name FROM room"); $rooms = $connect->get(); print_r($rooms); $result = "<ul>"; $asd = "Test"; /* foreach($rooms as $room …

Member Avatar for IIM
0
102
Member Avatar for adishardis

Hi, I'm having trouble getting the information I need from my mysql db. I need to write a query that gets me: 1. A list of all combinations of answers from 8 columns and the frequency of them. Every row contains answers from 1 person from a survey and I …

Member Avatar for diafol
0
278
Member Avatar for OsaMasw

Hello guys, I want to create download file script, I used an **id** to refer to a file in my site here is the script get the id and search in database for filename then return it for download. <?php if ($_GET['file']) { $id = (int)$_GET['file']; $sql= "SELECT filename FROM …

Member Avatar for OsaMasw
0
363
Member Avatar for infoitmanoj

<form name="form1" method="POST" action="#" onSubmit="return check();"> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("shg", $con); $result = mysql_query("SELECT * FROM consumer"); $email=$_POST['myusername']; $password=$_POST['mypassword']; $query="select * from consumer where email='$email' and password='$password'"; $result=mysql_query($query); if(mysql_num_rows($result)==1) { $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table …

Member Avatar for veedeoo
0
252
Member Avatar for DaveyMoyes

Hi everyone, I am having some trouble with a mysql select query not working correctly. The query I am trying to run is "SELECT * FROM cards2 WHERE cardid NOT LIKE '".$_SESSION['clubsId'][0]."' " I have also tried mysql_query(" SELECT * FROM cards2 WHERE NOT (cardid =".$_SESSION['clubsId'][0]." || ".$_SESSION['clubsId'][1]." Would appreciate …

Member Avatar for DaveyMoyes
0
174
Member Avatar for Wailintun

hi!here my problem again! Can you tell me how to display image map when choose image map name from drop down menu? help me again! thanks for your time! good luck!

Member Avatar for Wailintun
0
254
Member Avatar for winbala5

Hi all gud morning > I try in to implement table with pagination. Am using Jquery data table. In data table i have problem loading all data from database so time dealy more. so i want to implement in Ajax, jquery, Mysql. kindly gudience to me.

Member Avatar for pixelsoul
0
77
Member Avatar for agon024

what I am trying to do is use this php script to load the data being submitted in the html form into my database and then populate the database into an excel (csv) file and then e-mail it to my address. Everything works great it populates into the database and …

Member Avatar for pixelsoul
0
281
Member Avatar for ehmud

I want to include an external php file in wordpress single.php file; conditional to existance of certain custom taxonomies. That file should only include if post is linked to specified custom taxonomies. If custom taxonomy terms do not exist for that post, then file should not appear. Thanks in advance;

Member Avatar for LastMitch
0
556
Member Avatar for showman13

I was wondering if there is any way of tracking the number of times that a .jpg is displayed? The way that it is being used is that it is being displayed in an advertising campaign, and when someone opens the email, the .jpg is displayed, and I would like …

Member Avatar for LastMitch
0
163
Member Avatar for milkman93

Hey fellas, My prof gave us a php example in class and I'm having some trouble understanding a peice of code: isset($_POST["item"])? $item = $_POST["item"]:$item = "Not Set"; isset($_POST["quantity"])? $quantity = $_POST["quantity"]:$quantity = "0"; The problems: Does isset just check if "item" is equal to something? The format of the …

Member Avatar for jkon
0
194
Member Avatar for James singizi

im trying to submit data from my form into a database. After validating everything the code to insert the data is: $qry = "insert into users(id, name, surname,email, password,date) values (id,'$name','$surname','$email','$password','$date')"; On testing the code i get an error that says:"error: unkown column 'geek' in field list". geek corresponds to …

Member Avatar for broj1
0
194
Member Avatar for mattsheets

This is what I am tring to do... I have a table with 4 items: id (primary key) group_name employees surveys What I need to do is display all the data on a html table in input boxes, and allow a end user to update each field. I have tried …

Member Avatar for TonyG_cyprus
0
296
Member Avatar for nstrazimiri

hello guys. i want to add a button in php wich loads a document and includes it into the text area. sample we have a file called document.txt and if we load this file by pressing the button load, the textarea then is filled with the text that was in …

Member Avatar for GliderPilot
0
315
Member Avatar for imti321

I want to make it create the upload folder by itself.right now it creates the thumbs and so but I want the script to create the folder automatically <?php function createThumbs($pathToImages, $pathToThumbs, $thumbWidth) { $dir = opendir($pathToImages); while(false !== ($fname = readdir($dir))) { $info = pathinfo($pathToImages . $fname); if( strtolower($info['extension']) …

Member Avatar for pixelsoul
0
165
Member Avatar for GlenRogers

Hi, I have a problem I just cant solve. First I will explain what I am trying to do. I have a page with a menu consisting of categories of products, some of these categories have subcategories and some don't. Categories and subcategories are kept in mysql tables. The tables …

Member Avatar for GlenRogers
0
1K
Member Avatar for Buppy

So, i enabled mod expires to my web page. Here's the code i used: <IfModule mod_expires.c> ExpiresDefault "access plus 2 months" ExpiresByType image/x-icon "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 …

Member Avatar for cereal
0
179
Member Avatar for bals
Member Avatar for nstrazimiri

hi. i want to load and read a file in php. i wrotte this code but it doesn't work. i want when the user loads a txt file, then it will be shown in the page. i can use fopen but i dont know its directory for example. any help …

Member Avatar for NardCake
0
156
Member Avatar for nstrazimiri

Hi. I want to remove lines with same text. i wrote this code, but it doesnt work. where is the problem ? $total=$_GET['name']; $keyarr=explode("\n",$total); $int=sizeof($keyarr); for($a=0;$a<$keyarr;$a++){ for($b=$a+1;$b<5\$keyarr;$b++){ if($keyarr[$a]==$keyarr[$b]){ unset($keyarr[$b]); } } } echo $keyarr[$int-1]; foreach($keyarr as $new){ echo $new."<br>"; }

Member Avatar for nstrazimiri
0
179
Member Avatar for spluskhan

My code Search_restl.php <html> <body> <head> <font size="3"><strong> <?php // Connects to your Database mysql_connect("mysq.com", "bd", "pass") or die(mysql_error()); mysql_select_db("products") or die(mysql_error()); $q = mysql_real_escape_string($_GET['query']); $data = mysql_query("SELECT * FROM Products where name LIKE '%$q%'") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { echo "Product Name: $info[name]<br>"; echo "Grade A: …

Member Avatar for spluskhan
0
207
Member Avatar for hallianonline

hello everyone i am facing a little problem I have a 3 dependent selectboxes and i want to save the selected values in the session so user can remember what category i selected before also it prints the last visited link here is my code pelase tell me what code …

Member Avatar for broj1
0
196
Member Avatar for Jfunch

I have cart that sends its information to paypal with the hidden html inputs. My problem is when the user finishes the payment in paypal my script the the paypal return sends its return url is not processing the information. When the user clicks pay in paypal it does redirect …

Member Avatar for LastMitch
1
413
Member Avatar for DaveyMoyes

Hi Everyone, I have the following piece of code & I am trying to use to create an array of "Playing Cards" from a mysql db. I am just not sure how to one single complete array ! Thanks for looking and replying with your suggestions

Member Avatar for DaveyMoyes
0
117

The End.