39,326 Topics

Member Avatar for
Member Avatar for Monster Killer

Hello. I have a python script to post news a website but i want to know how i can pass variables from php to the python script and run the script from php. Python script: (I didn't create this, was done by a friend) [CODE] import urllib2, urllib USER = …

Member Avatar for Padiamon
0
9K
Member Avatar for Djmann1013

I have this code I made: <?php $to = "example@random.co.uk"; $$subject = "Email"; $message = " Hi, Dave! "; mail($to, $subject, $message); ?> It works fine in Chrome, but in Opera, it is obsolete. Can anyone tell me why? I thought PHP processes on the server, not the client.

Member Avatar for blocblue
0
117
Member Avatar for tcampbell011

Hi, this is a super basic question but my classes are not working the way I expect them to. I am a CS student in my second year so go easy on me! The only other language I know is Java. Here is my class, called class.Team.php (represents a team). …

Member Avatar for Squidge
0
222
Member Avatar for NardCake

Hello! Me and my friend are developing a website, it's being hosted on [1freehosting](http://1freehosting.com) until we finish it (as we dont want to be paying so much money for an unfinished product). since monday the server has been down or something and I can't access the webpage, we have had …

Member Avatar for NardCake
0
119
Member Avatar for rajesh.goblet

I made a wesite which have a webforum something like this site. Where a user can send message to each other. i am using php-mysql. i want to know how to store info about if user had read his message or its still unread. my site is [www.thar.co][1]. mysql table-column …

Member Avatar for rajesh.goblet
0
267
Member Avatar for klemme

I was asked to help a friend to rewrite urls for a site he has a client. The link structure looks like this: <a href="http://sitename.dk/index.php?page=wisetrap">WiseTrap</a> // URL: sitename.dk/index.php?page=wisetrap Is it possible to keep the link structure like that, but after the link is clicked make it appear in the url …

Member Avatar for diafol
0
223
Member Avatar for jayson.ako_1

help, i would like to put a conditional statement if the quantity that customer will buy exceeds the remaining quantity in the inventory,and it will prompt a message that the transaction is invalid, heres my code.in buying portal.advance thanks for the help :) <?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for jayson.ako_1
0
216
Member Avatar for tiekwebstar

