39,323 Topics

Member Avatar for
Member Avatar for alltech

Have 2 issues. Firstly i have a text link which gives me a URL i want but this will not work correctly because it gives me my webpage URL first followed by the URL i want, ie [url]www.wheels4rent.net/www.thrifty.co.uk/cgi-bin....etc[/url]. I need the [url]www.wheels4rent.net[/url] removed. Secondly the 'book now' link i want …

Member Avatar for diafol
0
197
Member Avatar for ronysios

im having the same issue with the above "You have an error in your SQL syntax; check the manual that corresponds to your MySQL...line 1"..help! myform2.php [CODE]<? ob_start(); ?> session_start(); <?php $labels = array ( "comment" => "comment", "condition" => "condition", "cartype" => "cartype"); ?> <?php if($_POST['Submit'] == "Submit") { …

Member Avatar for diafol
0
124
Member Avatar for itsgrace

I'm creating a web-based mail client from scratch using PHP IMAP library. What I need to implement right now is fetch the error and display it in a fancy way(ex. pop up in the view when error occured). How am i going to do this? This is a sample of …

0
101
Member Avatar for kira_

Good day y'all.. I was never introduced properly to PHP so I come here a lot to seek for help. xd anyways, I have a problem at the moment.. I can't set my enum values properly.. This is how it was added to a table named "joke": [CODE]ALTER TABLE joke …

Member Avatar for kira_
0
1K
Member Avatar for nicolem443

Hi, I have the following peice of code which pulls data from a database: [code=php]$rsfeed = mysql_query("select Title from Abstracts where (ID = '12')); $thearray = mysql_fetch_row($rsfeed);[/code] I can print the title using: [icode]print $thearray[0];[/icode] but theactual resultset is more then 1 row, and what i need to do is …

Member Avatar for joostklaver
0
134
Member Avatar for Buppy

Hi, I have 3 questions about the request() method: 1) How do i change the username and password field names for HttpSocket auth variables? The default ones are user and pass, i need to change them. 2) How do i pass cookies with this method? Do i have to create …

0
62
Member Avatar for thoford75

Hi guys, I have a script that displays a list of tasks a user has to complete. To complete the task they must check the radio button and enter text into the textarea named eidtext. Here is the form: [CODE] <form id="form151" name="form151" method="post" action="update/update-sales-taks.php?&user_id2=<?php echo $user_id2; ?>&user_id=<?php echo $user_id; …

0
102
Member Avatar for bloodbender

