39,402 Topics

Member Avatar for
Member Avatar for natchattack

Another one that i cant seem to get my head around. I i need to populate a secondary dropdown box based on what the user selected in the first one. say for instance the first dropdown box contained: Dog, Cat & Rabbit. If the user selects, Dog, i wish for …

Member Avatar for natchattack
0
311
Member Avatar for Sorcher

Hello peeps, got a fast question here! How can i echo out some text if the current user logged in with the username Sorcher ? Hard to explain for me, but im guessing this could be done in a few lines.

Member Avatar for Sorcher
0
77
Member Avatar for rajesh1158

Here is my problem. I have a site into which users can login. It has a logout button to let the user log out. My problem is when they close the browser without logging out, how can I close the logged in entry in the database?? I need a way …

Member Avatar for diafol
1
1K
Member Avatar for javanew

i have made a contact us form that emails to my email,, but the problem is that i made a text field to avoid spam machines, which says 1+1= ? , and the answer in the input field must be always 2 [CODE] if(isset($guess) == "2"){ die("Please Enter all the …

Member Avatar for diafol
0
104
Member Avatar for Acute

Hello every1, i'm building a site that requires logging in before accessing other pages(like facebook or any mail system). At first(in index) i create an object of my sessions class, say $session. The constructor of sessions class calls session_start() php function. $session checks if user logged in or not(maybe he …

Member Avatar for diafol
0
100
Member Avatar for imti321

see this code [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if (isset($username,$password)) { $connect = mysql_connect ("localhost","root",""); mysql_select_db("phplogin"); $query = mysql_query("SELECT * FROM `users` WHERE username ='$username' and password='$password'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while($row = mysql_fetch_assoc($query)) { $dbusername = $row ['username']; $dbpassword = $row ['password']; } if ($dbusername=='username'&&$dbpassword=='password') { echo …

Member Avatar for Zagga
0
155
Member Avatar for Ruko

How do I replace 63 strings in a .sql via php. Im making a multiforum software and I can't figure this out.

Member Avatar for R0bb0b
0
64
Member Avatar for itisnot_me

i am just learning how to code for oop and i have an error that i have not seen Fatal error: Class 'queryUpdate' not found in testingfile.php on line 28 line 28 [CODE] $queryUpdate = new queryUpdate($table, $fields, $condition); [/CODE] what i am trying to run. which is in another …

Member Avatar for R0bb0b
0
368
Member Avatar for daviddoria

Please excuse my newness. Currently I know how to execute a php script by simply naming the script [filename].php and browsing to that file on my webserver. I have also learned how to parse and display an xml file using php. What I want to do is have a .xml …

Member Avatar for P0lT10n
0
1K
Member Avatar for bjeffries

I am currently trying to set up my Database for a small store. I would use something like Zen-Cart but I dont think that is necessary at this level. What I am stumped on is what cell setting within my products table would I put the actual paypal code in …

Member Avatar for bjeffries
0
107
Member Avatar for dennishall

Hi: I'm having an issue posting to MySQL using the animated_form.html below. My objective is to have 4 db entries posted to MySQL when the user clicks on the <a href="javascript: submitform()"><input alt="Show Results" id="btn_results" src="a_data/form_btn_show_results.png" type="image"></a> image. The form uses jquery and it produces 0 results in MySQL. Using …

Member Avatar for dennishall
0
207
Member Avatar for ivyg
Member Avatar for ivyg
0
122
Member Avatar for phpDave

Hi, I am trying to display multiple images on a search page. If name comes up in search so does image under same user id. It works only for one image for all names same. Example: Facebook, same name found in search but different images. I'm thinking a do while …

Member Avatar for phpDave
0
122
Member Avatar for Wouldbecomp

Please help me to open at html file from the server ,edit and save it, using php. The code below returns a blank page i.e. no syntax errors but no output. home.htm is the exact name of the file on the server and it has 776 permisions. $openedfile =fopen(home.htm,'r+'); //open …

Member Avatar for diafol
0
136
Member Avatar for altarek

what is the problem? i have this message when insert? [QUOTE]Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4'', `data_no` = ''1'', `note_date` = 1293628283, ' at line 4[/QUOTE] and this is …

Member Avatar for diafol
0
165
Member Avatar for Egypt Pharaoh
Member Avatar for zlloyd1

I have been trying to get this directory to work properly and am about to tear my hair out!!:icon_mad: This is my code: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Directory</title> <body> <?php error_reporting(E_ALL & ~E_NOTICE); $lname=$_POST["lastname"]; $fname=$_POST["firstname"]; $addr=$_POST["address"]; $cty=$_POST["city"]; $stat=$_POST["state"]; $zip=$_POST["zipcode"]; $acode=$_POST["areacode"]; $phone=$_POST["telephone"]; $words[] = wordCheck($lname, …

Member Avatar for zlloyd1
0
105
Member Avatar for HelenLF

Can anyone tell me how I would remove a substring from the end of a string. The string in question could have any one of three substrings at the end of it that need removed, so I wouldn't know in advance what the length was.

Member Avatar for HelenLF
0
93
Member Avatar for kristo5747

Greetings! This n00b has a "search engine" dedicated to extracting relevant information from log files. It works by parsing preset fields in the log filename. I'd like to have some notification when the search returns no rows as I am planning to add more search options. Here's my code: [CODE] …

Member Avatar for dharmadurai
0
333
Member Avatar for atticusr5

Ok so I have been working on a little php (with my VERY brief background). The goal of the script is to take a students username and password, and then show them there grades. However when I test the script, it just falls through and redirects to the final else …

Member Avatar for atticusr5
0
139
Member Avatar for altarek

i want to add (+)to add more than textfield for phone [CODE]<form method="post" action="" enctype="multipart/form-data"> <table width="800" border="0" dir="rtl" style="direction:ltr;"> <tr> <td scope="col" style="direction:rtl;"><label for="textfield">name</label> <div align="right"> <input type="text" name="person_name" id="person_name"/> </div></td> </tr> <tr> <td style="direction:rtl;"><label for="textfield">job</label> <div align="right"> <input type="text" name="person_job" id="person_job" /> </div></td> </tr> <tr> <td style="direction:rtl;"><label for="label">mobile</label> …

Member Avatar for diafol
0
72
Member Avatar for ms88

Hi there, I have some problem with accessing API using PHP. Here is the story : I use PHP as my main script on my webserver. I want to retrieve data in database server (oversea). The database server provides API and it's available to download. So I download the API …

Member Avatar for mdew_47
-1
907
Member Avatar for george61

Here is a PHP code that writes a string on the bottom of a given image. I want to have the image with the string on it to be saved in a folder. The problem is that this script copies the image without the stamped text. Here is the code: …

Member Avatar for pritaeas
0
172
Member Avatar for pcchella

Hi, If i select first checkbox, usually first record is selected. but here last record is selected. This is my problem. Kindly solve this problem. Chella. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Revaluation : Sona College of Technology</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> </head> <body> …

0
56
Member Avatar for azegurb

Hi all, i have hosting in [url]www.dreamhost.com[/url] i created .htaccess file in order to hide file extension. and then i upload my .htaccess file to the server but after i uploaded this to the server this file disappeared. how can i do that this file works. can anyone help me? …

Member Avatar for azegurb
0
85
Member Avatar for orxanx

Dear friends, I have wrote bulk sms application with php for my job, and I have used some php classes which I found on net. When I send sms by class , he sent sms(submit_sm) successfully, and received delivery (delivery_sm) too. But not parsed optional parameters delivery_sm PDU. I have …

0
51
Member Avatar for alanlai

I'm dong a school assignment currently.It's an investment website which has interactive chart by using open-flash-chart with latest update. It's design is similar to google finance's interactive flash chart. I have obtained share price data from yahoo finance by using the simplehtmldom. Hyperlink for share price data:[URL="http://finance.yahoo.com/q/hp?s=4707.KL&a=00&b=1&c=2003&d=11&e=27&f=2010&g=m"]http://finance.yahoo.com/q/hp?s=4707.KL&a=00&b=1&c=2003&d=11&e=27&f=2010&g=m[/URL] and then present …

Member Avatar for alanlai
0
249
Member Avatar for saadi06

hi can anyone help me i am having problem with video uploading it is working properly locally but when i upload the file it gives me an error "video not found or access denied" thanx in advance

Member Avatar for saadi06
0
66
Member Avatar for ruwanaru

[B][B] This codes are not working here and i cant find out why is that can you help me on this (here i gave the database also problem is not in DB) [/B][/B] [CODE] CREATE TABLE `itinerary` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(1000) NOT NULL, `name` varchar(1000) NOT …

Member Avatar for sunwebsite
0
145
Member Avatar for Moderns

Hello, I have a php application that runs on localhost perfect, but when trying to access it from internet, I get this message: Forbidden 403, You don't have permission to access / on this server. I checked Apache error log and I found this error: [Sat Aug 14 18:22:46 2010] …

Member Avatar for Moderns
0
2K
Member Avatar for xuexue

hi guys, i already have the code for autocomplete.. what i want is that whenever the user inputs a certain character in the textbox the letters in the autocomplete should be emphasized, let's say, highlighted or bold. see attached example,

Member Avatar for xuexue
0
111
Member Avatar for aryanmughal

kindly can someone can give me script to automatic create an email account using a form

Member Avatar for pritaeas
0
57
Member Avatar for jlego

currently, the company i work for has php scripts setup that update our websites inventory database using our local internal database and a few other things that run automated on a scheduled basis. the current way we have it setup is a local machine has the URLs scheduled for launch …

Member Avatar for pritaeas
0
172
Member Avatar for Temax

Is the anyone who can hjelp me with this code. I want to get data from a field of my table and show them in a dropdown menu. Every data I get become a dropdown of one element. I get want to get a dropdown with alle data from this …

Member Avatar for cossay
0
125
Member Avatar for balle

Hello, I made a PM system but the thing that makes it read isn't working. Can you take a look at it anybody? [code] $postid = $_GET['postid']; mysql_query("UPDATE pm SET read=1 where id=$postid") or die(mysql_error()); [/code] And it gives this error: You have an error in your SQL syntax; check …

Member Avatar for balle
0
258
Member Avatar for cdes1145

Hi, I've just made a login script for my first website (I'm impressed with me). But it appears at the top left rather than centrally which to me looks unsightly. Is there a way to align this to centre both horizontally and vertically? I've listed my code below. Any help …

Member Avatar for jlego
0
150
Member Avatar for ankit.pandey3

<?php require_once('upper.php'); require_once('database.php'); echo $error_msg=''; if(isset($_POST['submit'])) { $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Password1=mysqli_real_escape_string($dbc,trim($_POST['Password1'])); $Password2=mysqli_real_escape_string($dbc,trim($_POST['Password2'])); $Name=mysqli_real_escape_string($dbc,trim($_POST['Name'])); $Age=mysqli_real_escape_string($dbc,trim($_POST['Age'])); $BloodGroup=mysqli_real_escape_string($dbc,trim($_POST['BloodGroup'])); if(!isset($_POST['Sex'])) { echo 'Please enter Sex<br>'; } else{ $Sex= mysqli_real_escape_string($dbc,trim($_POST['Sex'])); } $Qualification=mysqli_real_escape_string($dbc,trim($_POST['Qualification'])); $ContactNumber=mysqli_real_escape_string($dbc,trim($_POST['ContactNumber'])); $Email=mysqli_real_escape_string($dbc,trim($_POST['Email'])); $Address=mysqli_real_escape_string($dbc,trim($_POST['Address'])); $AboutYourself=mysqli_real_escape_string($dbc,trim($_POST['AboutYourself'])); //$countCheck=count($_POST['checkbox']); //echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Password1)){echo 'Please enter Password';} elseif(empty($Password2)){echo 'Please confirm Password';} elseif($Password1!==$Password2){echo 'Password didn't …

Member Avatar for cereal
0
2K
Member Avatar for ankit.pandey3

[CODE]<?php require_once('database.php'); require_once('upper.php'); $LoginId=$_COOKIE['LoginIdCookie']; $query="SELECT * FROM registration WHERE LoginId='$LoginId'"; $result=mysqli_query($dbc,$query) or die('Not Connected'); $row=mysqli_fetch_array($result); if(isset($_COOKIE['LoginIdCookie'])) { setcookie('LoginIdCookie',$row['LoginId'],time()-3600); echo 'Log'; } else { setcookie('AdminCookie','A',time()-3600); } //$home_url='http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/LoginValidator.php'; //header('Location: LoginValidator.php'); echo "You are logged out successfully.<br><br>"; echo $LoginId; //echo "<a href='index1.php'>Back to Home</a>"; require_once('lower.php'); ?>[/CODE] HI friends......... By above code I m …

Member Avatar for Shanti C
0
157
Member Avatar for saadi06

hi, i am trying to make thumbnail of video on windows based server. can anyone help me by giving a code example thanx in advance

0
43
Member Avatar for Awah Mohamed

hello people i am new to oop , well , i am good in the normal php but i started oop today and now i am getting too many errors . check the class_lib.php bellow , it has my classes and mainly the database connectors .: [CODE] <?php class db …

Member Avatar for P0lT10n
0
179
Member Avatar for waqassgd
-3
139
Member Avatar for mcgeepj2

I am new to php (sorry). I cannot figure out how to make 'field_4' below display as a click-able URL. It is stored in my mysql db in a varchar field. Any help would be great, thanks. [CODE] $result = mysql_query("SELECT * FROM units ORDER BY `field_1`, `field_2`"); echo "<table …

Member Avatar for mcgeepj2
0
134
Member Avatar for xuexue

hi guys, i already have and can make a autocomplete form using jquery plugin..it works fine..but the problem now is, i want the data to be stored in the database now, and not only in a javascript file..is it possible>? could you help me? here is my code.. [CODE] <script …

0
77
Member Avatar for sahromo

i have this table named room that contains the RoomNo as the primary key and it needs to pass the primary key to a foreign key in another table called AF and RoomNo as its foreign key. then another table called facilities and FNO as its primary key, it also …

0
69
Member Avatar for kkhan00

[CODE] global $db; $tracks = ""; $sql = "select description from movies where movieid=".$movieid." and mp3link IS NOT NULL"; $db->query($sql); while ($db->next_record()) { $tracks .= "<p>" . $db->f("description") . "</p>"; } echo $tracks;[/CODE] This is a code I'm using to get all records from a database with a certain ID …

Member Avatar for hielo
0
65
Member Avatar for KSS

Hi guys.. I am very new to PHP and generally in Web development. I'm trying to develop a big project and i was wondering if anyone of you can help me according to what tools should i use. At the beginning i thought Asp.net would be appropriate but after reading …

Member Avatar for jkon
0
125
Member Avatar for shahiduop

hi all i want to launch a website that will display scanned images of all he news paper's ADDS, TENDER NOTICE and ADMISSION NOTICE for various colleges and Universities in Pakistan. in addition to this the users will be able to signup for an account and will recieve relevent jobs …

Member Avatar for jkon
0
70
Member Avatar for Mike516

Can anyone please give me an example of passing information FROM java to PHP and vise versa.

Member Avatar for jkon
0
152
Member Avatar for arsala khan
Member Avatar for jkon
-1
53
Member Avatar for Lolalola

Hi, how get from video.google current video pictures? For example i have this video: [CODE] http://video.google.com/videoplay?docid=1811233136844420765[/CODE] And this video pictures url is: [CODE] http://video.google.com/ThumbnailServer2?app=vss&contentid=d53e613f82f74c96&offsetms=50000&itag=w160&lang=en&sigh=QGtXRNh3rW4hfa6DSQSFtfOimno [/CODE] ................. [CODE] http://images.metacafe.com/thumb/386357/[B]2767198[/B]/4/catalog_top_item5/0/teach_magic_be_magician_money_magic.jpg[/CODE] And from wher get metacafe second id ([B]2767198[/B]) ? So how only from video id to get a picture link?

Member Avatar for diafol
0
70

The End.