39,320 Topics

Member Avatar for
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
266
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
83
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
Member Avatar for davy_yg

[CODE] <?php //LOAD USER $result = mysql_query("SELECT * FROM event"); while ($data = mysql_fetch_array($result)){ ?> <tr> <td><?php echo $data['event'];?></td> <td><?php echo $data['tempat'];?></td> <td><?php echo readDate($data['mulai']);?></td> <td><?php echo readDate($data['selesai']);?></td> [/CODE]> I have this error: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\php_template2\event_manager.php on line 206 Line 206 …

Member Avatar for pritaeas
0
100
Member Avatar for nikki05

Hello, I am trying to redirect “http” to “https”. I successfully followed the steps to create SSL Certificate as per this website: [url]http://robsnotebook.com/xampp-ssl-encrypt-passwords[/url] However, it seems that it didn’t work. I am still getting the following error messages: For IE browser: There is a problem with this website's security certificate. …

Member Avatar for nikki05
0
199
Member Avatar for davy_yg

[CODE] session_start(); // undefined index: login if (!isset($_SESSION['login'])){ echo "Anda tidak berhak mengakses halaman ini."; exit(); } //Fungsi baca data dari database [/CODE] Hi, Whenever I press eventmanager, the following error appears: "Anda tidak berhak mengakses halaman ini." What codes should I write so that I could pass the echo? …

Member Avatar for davy_yg
0
245

The End.