39,320 Topics

Member Avatar for
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
142
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
109
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
54
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
168
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
122
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
255
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
148
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
155
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
42
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
176
Member Avatar for waqassgd
-3
136
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
129
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
73
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
67
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
63
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
123
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
67
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
145
Member Avatar for arsala khan
Member Avatar for jkon
-1
50
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
67
Member Avatar for Xufyan

look at the code first, [CODE]<?php $name=$_POST['name']; ?> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { $startrow = (int)$_GET['startrow']; …

Member Avatar for diafol
0
93
Member Avatar for professor123

can l plz ask you something ... l hav a database with 4 tables i.e User(fname, lname,email and userid ------primary key{userid} ) Exam( examid, examname-------primary Key{userid}) Exam_user(examid, userid------primary key{examid}) Exam_category(categoryid, categoryname----prmary key{categoryid}) HOW CAN YOU WRITE AN SQL QUERY THAT ALLOWS U TO CREATE/retrieve A NEW TABLE WITH FIELDS;;;; (fname, …

Member Avatar for mschroeder
0
110
Member Avatar for javanew

please help me,, i have made a submit button in my contact us form,, but the problem is that when i have put echo "Successfuly sent"; it is aligned on the left , and it doesnt look good as a design how i can add inside echo string something like …

Member Avatar for dietdew12z
0
162
Member Avatar for soomro_moon

how to remove a post form this forum .i was having problm in php but it is solved now so i want to remove that post

Member Avatar for Xufyan
-1
76
Member Avatar for Xufyan

i want my code to Prevent fetching data on page refresh [CODE]<?php $name=$_POST['name']; ?> <html> <body> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> </body> </html> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) …

Member Avatar for chrishea
0
116
Member Avatar for crazycat503

Hi, I want to build a search page much like beemp3.com. Not for music, but books. I have the following tables: books (bookid,booktitle) authors (authorid,authorname) booksauthors (bookid,authorid) Since a book could be written by multiple authors and the vice versa. Now, I need to see titles of books but the …

0
45
Member Avatar for mrlol

Hi guys, Need your help. Currently my development server using Wamp server. please read below for services details: * Apache/2.2.11 (Win32) PHP/5.3.0 * MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $ * PHP extension: mysqli * Server: localhost (MySQL host info: localhost via TCP/IP) * Server version: …

Member Avatar for R0bb0b
0
366
Member Avatar for Awah Mohamed

hey people . i have a question and i dont know where to post it . i want tow wrtie .htaccess file that rewrite the url of my links as well as increate my websites memory , i mean the size of the uploaded files and so on . i …

Member Avatar for tiggsy
0
83

The End.