39,316 Topics

Member Avatar for
Member Avatar for wxflint

What I an wanting to do here is have the script email me when the user count reaches X number of listeners on my RR Scanner Feed. Is This Possible? [CODE]<?php $filename = '<script language="JavaScript" src="http://api.radioreference.com/audio/listeners.php?feedId=10734"></script>'; $fp = fopen( $filename,"r"); if ($filename >= X) { //// ($email Me @ My …

Member Avatar for wxflint
0
121
Member Avatar for sbrohee

Dear all, I am certainly not a web developer nor a computer scientist but a little biologist. I developed my tool to analyze some high-throughput biological results and I'd like to make it available online. My prototype : [URL="http://homes.esat.kuleuven.be/~sbrohee/test/new_gsea/php/"]http://homes.esat.kuleuven.be/~sbrohee/test/new_gsea/php/[/URL] Just to make it simple, the user must have the choice …

Member Avatar for Airshow
0
218
Member Avatar for Sorcher

This code does not update my mysql. [CODE] //the $q is sent from ajax and looks like this thumbsup.546 or thumbsdown.567 //the $q is sent trough a working ajax function and looks like this <a href="#" onclick="thefunction(thumbsup.'.$row['wallid'].');">[+]</a> $q = mysql_real_escape_string($_GET['q']); $findme = 'thumbsup'; $pos = strpos($q, $findme); if($pos == TRUE){ …

Member Avatar for Sorcher
0
97
Member Avatar for mombasageek
Member Avatar for mombasageek
0
56
Member Avatar for accra

Am having a hard time printing all record percent in my db my sql statement [CODE]$query="SELECT *, duedate,(TO_DAYS(duedate) - TO_DAYS(CurDate())) as difference FROM vehicle_info ORDER by svreg"; //$query="SELECT * FROM vehicle_info WHERE id='$id' ORDER by vreg"; $pager = new PS_Pagination($conn,$query,10,10); $accra = $pager->paginate(); while($row = mysql_fetch_assoc($accra)) { $id = $row['id']; …

Member Avatar for pritaeas
0
115
Member Avatar for trickist17

Hello, I have a problem with the response text of an ajax request. I want to use the answer of the php script ("true" or "false") to do different things with a if-condition, but it always takes the false option. Here is the code. [CODE] var hr = new XMLHttpRequest(); …

Member Avatar for AleMonteiro
0
1K
Member Avatar for accra

[ICODE]Is there a way to expand and collapse included PHP content? Any code examples pls. [/ICODE]

Member Avatar for pritaeas
0
73
Member Avatar for magicmarkuk

Hello I wonder if anyone could help me with the following please? I have scratched my head and played around but not been able to move forward. I am creating a script to redirect a user to a random link on my site. The first part of the code extracts …

Member Avatar for simplypixie
0
155
Member Avatar for uvray90

Hello Friends...:) I am a part time web designer and small time PhP developer by side. I recently got a request from one of my clients that he needs a site in which he is offering some service( some spiritual advice kind of stuff based upon your date of birth …

Member Avatar for RazorRamon
0
182
Member Avatar for capton

Please i want to set sessions in my php file which includes a form but the session doesn't work.This is my code sample. I need help please! [CODE=php] <?php $conn=mysql_connect("localhost","root",""); mysql_select_db("my_db"); session_start(); if(isset($_SESSION['count'])) $_SESSION['count']=$_SESSION['count']+1; else $_SESSION['count']=1; if(!($_SESSION['count']=$_POST['reg'])) die("SESSION NOT SET SUCCESSFULLY!"); else echo "SESSION SUCCESSFUL!"; ?> <html><head></head><body> <form method="POST" action="<?php …

Member Avatar for capton
0
161
Member Avatar for rapidwein

<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="Raphael.js"></script> <script type="text/javascript"> <?php include("class.logger.php"); //path to class.logger.php file $log = new logger(); //Instentiate the class $log->dbconnect(); //connect to database //pass the name of the table as the parameter. I.e. 'logger" $log->createtable('logger'); //set date and year text for the info bubble that appears …

Member Avatar for broj1
0
220
Member Avatar for Surfsup

I have a very simple script (below) that works fine when sending email to a single email address, however when I add another (as I have in the script below) by seperating with a comma, the script just sends the email to one of the addresses twice and not to …

Member Avatar for NinjaMediaD
0
2K
Member Avatar for Mve83

hi please can someone help? I have designed an applicant form that posts data to session variables then at the end of the application it puts all session variables in an array. I then have a template.rtf file which I copy and rename to $_session['last name']_timestamp.rtf I then open for …

Member Avatar for diafol
0
525
Member Avatar for nexocentric

I'd like to start by thanking whoever reads this for their help. I've been trying to learn Test Driven Development (TDD) in a php environment. I've read a lot about it and stumbled upon both PHPUnit and simpletest. I've spent the past 8 hours searching the internet for tutorials and …

Member Avatar for nexocentric
1
247
Member Avatar for angel4
Member Avatar for pritaeas
-1
30
Member Avatar for anthonyjpv

Im building a simple yet robust small e commerce site what i wanna know is: is it more safe and secure to add the mysql commands such as select add update delete in the same html form or create another php file for that as a process? example: i have …

Member Avatar for broj1
0
83
Member Avatar for mohamedasif18

Hello Everyone ! How to split each array to own variable and display that variable separately . I got code from IP API provider to display user's location, [CODE]include 'ip2locationlite.class.php'; $ipLite = new ip2location_lite; $ipLite->setKey('c86c104532b5466bda7620b48e20b10ca53ad9070b8cc52b5a5d90a6e57b9bb3'); $locations = $ipLite->getCity($_SERVER['REMOTE_ADDR']); $errors = $ipLite->getError(); echo "<strong>First result</strong><br />\n"; echo count($locations); echo '<br><br>'; foreach …

Member Avatar for diafol
0
219
Member Avatar for robjan

I developped a cms system to upload images with php to a mysql database and a upload folder on the server. Firefox version 5.0.1 for MAC and earlier have no problems with file uploading through the script. But after that version it is impossible to upload images bigger then 250kb. …

Member Avatar for robjan
0
203
Member Avatar for JukesK

how can i select all records from a table where a future date column is less than 14 days away within a php table. somthing similar to? [CODE]SELECT DISTINCT FROM table WHERE 'Date_Column' <14 days [/CODE] Thanx In Advance KeeF

Member Avatar for JukesK
0
100
Member Avatar for vijaykavin10

Hi I need to set the filter in imap_search the condition is filter should take the yesterdays date dynamically $gmail = imap_search($inbox,"[COLOR="Green"]ON 01-01-2012"[/COLOR]); Thanks

Member Avatar for vijaykavin10
0
249
Member Avatar for lovelylaya

Hi guys, I tried installing the joomla 1.5.22 version using XAMPP. Can someone send me a link that works. In the tutorial i was asked to create a mysql database (name: joomla) and which when executed showed numerous errors. Kindly guide

Member Avatar for lovelylaya
0
175
Member Avatar for hhall56

Thank you pritaeas for prior assistance. I have another problem for someone. My query complains with this message "query was empty" and I can't undetstand why. Need help please see code below. <?php $db="freedomone"; $link = mysql_connect(""); if (!$link) die("Couldn't connect to MySQL"); mysql_select_db($db , $link) or die("Couldn't open $db: …

Member Avatar for facarroll
0
187
Member Avatar for lerix20

Hello Guys, Please i have finding it very hard to convert this javascript snippet to php where values or content can be retrieved from DB. SELECT SQL Statement to retrieve the value from the DB is listed below. I also attached an external script (scroller.js) to make the scroller run. …

0
66
Member Avatar for smohhh

Hey all, I'm having a horrible time with a multidimensional array that I'm trying to create. I understand why it's creating it the way that it is, but don't know how I can fix it. If someone can assist, that would be amazing. Here's the current output: [code] Array ( …

Member Avatar for cereal
0
242
Member Avatar for lolimsoasd

Hello, I'm trying to make a facebook wall-alike php script. It loads the posts stuff, photo url and user stuff like username and user id from my MySQL database. It also checks if the post is just a comment to another post (parentof). I can present all the original posts …

Member Avatar for diafol
0
871
Member Avatar for klemme

Hi all, I want to replace these charachters: Æ,Ø,Å,æ,ø,å, with, AE,OE,AA,ae,oe,aa I thoght I could use preg_replae this way to accomplish that, but if i write this word in the form: "Bælter" - All that is left to be inserted into the DB is "B" - So I am removing …

Member Avatar for klemme
0
182
Member Avatar for ceteris

[CODE]$result = mysql_query("SELECT * FROM products WHERE product_code='$id'");[/CODE] i dont know whats the error here. please help me

Member Avatar for ceteris
0
96
Member Avatar for Ashstyx

hello, i would like to know the code to redirect my site to another page once i have submitted information to a registration page, the code i have is this: require_once('extensions/register.php'); ?> <link rel="stylesheet" href="stylee.css" type="text/css" /> <form name="register" id="register" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" style="display:inline;"> <table width="100%" border="1" cellspacing="0" cellpadding="5"> …

Member Avatar for diafol
0
224
Member Avatar for Akshat Chawla

I have a webpage in which the records of student are being displayed which are stored in database there are many modules.I have to fetch the data from the database and display the graph according to their numbers that are stored in the database ... the graph is of any …

Member Avatar for diafol
0
155
Member Avatar for 21122012

It is supposed to list out all records of roomID 57, but the record is duplicate. <?php require '../../source/authentication.inc'; session_start(); sessionAuthenticate(); require_once('../../config/conn.php'); ?> <?php require_once('../../config/conn.php'); $roomID=$_GET['roomID']; $sql="SELECT * FROM roomBooking where roomID = '$roomID'"; $rs=mysql_query($sql,$conn); $row_rs = mysql_fetch_assoc($rs); $count=mysql_num_rows($rs); $roomID=$row_rs['roomID']; $bookingDate=$row_rs['bookingDate']; $startTime=$row_rs['startTime']; $endTime=$row_rs['endTime']; $numberOfPeople=$row_rs['numberOfPeople']; ?> <!DOCTYPE HTML> <html> <head> <meta …

Member Avatar for pritaeas
0
207

The End.