39,316 Topics

Member Avatar for
Member Avatar for bernic.ion

Hi, I have a problem whith my multisite wordpress website. On my local server is all ok but on the server i have an 400 bad request error. I think that this is a problem problem with my Web server. Here are some code snippets of my .htacces file. # …

Member Avatar for LastMitch
0
201
Member Avatar for adishardis

Hi, I have a 'persons' table, an 'answer' table and a 'token' table. The token table contains matching unique identifiers from the persons table and the answers table. In my query I want to join the persons table with the answers but I don't know how to proceed since they …

Member Avatar for adishardis
0
136
Member Avatar for winbala5

hi all, am trying to add google chart to my application. i want a graph like the one attached. Below is the code which i am using to generate the GRAPH. i am able to generate for only 1 graph My question is how to pass value dynamically and to …

Member Avatar for pritaeas
0
240
Member Avatar for davy_yg

Hello all, Cek this page: [image gallery](http://www.rustoleum-indonesia.com/aerosol-produk.php) That's static image gallery - and I am trying to create backend for it. If I upload new pictures to edit the existing pictures, they will have random name, then how does the computer now where to place each random name ? (since …

Member Avatar for pixelsoul
0
223
Member Avatar for hostguy

Actually i've a page named(vehicle.php) inside apache server and Java api page (someheader://someip:someport/track/Track?page=map.fleet) inside tomcat server. I created a Restful Webservice in PHP using this link "http://viralpatel.net/blogs/restful-web-service-tutorial-introduction-rest-restful/" And then i sent a username and password from apache server to the java api through webservice, it sends the request correctly and …

Member Avatar for pritaeas
0
183
Member Avatar for George_91

I'm creating a website which requires a Login. When it logs in the system it creates a Session. But I don't know how to validate my next page. Because if the user types the name of the second page in the browser, it enters without problem. What I want is …

Member Avatar for Webville312
1
23K
Member Avatar for nevek

I have for example an objec room which has an atribute floor which is text. Let's say that `$room->floor = "hi i'm a floor"` my querry statement would be `"UPDATE room SET floor=$room->floor where id=room->id"` when I insert it with php into a mysql db it gives an error because …

Member Avatar for broj1
0
194
Member Avatar for deepak.fugo

Hi All, We have website on Shared hosting. I am a newbie. i have installed PHPUnit testing framework on the server. When i try to run a test case in command mode(phpunit --help), i am getting error as attached screenshot. Kindly help me in executing PHPUnit. Regards,

Member Avatar for ahmedhamdy
0
256
Member Avatar for dinhunzvi

i have the following tables in my database: CREATE TABLE `tblbrands` ( `brandid` tinyint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, PRIMARY KEY (`brandid`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; CREATE TABLE `tblcars` ( `carid` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `brandid` tinyint(2) unsigned NOT NULL, `typeid` …

Member Avatar for pritaeas
0
2K
Member Avatar for janskey15

<?php include "dbConfig.php"; $sql_query = mysql_query("SELECT SubjectID, SubjectDesc, FROM tbl_subject"); ?> <select name="X" value="X"> <option value="Choose">Choose</option> <?php while($fetch = mysql_fetch_array($sql_query)) { ; ?> <option value="<?php $fetch['SubjectID'];?>" selected="selected"><?php echo $fetch['SubjectID']; ?></option> <?php } ?> </select> INSERT code <?php include "dbConfig.php"; $Y = $_POST["Y"]; $query="INSERT into tbl_subjectsenrolled(SubjectID) values('".mysql_real_escape_string($Y)."')"; ?> But I cannot …

Member Avatar for janskey15
0
228
Member Avatar for gpoo

Hi Friends, Currently, i'm working on sms processing. I need to create an application to receive and store the sms in database. I have tried this with vb.But i didn't work perfectly.Could anybody help me on how to receive sms and store in php without using any third-party software? Since …

Member Avatar for wayneh
0
562
Member Avatar for bamastangguy_1

Hello, I am working on a project where someone will install my code on their server and it will collect certain information held in their database and then report that information back to me. I am trying to figure out the best way to go about this using php to …

Member Avatar for naphets
0
130
Member Avatar for m.tompkinsnz

Hi, Doing a bit of research at the moment on how to structure my web App. So far I've decided on using PhoneGap with jQueryMobile client-side, which will request and update information in a database hosted on a remote server running php and mysql. From the tutorials I've seen online, …

Member Avatar for LastMitch
0
226
Member Avatar for dados

I need function to serving different data depend on browser type, mobile or desktop.. I need something like this <?php if browser_resolution_small { // one type of data } else { // another type of data for big resolution } ?> so I need to pull different data but I …

Member Avatar for IIM
0
881
Member Avatar for Rizi004

Hello everyone I have develop webiste http://uniofyou.com.au/ the problem is that the text is not displaying if you open webiste from MAC chrome. The website is working perfectly fine in IE7+ chorme firefox, but only in MAC displaying prblem it not display any text it only displayin images. Can any …

Member Avatar for broj1
0
83
Member Avatar for fheppell

I've written this code to <?php $getnamequery = "SELECT cat_title FROM store_categories WHERE id = '$catid'";?> <?php $cat_name = mysql_query($getnamequery) or die(mysql_error());?> What would happen is the variable `$catid` would be filled in with a number, for instance 1. The table store_categories looks like this id cat_title 1 Humor 2 …

Member Avatar for fheppell
0
3K
Member Avatar for OsaMasw

I want to implement simple file upload with progress I like the services provides by [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload) I tested the example provided with script <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>jQuery File Upload Example</title> <style> .bar { height: 18px; background-image: url('img/progressbar.gif'); } </style> </head> <body> <input type="text" name="textfield" /> title <input …

Member Avatar for OsaMasw
0
668
Member Avatar for anurag2013

Please visit http://www.cuteework.com/members.php Login button not work. here is members.php file details. <?php session_start(); session_register("id_session"); session_register("password_session"); include "header.php"; include "config.php"; $a=""; $b=""; if ($_POST) { $a=trim($_POST["id"]); $b=trim($_POST["password"]); $a=str_replace("'","",$a); $b=str_replace("'","",$b); $a=str_replace("\"","",$a); $b=str_replace("\"","",$b); } if ($a=="" || $b=="") { if ($_SESSION["id_session"]=="" || $_SESSION["password_session"]=="") { ?> <form action=members.php method=post> <br><br><Center><table><tr><td colspan=2 align=center><h3>Members Login …

Member Avatar for anurag2013
0
249
Member Avatar for TJVR

Hi I have a php code that uploads a file to mysql db then I detrmine the id of the last inserted file and download the file .e user is asked if he wants to save the file and then asked for te file name. I want te php to …

Member Avatar for fox1234
0
158
Member Avatar for ayesha789

Hi, I have developed a website using Fireworks + Dreamweaver and website is for 1024X768 pixels. Now I want , it detects the browser and resolution of the user and if user resolution is 800X600 it shows a web page of 800X600 . i have developed in both resolutions. please …

Member Avatar for dados
0
8K
Member Avatar for mjsmitten

I have the following code. The QUERY is custom and give me results based on category. After some checks I can acces items inside that category. Using the functions posted below. If there are more items inside that category I want to retrieve a random from those results. Is it …

Member Avatar for mjsmitten
0
345
Member Avatar for mjsmitten

AFTER a query for 1 category I receive details back. 1 category can have more items. The items have sequental id's but not in normal order. While (category_items()) { echo item_id(); // checking this give me for example id 1, 3 and 5. } I want to select one random …

Member Avatar for mjsmitten
0
138
Member Avatar for help_lucky

Hi All, I wish you a Happy new year!!!.. My requirement is to upload an excel file using PHP and to update the data in MSSQL. For which i have designed a screen so that the user can browse 2 input files and update the database. html code for the …

Member Avatar for helpplss
0
336
Member Avatar for Fiorentino01^

Hi I finally screwed up.In order to get rid of a minor problem I uninstalled Wamp Server and reinstalled it.Now when I try to start it it will not accept my old password.What can I do? Do I have to uninstall everything mySql, Workbench,Wamp server and maybe php? Another thing, …

Member Avatar for Fiorentino01^
0
252
Member Avatar for davy_yg

connection.php <?php $servername = "localhost"; $username = "*******"; $password = "*******"; $database = "rustoleum"; mysql_connect($servername, $username, $password) or die("Not connected"); mysql_select_db($database) or die("Not connected to the database"); ?> How do I find the servername for my online hosting?

Member Avatar for IIM
0
158
Member Avatar for davy_yg

This time, I am trying to retrieve data: input_berita_static.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['news']) ? $_POST['news'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? …

Member Avatar for broj1
0
174
Member Avatar for TonyG_cyprus

Hi guys' I'm having trouble with this code <?php $link=sqlite_open('data/3001.sqlite ',0666,$sqliteerror); $comp=sqlite_query($link,"SELECT * FROM assets WHERE asset='chest'"); while($ent=sqlite_fetch_array($comp)){ $item=$ent['content']; $asset= "array(".$item.")"; echo $asset; } $saved=array('food','knife'); $left=array_diff($asset,$saved); echo $left; ?> the echo $asset line displays "array(array(food,knife,scarf,torch,key)" but I get an error Warning: array_diff() [function.array-diff]: Argument #1 is not an array in …

Member Avatar for pixelsoul
0
136
Member Avatar for spluskhan

suppose i have 10 products in my database Example: iphone 2 - iphone 3g - laptop i3 - laptop i7 - nokia n96 etc when i enter iphone in my search i see all records stored in database thats my prob! what i want ? suppose if i enter laptop …

Member Avatar for spluskhan
0
344
Member Avatar for davy_yg

I have this codes: login.php <div id="loginbox"> <table> <form action="proses.php" method="POST"> <tr> <td>Login:</td> <td><input size="30px" type="text" name="username" value=""/></td> </tr> <tr> <td>Password:</td> <td><input size="30px" type="password" name="password" value=""/></td> </tr> <tr> <td></td> <td><input type="submit" value="OK"></td> </tr> </form> </table> </div> proses.php <?php $servername = "localhost"; $username = "root"; $password = ""; $database = "rustoleum"; …

Member Avatar for davy_yg
0
191
Member Avatar for davy_yg

input_berita_static.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['news']) ? $_POST['news'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; echo $id; //Load berita if …

Member Avatar for IIM
0
170

The End.