39,316 Topics

Member Avatar for
Member Avatar for soosai

hi im soosai ..very new to this PHP WORLD..have created database with the field tc...and i have 10 fields in it but only would like to insert those datas in the coding .... but the coding shows some error...pls help me .. Thank you <? @mysql_connect("localhost","root","") or die (mysql_error()); mysql_select_db("upit"); …

Member Avatar for phpuser
0
197
Member Avatar for soosai

hi there is anything wrong with the code down here....? <? @mysql_connect("localhost","root","") or die (mysql_error()); mysql_select_db("upit"); $sql="INSERT INTO students VALUES('$nama','$ic','$fakulti','$emel')"; $result=mysql_query($sql); if ($result) echo"Insert record Successfully"; else echo "Problem inserting data"; ?>

Member Avatar for nav33n
0
85
Member Avatar for stevegoodmedia

Hi i i have a form that is processed by the following php script - the form and script work fine (i got it off about.com works very well!!) but the client does not like the way the email arrives and wants some formatting could anyone tell me how i …

Member Avatar for isomillennium
0
83
Member Avatar for soosai

hi this is my coding for submit and reset button ... but the reset button seems not working ...is it related to the value?.......or the return thing ? thanks for the help.. <input type="submit" value="Submit" /> <input type="button" value="Reset" onclick="valid.reset(); return false" />

Member Avatar for soosai
0
67
Member Avatar for boomar

hi, i m not able to configure java-bridge, here my OS is VISTA business,i installed php5.2.1 with IIS server, now i want to use java classes in php. I read many installation pages tried it,not able to succeed. pls help me in brief to install and configure.:| Thanks and Regards

0
59
Member Avatar for AliHurworth

Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. However I'm getting errors on the second table [icode]mysql_num_rows(): supplied argument is not a valid MySQL result resource [/icode] and [icode]mysql_fetch_array(): supplied argument is not a valid …

Member Avatar for somedude3488
0
233
Member Avatar for roy--

Hello, I've got a variable string ($policies) of CDATA, that is dynamically generated, what I am trying to do is to find a way to separate the various divs into separate variables. For example the following string will have to be split into $policy_hotel_pets, $policy_children, etc.. each variable storing its …

Member Avatar for somedude3488
0
123
Member Avatar for darmstrong

I'm hoping that someone will give me a moment so I can understand how formmail works so that I can more effectively troubleshoot my problems. Background: I'm downloaded a very basic formmail to use on our intranet site for employees to respond to. I'm testing this on a XP Pro …

Member Avatar for darmstrong
0
479
Member Avatar for jencinas69

Question My xml parser is runing into an error when I try to parse the attached csv I think is because of the three commas before the description, I clean the file manually and leave only 1 comma and it work. I there any way I can identify the extram …

Member Avatar for digital-ether
0
65
Member Avatar for helraizer

Hey folks, I'm working on animating gifs in GD. I've adapted the use of the GIFEncoder class from phpclasses. original [B]gif.php[/B] [code=php] <?php Class GIFAnimator { var $GIF = "GIF89a"; var $VER = "GIFEncoder V2.05"; var $BUF = Array ( ); var $LOP = 0; var $DIS = 2; var …

Member Avatar for somedude3488
0
261
Member Avatar for Barman007

For starters im making a survey form for a website and ive run into a bit of trouble, if anyone could help and point me in the right direction it would be muchly appreciated :) Im a bit of a php/mysql noob, I can kinda make cookies, I kinda know …

Member Avatar for R0bb0b
0
186
Member Avatar for sammoray

[code]if(isset($_SESSION['admin']) == TRUE){echo "<font face='tahoma' color='#ff0000'>ADMIN : ".$_SESSION['admin']." welcome<br></font>";} $sql="SELECT * FROM messages WHERE messages.user_id=" .$_SESSION['userid']. ";"; $result=mysql_query($sql); [COLOR="Red"]$numrows=mysql_num_rows($result);[/COLOR][/code] for the previous code the browser show me this message: [COLOR="Green"]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/e3lan3.freehostia.com/header.php on line 9[/COLOR]‎ and line 9 is the …

Member Avatar for ryan_vietnow
0
87
Member Avatar for yara1

hi how i redirect from .org to .com ex: my page is [url]www.aaaa.com[/url] i want when user write [url]www.aaaa.org[/url] then it will redirect automaticly to [url]www.aaaa.com[/url] :)

Member Avatar for ryan_vietnow
0
107
Member Avatar for boomar

hi, in java this is a syntax for creating an object for class. hello obj=new hello(); where as in php this is the syntax. $obj = new Java("hello"); now i want to cal constructor with parameters, here the syntax for java. hello obj=new hello("key"); pls give syntax for the above …

Member Avatar for ShawnCplus
0
40
Member Avatar for Leratos

