39,316 Topics

Member Avatar for
Member Avatar for -==Zero==-

Iam Using This Code [CODE]$result = mysql_query("SELECT games.*, console.name AS gconsole , genre.name AS ggenre , company.name as gcompany, status.name as gstatus from games as games left join console on (games.console = console.id) left join genre on (games.genre = genre.id) left join company on (games.company = company.id) left join status …

Member Avatar for -==Zero==-
0
151
Member Avatar for urbanthistleuk

Good Morning, I am recently new to php development and have come across an issue that I can't quite get my head around and need some assistance if possible. I have been tasked to build a Task Logger in php which I have successfully done and is working fine, the …

Member Avatar for vaibhav1983
0
198
Member Avatar for asif49

On a search engine for my website I use a html form to send a value to the next page then that page processes it and creates several pages on which the results will be spread out between. This is the part of the php script which GETs the variable …

Member Avatar for vaibhav1983
0
109
Member Avatar for bossie09

The following code contain some errors which im unable to locate. The problem is.....Im doing search and update. Im able to search the database and update Animal_Type and Animal_Breed BUT cannot update Premium_Habitat and Age...... Can some one locate that fatal error please Thanks [code]<?php include("svrconfig.php"); $svr_connect = mysql_connect("localhost","root","magicpass"); if(!$svr_connect) …

Member Avatar for bossie09
0
162
Member Avatar for aaloo

this is my code [code] <?php $subject = $_POST['senderName']; $message = $_POST['senderMsg']; echo $subject; ?> [/code] and i m getting this error Notice: Undefined index: senderName in C:\xampp\htdocs\flasblog\mail.php on line 3 Notice: Undefined index: senderMsg in C:\xampp\htdocs\flasblog\mail.php on line 4

Member Avatar for makman99
-1
155
Member Avatar for primacag

Any help appreciated in advance.... I have been trying to get a javascript to use ajax to call a php script to read from an mysql database and write out an xml dom document so that I can add markers to a google map. I think I have all the …

0
84
Member Avatar for AliHurworth

Hi all, I have a database which I would like to use to power an HTML list. I'm struggling to get the loop to print out more than one line. This is the script: [CODE] <?php $query = "SELECT * FROM `table` ORDER BY `year` ASC"; $resultID = mysql_query($query, $conn) …

Member Avatar for AliHurworth
0
204
Member Avatar for jacksantho

Hi, I am facing the parser error in the following line: [CODE]<td><select name="type"><option value=" ">select the type</option><option value="C" [B]"'.if(trim($_POST['ctype2'])=="C") echo "selected".'"[/B]>Calcium</option><option value="V">Vitamin</option></td> </tr> [/CODE] Error: Parse error: syntax error, unexpected T_IF in C:\xampp\htdocs\test.php on line 78

Member Avatar for bijoy340
0
221
Member Avatar for furlanut

Hi, I have been learning PHP/Mysql for only a few moths and am working on my own dynamic web-site. Stuck on what is probably very simple. User inputs name($name)in form. Table containing it has 15 fields - $name could be in any or none How do I put $name into …

Member Avatar for cwarn23
0
101
Member Avatar for ittanfkh

the view_count of the notes table will increment 2 times everytime i click the button that link into this page.. need help desperately.. thanks! [CODE]<?php ob_start(); $note_id=$_GET['note_id']; include 'fconnect.php'; if ($note_id!=null) { $query_ncount = "UPDATE notes SET view_count = (view_count+1) WHERE note_id = '$note_id'"; $result_ncount = mysql_query($query_ncount); if(!$result_ncount ){ die('invalid …

Member Avatar for ittanfkh
0
190
Member Avatar for alfiechiong

Hi can i ask for help pls. I have this xml values from a given xml file i wanted to retrieved it from there and when I was trying to retrieved it and echo it out it shows the correct value together with the decimal values. But when the i …

Member Avatar for alfiechiong
0
115
Member Avatar for jacob21

Hi I am getting uploaded image in text format. [B].txt[/B] need help & suggestions. [CODE] $email_from = "resume@ihmjobs.com"; // Who the email is from $email_subject = "Attached image"; // The Subject of the email $email_message = "Name : "; $email_message .= $_POST['name']."<br>"; $email_message .= "Message : ".$_POST['message']."<br>"; // Message that …

Member Avatar for jacob21
0
235
Member Avatar for muze

hello guys... I have an html page inwhich I collect some data using text boxes. Now in this page, I have button and I set the action attribute of [B]<form>[/B] a php script like this. [CODE] <form action="test.php" method="post"> ----- [/CODE] Now this does the job. But the problem is …

Member Avatar for codewalkz
0
6K
Member Avatar for asif49

I've been following several tutorials in order to build a simple search engine for my website. But I can't seem to be able to do pagination I.E show results by pages (10 per page). I'll list the code I have thus far and hopefully if there's someone well versed with …

Member Avatar for codewalkz
0
88
Member Avatar for knottykings

Pls I need help on this validation script. Even after logout and without login, I can access the assigned webpage. What might be wrong?? [CODE]<?php //Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if(!isset($_SESSION['login']) xor (trim($_SESSION['login']) == '')) { header("location: login.php"); exit(); } ?>[/CODE]

Member Avatar for nagarjunrajen
0
181
Member Avatar for cjohnweb

I've been looking, and there seams to be a lack of Ron Paul (for president 2012) Wordpress Themes. So I think I'm going to have to make my own...but then I remembered I suck as design. So I was wondering if anyone might know of a good resource where I …

Member Avatar for kertjoert
0
115
Member Avatar for dirgha

hello sir, i want to post or upload photo in the face book by using the api , please tell the php code of it. hoe to use the api of face book ,twitter, photobucket etc. please tell code how to use as soon as possible its urgent. thanks.

0
42
Member Avatar for serioussam

i'v created a registration form with all validations but i don't know how to validate a checkbox to hide/active submit button as per checkbox value is checked or not. can anybody help me to solve this......? plz reply me on [snipped]

Member Avatar for jmichae3
0
44
Member Avatar for dean8710

can anybody share, the best encryption and decryption technique in PHP. here i just found 3 ways. are that any better technique? [QUOTE][ICODE]<?php //1 $password = 'mothafucka'; $sSalt = '8*S&AsEc4qUs'; $sHash = hash( 'whirlpool', $password . $sSalt ); echo $sHash."<br><br>"; //2 $password = "palancau87"; $password = sha1($password); $password = md5($password); …

Member Avatar for dean8710
0
170
Member Avatar for maxlipman

Hi, Here is what I want to do: I already have a php login system and I want to integrate a private messaging system into it. Does anyone have any recommendations of Private Messaging scripts? Thanks so much, Max.

Member Avatar for ronysios
0
229
Member Avatar for phorce

Hello, I'm having a problem with a script I'm working on, basically, it outputs a SQL query in JSON, however, it's not doing it properly.. E.g. Right way: [{"id":111,"title":"Event1","start":"2011-10-10","url":"http:\/\/yahoo.com\/"},{"id":222,"title":"Event2","start":"2011-10-20","end":"2011-10-22","url":"http:\/\/yahoo.com\/"}] Wrong way: [{"id":"1","title":"dfssafsaf","start":"2011-10-22","url":"http:\/\/yahoo.com\/"},{"id":"3","title":"dfssafsaf","start":"1-1-1","url":"http:\/\/yahoo.com\/"}[b],][/b] As you can see it inserts a ",]" and I only want it to show "]" because it's …

Member Avatar for pritaeas
0
56
Member Avatar for Mve83

Hi I am somewhat a noob when it comes to php and have stumbled on something I cannot see how to do. I have a script which plugs into joomla and extracts orders from redshop using direct mysql access. This means that the source code is all mine on my …

Member Avatar for Mve83
0
1K
Member Avatar for karthik_ppts

Hi Frendz, How to send free SMS to mobiles using php? I'm trying lot of codes but all is going to vein.

Member Avatar for stoopkid
0
243
Member Avatar for Danny159

Hi, Can anyone help me as to how I would handle recurring invoices in PHP I have it making invouices with a due date... but say I wanted to mark an invoice to auto invoice every month... how would the script work and what data is needed to do that? …

Member Avatar for Danny159
0
158
Member Avatar for kalyanchandra

Hi, I have a text file with content as [CODE]---------------------------- BEGIN REPORT: report1 r1a r1b END REPORT: report1 ---------------------------- BEGIN REPORT: report2 r2a r2b END REPORT: report2 ----------------------------- BEGIN REPORT: report3 r3a r3b END REPORT: report3 -----------------------------[/CODE] How can I read and Overwrite this text file such that "BEGIN REPORT: …

Member Avatar for ddymacek
0
138
Member Avatar for OmniX

I have tried to research this and im always running into old articles. What I have come across are (possibly more): md5, sha1, hash, crypt and mcrypt Now I have used md5/sha1 before and have 32/40 character long strings the others I dont know too much about but in short, …

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for Stefano Mtangoo

Hi, I want to write ACL. The access groups and access tasks are arbitrary. That means that any group can be given any access and initially accesses and groups are unknown. Creating groups is easy but I have hit a wall on how do I create/Implement limiting the tasks. Example: …

Member Avatar for Stefano Mtangoo
0
220
Member Avatar for mshdpotato

Can anyone tell me why I keep getting a plain white screen after submitting my form? Here's the code (some of them are generated by dreamweaver and I don't think I have enough time to learn how to do it manually because I need this running in a few hours) …

Member Avatar for pritaeas
0
123
Member Avatar for TAGEEKS

Hello guys, i have a problem with my fetching records, i need to put each photo inside a cell , now that has been done okay the problem is i need to put 5 photos each row , now i have 6 in a row , i tried to use …

Member Avatar for pritaeas
0
78
Member Avatar for c-tech

Hi everyone, Please assist with this issue that I'm having. I am trying to create a simple web interface to allow me to send sms's from a browser window. I am using gammu ([url]http://wammu.eu/[/url]). I am able to execute the code below when using the php cli on the linux …

Member Avatar for c-tech
0
503

The End.