Hello Daniweb, I'm trying to validate form fields with php via jQuery and everything is working great, except for one thing I can't figure out. I'll try my best to explain. Here's the jQuery: [code] $(document).ready(function(){ $("form#reservation").submit(function(event){ event.preventDefault(); // Prevent default submission of form }); $("input#continueReservation").click(function(event){ event.preventDefault(); // Prevent default …

Member Avatar for bloodbender
0
175
Member Avatar for programmer12

Hi, I am trying to modify these codes to where I can use my PHP /MySql Database. I have an event section in the database that list the month year and day of the event as well as the title of event and description. As of now I have all …

Member Avatar for mrtreb20
0
165
Member Avatar for mathewmoozh

Hi, Iam a web developer and i wish to integrate the yahoo and bing maps in a site.i would like to use the get directions facility to be worked there.I have integrated the google maps for getting directions.i got correctly,but the yahoo and the bing doesnt works.Any help is appreciated.I …

Member Avatar for pritaeas
0
157
Member Avatar for Stefan_Lam88

Hi php developers, I m new to php and would like to ask anything wrong with below script? [CODE] $year = (date('Y', time()) - date('Y', $model->DOB)); [/CODE] I m getting error as title shown.any one know the problem?

Member Avatar for Stefan_Lam88
0
342
Member Avatar for ABUMIN

I am trying to learn how to get a very simple php file to work on powweb, and I keep getting error messages. I have tried to follow the php scripting page directions on powweb, but I am not sure if I have done it correctly. Is there something else …

Member Avatar for diafol
0
72
Member Avatar for hans20253

hello I am making a login/register system for my website so far for the register php code i have: [CODE] <?php include ("config.php"); /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $username = $_POST[username]; $password = $_POST[password]; $email = …

Member Avatar for rajesh205
0
214
Member Avatar for davy_yg

I have the following codes: [CODE] $confirmation = ($result)? "Data telah terhapus.":"Gagal menghapus data."; }elseif ($_REQUEST['mode'] == 'edit'){ $result = mysql_query("SELECT * FROM kategori_berita WHERE id=".$_REQUEST['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id = $data['id']; $kategori = $data['kategori']; } } ?> <div align="center"> <div style="width:700px;text-align:left;padding-top:25px;"> <div class="pageTitle">Category Manager</div> <?php echo $confirmation; …

Member Avatar for cwarn23
0
93
Member Avatar for davy_yg

[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; print "Done"; function fnCheckSession(){ if (Session["LoggedIn"] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] I have the following error appears: Parse error: …

Member Avatar for cwarn23
0
86
Member Avatar for sun-tzu

[url]http://www.backatya.org/products-page/checkout/[/url] You may have to add an item to your cart first to see the checkout page, but I am trying to figure out why the form fields show the <br> and just plain don't look right. I am using the WP e-Commerce plugin and can't figure out what I …

Member Avatar for HITMANOF44th
0
155
Member Avatar for sibymary

[B]hi , i got an error.pls help me to correct. my code is[/B] [CODE] <form action="return.php" method="post"> <table width="200" border="0"> <tr> <td><h3 align="center">RETURN</h3></td> </tr> </table> <p align="center">&nbsp;</p> <table width="41%" height="254" border="0"> <tbody> <tr> <td width="34%">Author:</td> <td width="66%"><p> <input type="text" name="author1" /> </p></td> </tr> <tr> <td>Title:</td> <td><p> <input type="text" name="title1" /> …

Member Avatar for karthik_ppts
0
237
Member Avatar for davy_yg

index.php [CODE] <form action="proseslogin.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br /> user : <input type="text" name="username" id="username" /> <label>password: </label> <input type="text" name="password" id="password" /> <label> <input type="submit" name="Login" id="Login" value="Login" /> </label> </form> [/CODE] proseslogin.php [CODE] <?php //function function periksa ($username, $password){ if (($username=="user") and ($password=="123456")){ return true; }else{ …

Member Avatar for davy_yg
0
268
Member Avatar for jw3973

Hello. I am looking for someone with spare time to write a PHP app for me. I am just starting to learn PHP but something like this app is too advanced for me right now and I need it asap. Also, having it will go a long way to advance …

Member Avatar for jw3973
0
92
Member Avatar for Donnovan

hi everyone, i never worked with php or any script language before i am more of a java, c++, C programmer, but for a school project i need to program a character converter in php, i have some problem recieving response from my php file. can someone help me this …

0
85
Member Avatar for shaya4207

Hi, First of all I'm not sure that this is the right place, so if it isn't please feel free to let me know, and/or move the thread... I have Windows 7 with WAMP installed, and I obviously view my stuff by going to [url]http://localhost[/url] (or [url]http://172.0.0.1[/url] which is essentially …

Member Avatar for shaya4207
0
230
Member Avatar for Skate

Hi, I have a php script on my site that make the browsers return a search result in stead of data from the php file. The strange thing is that the scripts returns a corrupt adress. [url]http://boardtests.com/fin-selector/slalom-speed-race/?width=65&size=9.0&submit=Send&s=Search[/url] [url]http://boardtests.com/fin-selector/slalom-speed-race/?width=65&size=9.0&submit=Send[/url] If I remove "&s=Search" the returned adress works! The thing is that …

Member Avatar for amyuni
0
66
Member Avatar for mpw5013

Good Afternoon, I'm having an issue. I know how to read the API documentation, but I can't find what other attributes I can add to the array. I need to import UPC and the var_dump shows a 'upc' field, but Its not working. Here is my question. How do I …

Member Avatar for mpw5013
0
112
Member Avatar for atalkingfish

I am sorry but I am just starting and I suck. I've been spending the last hour on the site trying to use others' threads and the FAQ to fix this but I simply have not been able to do so. This is real simple. All my code is.. [CODE] …

Member Avatar for atalkingfish
0
133
Member Avatar for sam230

i m getting this Notice this following code.. please help me why this error is comming... [code] $dataArr[$m]['longitude']= @$pageListArray['longitude']['value']; $dataArr[$m]['lattitude']= @$pageListArray['lattitude']['value']; $dataArr[$m]['hospitalType']= @$pageListArray['hospitalType']['value']; foreach ($dataArr as $key => $row) { $order_in_category[$key] = $row[0];//[0] is $order_in_category } [/code] thanks in advance.. i hope i got solution here.

Member Avatar for ko ko
0
945
Member Avatar for davy_yg

[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; $_SESSION['LoggedIn']='user'; print "Done"; function fnCheckSession(){ if ($_Session['LoggedIn'] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] The following errors appears: Done Notice: Undefined …

Member Avatar for ko ko
0
254
Member Avatar for kira_

Hi there.. I'm quite a noob in PHP.. I'm working with Joomla at the moment.. and I'm supposed to check whether or not the fields in the user registration form are filled with the correct format.. For example, the user name should have this sort of format NNN-NNN-NNN.. How do …

Member Avatar for ko ko
0
98
Member Avatar for BlueCharge

Hello Everyone, Thanks for taking your time to look at my post. I am having a problem with my PHP file which is giving me the following error whenever a header("Location: ") is used and the set_cookie function: Warning: Cannot modify header information and it always says the output was …

Member Avatar for SweatCoder
0
218
Member Avatar for IT_Student_604

hello there, i'm having a bit of trouble about this. im making a regiter page for our project and im using PHP, and im having a little problem, it says that: Could not execute the insert query.. but i got all my fields right?.. [ICODE]<?php include("config.php"); if(isset($_POST['submit'])) { $fname = …

Member Avatar for diafol
0
168
Member Avatar for pilipinas

Hi Guys, I would like to ask help on how to create a page using php. The page consist of a multiple choice quiz wherein the choices are in radio button. It has a fixed time of 15 minutes to answer the questionnaire. The page has two users the student …

Member Avatar for decade
0
83

The End.