Hi, i need your help urgently, im using Czepdf in my php to produce pdfs, now I have a problem in placing two pictures in line with each other or adjuscent to each other, actually i am designing a certificate and should have 2 signatories at the bottom of each …

Member Avatar for Phaelax
0
74
Member Avatar for boomar

hello all, In servlet for encryption and decryption,i used bouncy castle light weight cryptography API to perform DES encryption of arbitrary data,which encrypts/decrypts,then the generated value are in bytes,i used base64 encoder/decoder to convert bytes into string.now the same task i want to do it in php? pls help me …

Member Avatar for pritaeas
0
384
Member Avatar for heels

Hi, i would like to know if it is possible to pass values from one page to another through an image link? I've have tried to "echo" the values but it seems like the values are not passing into the other page. Any suggestions on how to do it? regards, …

Member Avatar for heels
0
111
Member Avatar for Papa Awortwe

Please I have a problem. I have a list of countries in my database. After someone completes filling a form which is then stored in the database, the value for a country appears in the database instead of the country name. For example ,when some selects England from a list …

Member Avatar for Ole Raptor
0
110
Member Avatar for hbmarar

Hi, I got a gmail account and i would like to use the SMTP configured to use this account. When i entered the related information, I get the following error: [B][I]Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 (Connection timed out) in /home/content/e/c/a/eprojects/html/dotproject/classes/libmail.class.php on line 411 Warning: Cannot modify header …

0
70
Member Avatar for gcarterm

Ok, I know this has to be simple. My Javascript skills are very weak (will become obvious in the code.) What I'm trying to do is use two Submit buttons in a form. The called function I want to send one named variable if one Submit is clicked and another …

Member Avatar for gcarterm
0
130
Member Avatar for OmniX

I wish to check if a variable (I am pulling the variable as mysql_fetch_array) contains the number 2008 in it. If so it is displayed. Now I have the display working fine but it displays everything and I want to optimize it to just show the variables containing 2008. Any …

Member Avatar for R0bb0b
0
172
Member Avatar for Phaelax

Nevermind, I'm a retard. I had phpMyAdmin opened to the live server, not the testing server which is still empty. I need a drink.

0
72
Member Avatar for successws

Hi All I have a very simple website for selling real estate - and I use a third party custmer management system - they give me free listings which I have showing within a listings page on my site. (good so far) :) My problem is when a user clicks …

Member Avatar for R0bb0b
0
127
Member Avatar for kkump

Q: I hope you might be able to help me I think mysql is not quit right but I am not sure what is not right. Except my site is not working. What happen is i can register, that works. I can log in to create a memorial and it …

Member Avatar for R0bb0b
0
84
Member Avatar for CoolGamer48

EDIT: Ahhh.. nvm, I found it: [ICODE]die("Error with database".);[/ICODE] should be [ICODE]die("Error with database.");[/ICODE] Might anyone know why the following php script produces [I]no[/I] results? I.e., when I ctrl+u in Firefox, a blank screen comes up. [CODE=php]<html> <head> <title>Create Base</title> </head> <body> <h1>Create Base</h1> <form action="bases.php" method="post"> <table> <tr><td>Name:</td><td><input type="text" …

Member Avatar for R0bb0b
0
120
Member Avatar for cwarn23

I have been programing a php online bot with an admin panel. It mainly works good an all but my forms are double posting. So the way I have designed the form is that the user enters the data. Then clicks the submit button which sends the data to MySQL. …

Member Avatar for cwarn23
0
693
Member Avatar for awilson3rd

Hello, I have no knowledge of PHP and have been looking around for some information for a few days now so thought I would try here - excuse my ignorance:-) I have recently installed a business listing script called easysearchdirectory on a webhost4life hosting account. I have never had any …

Member Avatar for R0bb0b
0
75
Member Avatar for tanha

Hello everybody, In the faculty we are told, to develop a project for Faculty Library with more functionalities and facilities. [B]Who roles:[/B] Administrator Librarian Lecturers Faculty Students Others faculty students has different Access level [B]Criteria:[/B] Store Book Information Store Users Information Store information on lending books Achieve information on returned …

Member Avatar for tanha
0
137
Member Avatar for maydhyam

How could I put the following sql statement into a php variable? [code=sql]load data local infile ".$filename." INTO table testtsttbills FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'(account,service,date,time,timebandtype,destination,callednumber,mins,airtimecharge,tollcharge,amt,privatenumber)[/code] when I tried to putting it in the variable...it's showing not working because it recognizes the double quote in …

Member Avatar for R0bb0b
0
191
Member Avatar for m_saad

I've tried [URL="http://developer.yahoo.com/yui/editor/"]YUI rich text editor[/URL] and found it great but I still can't figure out how to to integrate it with php . If I put the textarea in a form with method=POST what will be the $_POST['??'] that will give me the html ? thanks.

Member Avatar for m_saad
0
92

The End.