I got a great response from this site. now my final thing is show gif loading image while getting data in Ajax.. my code is : function vote(id) { var result = new Array(); document.getElementById('sub-cat').innerHTML = ajax_image; result = $.ajax({ type: "POST", url: "ajax.php", data: "id="+id, async: false }).responseText.split("^"); document.getElementById('sub-cat').innerHTML …

Member Avatar for scrager
0
2K
Member Avatar for bsewell

Hello, I have done some filtering in an array using unset. The problem is that if I do a var_dump on the array after the filtering, then some of the keys are missing. Eg, key 2 isn't showing. So what I would like to do is to remap the keys …

Member Avatar for bsewell
0
93
Member Avatar for kishoresai438

Hi Team, This is Kishore, I have good experiance in Core PHP with Mysql. I am looking for learn new tools like frame work or CMS. I have 3.9 years exp in PHP Environment. Now I am looking for job change, So i want to improve my skills. Please suggest …

Member Avatar for anthonydiaz680
0
162
Member Avatar for Avicii

<div id="rightContent"> <div id="contentBox" class="right"> <div id="contentPadding" style="padding: 10px 10px 5px 10px;"> <div id="slickTitle" class="hotelStat"> <?php $userReg = mysql_num_rows(mysql_query("SELECT * FROM users")); ?> <?php echo $userReg; ?> Registered Users </div> <div id="slickTitle" class="hotelStat"> <?php $totalFurni = mysql_num_rows(mysql_query("SELECT * FROM furniture")); ?> <?php echo $totalFurni; ?> Total Furniture </div> <div id="slickTitle" …

Member Avatar for Avicii
0
147
Member Avatar for doha786

today 1st time i'm trying ot learn recursion funtion thru online tutorails but stuck at begining stage. i found below code but anything i give value its provide me output: 1 so, i need better explanation of that: function factorial($n){ if($n==0){ return 1; } return fact($n, 1); } function fact($i, …

Member Avatar for blocblue
0
89
Member Avatar for romanromeo89

Hello, I'm trying to send a new user info (username & password) to a php file (register_check_0.php) using ajax with jquery so i can check if user already exists. I use the post request below: $.post("register_check_0.php", { username: $("#username").val(), password: $("#password").val() }, function(data,status){ var result=data; if(result=="success"){ counter+=1; $("#registration").load("register_1.php"); } } …

Member Avatar for romanromeo89
0
1K
Member Avatar for bettybarnes

I have a textbox which pulls the maximum value from DB. But it gives wrong value. Can you help figure out what went wrong here? **basicfunction:** private function basicInformation() { // initialize variables $host = "localhost"; $db_name = "test"; $tbl_name = "ballpark_details"; $username = "root"; $password = ""; // connect …

Member Avatar for adam.adamski.96155
0
163
Member Avatar for moadah

i going to do college website which is best Zend or Cakephp framework to do it if there is another framework best tell me

Member Avatar for kevinp2012
0
124
Member Avatar for dancks

I'm on the school server. So before I start I need to say I don't have a choice. I'm tired of reading post with nothing more than "Tell your administator to upgrade". I know. Stop. If I see it its getting flagged as spam. I don't really understand what about …

Member Avatar for diafol
0
154
Member Avatar for Arskap

Hi everybody, i want know how make admin panel and to it news system via [b]PHP[/b] and [b]Mysql[/b]! Is here anybody who knows how make it, and if here is somebody who knows, then can you help me? I'll try make a website where is news about sport things what …

Member Avatar for arun781
0
781
Member Avatar for amith_ami

hi all... pls help me... i have a problem with editing the record... my adding and editing page are same.... adding works properly but while editing a record for ex : if i change the emailid of a record and if the newly given emailid is already exists in the …

Member Avatar for amith_ami
0
96
Member Avatar for hwoarang69

my cookies not seem to be working. the seesion works fine tho. am i missing some thing? o and i doesnt print echo"on"; if($remember_p == "on") { //remember username for 42 hrs setcookie("id", $id, time()+20); setcookie("username", $username_p, time()+20); //seconds //header("location: index.php"); if(isset($_COOKIE['username'])) { echo"on"; } } else if($remember_p == "") …

Member Avatar for LastMitch
0
78
Member Avatar for hwoarang69

Notice: Undefined index: remember in C:\xampp\htdocs\E_COMMERCE\login.php on line 15 line15: $remember_p = $_POST['remember']; it looks right to me. any ideas? <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $username_p = $_POST['username']; $password_p = $_POST['password']; $remember_p = $_POST['remember']; ..... } ?> <div id = "right_login"> <form id='login' action='login.php' method='POST'> <h1>Log in to your account!</h1> …

Member Avatar for hwoarang69
0
117
Member Avatar for cussel

> hey guys, how to make bold values array building key array below to data1 and data2? if each index [0] => Array ( [0] => 0 [1] => 2 ) bold array data1 if each index [1] => Array ( [0] => 1 [1] => 4 ) bold array …

Member Avatar for LastMitch
0
351
Member Avatar for hwoarang69

alot of people told me iam using this the old way and i dont understant the newer way. can some one help me out.. iam trying to build form that will run same file. so i have only one file called login.php my form should run php script inside itself, …

Member Avatar for hwoarang69
0
132
Member Avatar for dinhunzvi

i have a form with a text box and a drop-down list. the form submits to itself. when the user submits the form for processing the form must be able to retain the selected value from the drop list if there is an error. here is the code for the …

Member Avatar for adam.adamski.96155
0
340
Member Avatar for masocha

stdClass Object ( [0] => Array ( [0] => stdClass Object ( [id] => 123445566 [name] => Sharer Name [offset] => 0 [length] => 14 [type] => user ) ) [23] => Array ( [0] => stdClass Object ( [id] => 123456778_page_id_i_want [name] => Page Name [offset] => 23 [length] …

Member Avatar for blocblue
0
305
Member Avatar for subrata_ushasi

Hi all , I have a wevservice link say http://abc.com/wscom/MKWebService.rem from where I am trying to return value giving some parameters . The method and parameters are given below. method : GetInfo Parameters: string LicenseID string password Return Value: struct AnswerInt Now I have two xml files request.xml and response.xml …

Member Avatar for pritaeas
0
335
Member Avatar for fattpacman

Hi, I've just switched web hosts, and I have this script that ultimately connects to a database and displays it on a webpage. It used to work fine, however now I can get it to display the database info in the webpage, however I can't update the fields. I can …

Member Avatar for diafol
0
294
Member Avatar for GlenRogers

Hi. I need a way of deleting images from a gallery. The images are in 2 folders: thumbs and full size. The pathnames are in 2 tables: image_thumbs and images. The gallery displays clickable thumbs. Should I delete the images from both folders and the entries from both table or …

Member Avatar for diafol
0
329
Member Avatar for double_cola

Hey guys I have a page where a user can drag and drop ellements into divs 's and everything works great, but I need the div to only accept 1 element. Check it out [Click Here](http://www.cintascsr.com/test_site/report/) Right now you can drag both pdf docs into one "send to print" div. …

Member Avatar for AleMonteiro
0
323
Member Avatar for manivannan.ajith
Member Avatar for shahai.ali

hi i m very new to ajax and i want to have incomplete results like in the following image of google: ![upload1](/attachments/large/3/upload1.png "upload1") please help me for this purpose and for more experties in ajax

Member Avatar for JorgeM
0
200

The End.