39,320 Topics
| |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 = … | |
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; … | |
[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: … | |
[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 … | |
[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"> </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" /> … | |
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{ … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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. | |
[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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
[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 … | |
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. … | |
[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? … |
The End.