39,323 Topics
| |
Hello, Could someone suggest me the ways to redirect a website from one server to another website in another server? I have one website "X" (IP based e.g [url]http://x.x.x.x/example.html[/url]) in one server using IIS and another website "Y" (domain based e.g. [url]www.abc.com[/url] ) on another server using Apache. I linked … | |
Hi everyone 8) I'm new around here but thought it's about time I joined a good PHP forum! I'll introduce myself properly on the right section, but for now, I'll my post my coding problem on here. I wonder if any has any knowledge or can help. I'm setting up … | |
So, i need help to do couple of things: [B]1.[/B] To change the hyperlink into a button. The link downloads the file from the server, which is pointed in the database. Below is the actual code of the hyperlink, and what I tried to do, to change it to a … | |
Hi guys, I am still kind of struggeling with my upgrade from php4 to php5, my site is almost there but I can't figure out how to set my http_referer. This is how it looks like today: [CODE] <?php $_SESSION["referer"] .= $_SERVER['HTTP_REFERER']; $my_web = $_SESSION["referer"] ?> [/CODE] The error message … | |
Hi all, was just wondering what is the difference between $_GET[''] $_POST[''] $_REQUEST['']? I normally use $_REQUEST[''] to get my values from a form or url, but not too sure why there is 3 different types. from what i understand, they are all the same and do the same thing … | |
Hello, Is it possible to get someones city from their IP address using PHP? I want to display like their local pizza houses near their area using googlemaps.. Please answer :) | |
I have one of the php site which I want to close or redirect a particular page from Saturday 9pm to Monday 6am. the page contains a form and when they submit a form it directs to form.php. So what i want to do is if some one access the … | |
I am writing a script that locates stores in a 20 mile radius of a given zip code. That part works fine. I am adding the functionality to also choose a product that those stores carry and display only the stores in a 20 mile radius that sell that product. … | |
I have made a Recordset in Dreamweaver called Brand with this code: [CODE] $product = array($row_Brand['pro_brand']); $proid = array($row_Brand['pro_id']); for($x = 0; $x < sizeof($proid); $x++ ) echo $product[$x]; [/CODE] it echos only the first element on the table. I want it to spit of all of them. any suggestions … | |
I know this is kind of silly but I am getting confused and don't know where to add the OnSubmit function which is supposed to open the SaveEvent.php file (its in the www directory). As of now the code doesn't work. As in nothing happens when I click the submit … | |
I worked on the code based on [url]http://www.daniweb.com/web-development/php/threads/123389[/url] but as per last answer to use the mail function outside loop ( [url]http://www.daniweb.com/web-development/php/threads/123389/708835#post708835[/url]), I still cant work with this script. Please help [CODE] <? $query="SELECT * FROM tbl_users WHERE ex_date between now() and adddate(now(), INTERVAL 7 DAY) ORDER BY user_id ASC"; … | |
I'm trying to implement paginaton on the article archive but I can't seem to get [code]$_SERVER['PHP_SELF'][/code] to return the page that I need - I sort of know why but can't seem to solve the problem. The archive page is located at [url]http://localhost/cms/index.php?action=archive[/url] and so when I use PHP_SELF it … | |
| Hello, I am currently allowing users to upload videos via php $_FILES[][] and then converting them using ffmpeg. I am wondering if there is a more efficient way to do this than using php. I have read that ajax might be useful (that's what vimeo uses). Could anyone point me … |
Hi, i want to use the jQuery UI Slider plugin in my website, however rather than using numbers i want to use 4 different options (easy, medium, hard, very hard), for the user to choose on the slider, how would i do this. This is the slider i want to … | |
Hi, I need to get a cell values and to print that cell values in another cell using PHPExcel? For Ex: A12:5 . I need this same value "5" to be printed in the cell B12. thanks for your help. | |
Hi... i am now making a form for ordering book..the problem is, i want to add new texbox if the user want to make more than one order by clicking add button..and it can save in database..then it can calculate total price for all book that the user order...please help … | |
Hi, I want to build a site which should sell content or article of research paper and there photograph. So, i want to use CMS for this site. I want to use cms instate of creating my own because i am not perfect in creating my own eCommerce site by … | |
Hi, I'm a bit of a noob with PHP. I am trying to retrieve information from multiple tables with the following code [CODE] <?php function check_input($id) { // Stripslashes if (get_magic_quotes_gpc()) { $id = stripslashes($id); } // Quote if not a number if (!is_numeric($id)) { $id = "'" . mysql_real_escape_string($id) … | |
[CODE] <td>Event</td> <td> <input type="text" name="event" value="<?php echo $event; ?>"/> <input type="hidden" name="id" value="<?php echo $id; ?>"/> </td> </tr> <tr> <td>Tempat</td> <td><input type="text" name="tempat" value="<?php echo $tempat; ?>"/></td> </tr> <tr> <td>Mulai</td> <td> <input type="text" name="mulai" id="mulai" value="<?php echo readDateJs($mulai); ?>" size="8"/> <script type="text/jsdemo" charset="utf-8" class="demojs"> $('#mulai').datepicker({showOn: 'both', showOtherMonths: true, showWeeks: … | |
[CODE] // connect to database $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } // cek login session_start(); //undefined index: login if (isset($_SESSION['login'])){ echo "Anda … | |
How do I deal with quotes here? What i want is /[^a-zA-Z0-9-_.,!()'\/"]/ but how do i deal the quotes? [CODE] $pattern = '/[^a-zA-Z0-9-_.,!()'"\/' . $whatever . ']/'; return preg_replace($pattern, '', $value); [/CODE] Cheers! | |
I have an html page that gets data from 'hs_hr_employee' table and lays the info in a table on a web page. Then I have another table 'rights' which gets info from 4 columns from the 'hs_hr_employee' table and stores them in columns. In addition to those 4, the 'rights' … | |
Hello, I am really new to PHP, so sorry if this is way too basic. I followed this tutorial: [url]http://net.tutsplus.com/tutorials/php/online-file-storage-with-php/[/url] and I created a simple online storage app for my website. How would I be able to make it so that I can delete the stored files? Thanks | |
hi guys, i'm trying to write an character converter using php and ajax. i'm getting a really anoing error(uncaught TypeError). can someone help me with this.?:?: , i've added screenshot of the error. and this is the xml i'm trying to read generated with php [CODE]<?php $key = $_GET['key']; header('Content-type:text/ … | |
[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> <td> <a href="./event_manager.php?id=<?php echo $data['id']; ?>&mode=delete">Hapus</a> | <a href="./event_manager.php?id=<?php echo $data['id']; ?>&mode=edit">Edit</a> </td> </tr> <?php } ?> </table> [/CODE] Warning: mysql_fetch_array() expects … | |
Hi, Anyone please me out, i need to sum the excel values dynamically? code: [CODE] $col=1; $row=29; $start=23; $end=28; $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($col, $row, "=SUM($col.$start:$col.$end)"); [/CODE] cell values are not getting up added ? Am facing error. thanks in advance. | |
Hi! I'm simply need to convert a string like: /blablabla/123123 to 123123 it should be easy I'm sure, but I can't get it :( | |
I am using this gallery script on a site I am working with and for some reason can not seem to get the Back to Menu ( link ) at the bottom of the code to be at the bottom of the page or at least under the images that … | |
[CODE] // connect to database $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } // cek login session_start(); //undefined index: login if (isset($_SESSION['login'])){ echo "Anda … | |
Problem:- I have entered/input in database the date in its default format(Y-m-d). My requirement is to show the date in date-month-year format rather than year-month-date format. well i cannot enter the date again in database as it contains hundreds of record. Picture as attachment. |
The End.