39,402 Topics

Member Avatar for
Member Avatar for lydia21

hi i want to check the uname from the database and the session variable... please tell how to write if condition <? $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); echo "<table width='60%'>"; $result=mysql_query("SELECT jobid,jobtitle,cname,uname FROM please"); print "<tr><td>jobtitle </td> <td>cname</td></tr>"; if ($result[3] == $_SESSION[uname]) { for ($i = 0; …

Member Avatar for lydia21
0
100
Member Avatar for judedcoutho
Member Avatar for nav33n
0
65
Member Avatar for kings

hi when edit link is clicked the form with the filled in fields will get displayed .the user the can edit the content in the fields and then when he clicks update the table will get updaed here is my code... here id is auto generating field in mysql [B][COLOR="Green"] …

Member Avatar for nav33n
0
301
Member Avatar for bhakti.thakkar

hi all, i have a table whose structure is as below: Name Null? Type ----------------------------------------- -------- ---------------- NEWSLETTER_ID NOT NULL NUMBER SUBJECT_VC VARCHAR2(255) MAILTYPE_VC VARCHAR2(50) CONTENT_TXT CLOB SCHEDULE_DT VARCHAR2(50) SYSTEM_HOOK_VC VARCHAR2(50) NSTATUS_SI NUMBER TEMPLATE_ID NUMBER i want to insert data in this table. below is my php script i m …

0
71
Member Avatar for Taffd

Is it possible to include the character < in a regular expression? I don't seem to be able to find a reference to it anywhere and am unable to build a regex with just this one character.

Member Avatar for digital-ether
0
143
Member Avatar for pdb

Hello, I've read all about how to expire a session, but this doesn't seem to be what I need. (unless I misunderstood it) The way I understand sessions, it's all about expiring the _cache_. Here's what I want: I want to allow my site visitors to search without logging in. …

Member Avatar for buddylee17
0
71
Member Avatar for Taffd

Hello everbody, Despite some serious googling, viewing previous posts here and consulting the php manual, I am still unable to validate my user input. If I can get one simple form to validate, I will be able to adapt the script accordingly to any other, so any help you can …

Member Avatar for Taffd
0
194
Member Avatar for karlion

Hello guys! im planning to make a web development website.. well as of now im starting to create the design the page... I just like to ask some tips.. in terms in search engine optimization... is it advisable to my site to make dynamic of my contents? i mean i …

Member Avatar for einfoway
0
106
Member Avatar for raeyshe

[B]Warning[/B]: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [B]/home/content/r/a/e/raeyshe/html/fanlisting/admin.php[/B] on line [B]36[/B] [code]<? // select all unapproved members $result = mysql_query ("SELECT * FROM $table WHERE apr!='y'"); [COLOR=darkred][B]if ($row = mysql_fetch_array($result)) { [/B][/COLOR] do { // display all unapproved members ?>[/code] Line 36 is in bold, …

Member Avatar for shinichi001
0
171
Member Avatar for lydia21

hi how to get my database values to my textbox.... i want to update my database content.in order to do that i want to display the existing content in a textbox so that the user can change the content and click update to update the content in the db.

Member Avatar for lydia21
0
144
Member Avatar for Designer_101

Hi I was wandering is it safe to keep data in a .txt file if it is outside the public_html folder on my site? thanks

Member Avatar for Designer_101
0
80
Member Avatar for Xavier1234

So, I need a little help, I purchased a source code for a mafia game, so I could test things out, because I wanted to own my own game and such. I learned pretty much basic PHP, and I know alot of MySQL. I don't know how to do what …

Member Avatar for Pro2000
0
108
Member Avatar for kaz0161

Hi! Please please someone check these site definitions for me:- Local Info:- (The usual name of site etc) HTTP Address: [url]http://www.mydomainname.co.uk[/url] Remote info:- Access: FTP FTP host: ftp.mydomainname.co.uk Host directory: (blank) login: (my login) Password: (my password) Testing server:- Server Model: PHP MySQL Access: FTP FTP host: ftp.mydomainname.co.uk Host directory: …

Member Avatar for ryan_vietnow
0
102
Member Avatar for dks1383

Hi all I'm a PHP programmer. Are there any websites that I can work for them online (at home).

Member Avatar for ithelp
0
56
Member Avatar for mike4

Hey, Ad like to know the capabilites of users browser in code so that i give her the codes for her browser I would like to do this without using the deprecated globals like $http_user_agent and $http_accept Actually I would like to have two php scripts for my site one …

Member Avatar for mike4
0
61
Member Avatar for lydia21

hi All jobtitle will be displayed in a table with hyperlink.when the jobtitle is clicked.it should fetch description,email etc from the database and display it. please tell me how to link the pages based on the tobtitle or id....when the hyperlink is clicked it is not displaying the data from …

Member Avatar for lydia21
0
132
Member Avatar for Designer_101

Hi im having some trouble with the code bellow. I would like for each time the form containing the name and message to be echoed out but in a table. So naturally i have made a for loop that checks the amount in the array and echo out seperate portions …

Member Avatar for somedude3488
0
123
Member Avatar for microtribe

Hi, I have a Javascript total calculation function within a php form that uses onBlur to show the client a running total of the dollar amount of items added: [url]http://www.microtribe.com/dev4Tony/order881x2.php[/url] And I have a linked external PHP file/script to email the results of the form to me. All works fine …

Member Avatar for somedude3488
0
170
Member Avatar for michael123

how can I replace who string with certain beginning and ending, for example I have string: abc........xyz I want to replace this string with "this is a test", no matter what text in between, only "abc" and "xyz" are fixed. abc123xyz-->this is a test abcd1234xyz-->this is a test any idea?

Member Avatar for Designer_101
0
113
Member Avatar for artak
Member Avatar for einfoway
0
21
Member Avatar for Taffd

I'm beginning to believe that nobody actually knows how to validate simple forms and insert that validation code into a dreamweaver page. I there anybody out there who believes they can accomplish this. If so, are you prepared to help me accomplish this, at which time we could post here …

Member Avatar for jbennet
0
82
Member Avatar for sallywt

hi - it's my first day attempting php and my second page.. the first one went ok so I copied it for the second and amended accordingly however I'm getting a parse error and can't find the problem - can anyone help?! Parse error: parse error, unexpected T_STRING in /data/quint/html/q_wine_site/qw_join.php …

Member Avatar for sallywt
0
57
Member Avatar for lydia21

hi in this coding i want to specify the table width and border..i tried with css and html both are not working..please tell me how to display the table <html> <head></head> <link rel="stylesheet" type="text/css" href="test.css" /> <body> <?php $hostname = "localhost"; $username = "splendor_lydia"; $password = "jesus"; $dbid = "splendor_samp"; …

Member Avatar for lydia21
0
101
Member Avatar for toadzky

I'd just like to start this thread by saying that I have absolutely NO knowledge of PHP what so ever. I do mostly C++, C#, and Java. But my dad is having a problem so I am posting this as a favor. My dad has his business run pretty much …

Member Avatar for Fungus1487
0
76
Member Avatar for bumassjp

<html> <head> <title>Post a load with ITS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body class="sub"> <form name="FormName" method="post" action=""> <table width="100%" border="0" cellpadding="4" cellspacing="2"> <tr bgcolor="#009933" style="vertical-align: top"> <td colspan="2" class="HeaderColor"> Posting Loads</td> </tr> <tr bgcolor="#00FF33" style="vertical-align: top"> <td colspan="2" class="StoryContentColor"> Please enter all the information needed to post a load. …

Member Avatar for somedude3488
0
143
Member Avatar for lydia21

hi i am new to php.i want the login page userid to get displayed in the next page as"welcome userid".....please do tell me the syntax for passing the userid to next page.....

Member Avatar for black_ip82
0
121
Member Avatar for mishrarajesh44

hii.. i am getting error msg when running this program. pls verify if anybody can.. code: <?php session_start(); //session_register("username"); //session_encode(); //$url="Location:loggedin.php?PHPSESSID=".$PHPSESSID; // header($url); if(isset($_POST['submit'])) { if(empty($password)){echo "No password specified";} $connection=mysql_connect("localhost","wwwuser_raja","kalika"); if(!$connection) {echo"<b>connection not set...</b><br>";} $sel=mysql_select_db("wwwuser_raja"); if(!$sel) {echo"<b>database not selected...</b><br>";} $query="select password from users where username='".$username."'"; $result=mysql_query($query); if($row=mysql_fetch_array($result)) { if(!(md5($password)==$row["password"])) {echo …

Member Avatar for ryan_vietnow
0
91
Member Avatar for Acid Burn

Hello... I'm a nOob. Sorry if this is in the wrong forum or if it's been asked... I did search but couldn't find anything. I have a job between hands I don't know if I can handle to be honest. I have to redesign this website: [url]www.tiendaxtienda.com[/url] (in spanish). As …

Member Avatar for Fungus1487
0
103
Member Avatar for nic1213

im kinda a novice and in php i am trying to connect to mysql the i installed the wamp server that has the apacheserver,phpmyadmin and mysql now to connect to the mysql is a problem for me i cant. can someone help me

Member Avatar for buddylee17
0
89
Member Avatar for sagedavis

Hi all, I am working on a project. On the php page, I am linking to a list of ip addresses which are already in my database. The url will be something like domain.com/view.php?ip=61.167.34.179 In view.php I have the following sql $connect = @mysql_query($sql,$connection) or die(mysql_error()); $sql = "SELECT * …

Member Avatar for sagedavis
0
156
Member Avatar for sagedavis

Hey all, I am working on a project which is very important to me. I am proicient in PHP, XHTML, MySql, and am pretty decent with XML. All the dynamic stuff such as, blog content, title and so on are easy enough for me to do, but, I want to …

0
59
Member Avatar for fox_racing

Hey guys I'm new to this so here goes ...... I run a forum (phpBB3) and am now trying to get an contact us section on the home page. I have no real PHP knowledge and am trying to get my head round how it all works. Can I use …

Member Avatar for Fungus1487
0
106
Member Avatar for sujithfem

Hi, I have some problem while displaying the content with special characters like other language especially from Belgium Dutch characters, I meant the exact database table content [Belgium Dutch characters] not displayed in respective pages but only shows the other symbol like? [Question mark], please help me to avoid this …

Member Avatar for Nick Evan
0
95
Member Avatar for world_weapon

Hello folks, I was wondering if anyone had any experience with php configured with pdflib. I am trying to create a new pdf by loading an already existing pdf and overlaying some information where the fields would be on the existing pdf. I have been trying to figure this out …

Member Avatar for scottholmes
0
95
Member Avatar for lydia21

hi i want to know whether my coding is correct because data is not getting inserted in my sql table,but it is displaying the "data inserted" message<html> <head></head> <body> <?php $uname1= $_POST['uname1']; $cname=$_POST['cname']; $caddr=$_POST['caddr']; $mid=$_POST['mid']; $skills=$_POST['skills']; $degree=$_POST['degree']; $indtype=$_POST['indtype']; $desc=$_POST['desc']; $req=$_POST['req']; $yoe=$_POST['yoe']; $sal2=$_POST['sal2']; $search=$_POST['search']; $hostname = "localhost"; $username = "uname"; $password …

Member Avatar for ryan_vietnow
0
126
Member Avatar for lydia21

hi, i am using freehypespace.com.i want to know abt database connection.i want to insert data from my textbox to database.....thanks .lydia

Member Avatar for XBow
0
75
Member Avatar for nishanthaMe

I want to calculate the difference of two given dates.For instance $day1=05/04/2007 and $day2=02/01/2006 so I want to substract $day2 from $day2 and get the answer in days .what should I do

Member Avatar for XBow
0
79
Member Avatar for Designer_101

hi, im having a bit of trouble learning php. My script is working but it is showing the amount of characters i am echoing out....heres the code. [COLOR="Red"] $tireorder = 'you have ordered: '.$tireqty.' tires.' ; //open the file and check to see if it exists// $fp = fopen("file.txt","r+"); if(!$fp) …

Member Avatar for iamthwee
0
111
Member Avatar for michael123

How can I get future date by php date() function, for example today is 11/13/2007, I want to get the date after 60 days. Any advice will be appreciated.

Member Avatar for iamthwee
0
122
Member Avatar for mishrarajesh44

hiiii.... i am just started php...The problem is that the web page blank when an syntax error occurs in code ,,,so i am getting difficulties to locate the problem...how can i know wher is the problem..? can any one please help me........!

Member Avatar for MitkOK
0
94
Member Avatar for jaymathew

So I have some PHP code that takes text from a mysql table and prints it to the screen with formatting. Problem is the spaces keep getting truncated when its formatted. Like: [QUOTE] I like cookies. They are tasty. [/QUOTE] would come out as: [QUOTE] I like cookies. They are …

Member Avatar for jaymathew
0
135
Member Avatar for cancer10

Hey, I was wondering if there is/are any drawbacks/limitations of php over other web languages? Thanx

Member Avatar for maddog39
0
91
Member Avatar for Andrew008

I know that there is probably no definitive answer, but does it matter in search engine optimization whether you use PHP or ASP for your CMS. Look forward to hearing your ideas.

Member Avatar for Dani
0
265
Member Avatar for gremlinuk

Hi, I have the PHP file as coded below. Is there any way to make directory files open in a new window. I mean, this file shows files in a folder in which it sits in, but how can displayed files be opened in a new window? Cheers Aaron ------------------------------------- …

Member Avatar for fatihpiristine
0
857
Member Avatar for ithelp

I just installed apache, I start httpd , now type [url]http://localhost:8080/[/url] I get permission denied, how do to give permission and which directory do I need to give permission? Now what all I need to install in my machine to succesfully create a PHP forum ?

Member Avatar for fatihpiristine
0
67
Member Avatar for marcuskona

Hi everyone im getting this error when i try to execut the code via a browser, its a SOAP call to a footprints webservices server written in php, well it only shows me this error. I pasted the entire code below minus my username and password, :) I also have …

Member Avatar for johnNui
0
136
Member Avatar for MohamedReyas

Hi, I am using RH EL 3 and i am trying to install PHP along with MySql and Apache2 , while trying to compile it shows the following error , can anyone help. collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1

Member Avatar for jbennet
0
44
Member Avatar for ray_broome

Hi, I have the following query i'm trying to execute: [CODE="mysql"] SELECT CONCAT_WS(' ', g.genus_name, s.species_name, i.rank, i.infraspecies_name, conf.auth1, conf.auth2 ) AS scientific_name, cn.common_name, GROUP_CONCAT(cn.common_name ORDER BY cn.common_name SEPARATOR ', ' ) AS common_names, ui.unvouch_image_src, ui.unvouch_image_alt, gh.growth_habit, gd.gen_distrib_name FROM plants AS p LEFT JOIN (genera AS g, species AS s) …

Member Avatar for ray_broome
0
168
Member Avatar for ithelp

I have got a solaris machine, it has got an ip address, I want to install some software (preferably PHP) on the machine so that when I type [url]http://ipaddress//forum/[/url] I get a forum, which I can manage and configure then.

Member Avatar for stymiee
0
170
Member Avatar for Venom Rush

I've been told this isn't possible which leads me to the following problem. I have a series of events stored in a database and at the moment I pull the info out and display each one on a new line using a while loop. What I'd like to do now …

Member Avatar for ryan_vietnow
0
2K

The End.