39,320 Topics

Member Avatar for
Member Avatar for 4fridi

My Rule: `RewriteRule ^(.*)/album/(.*)/?$ watch_album.php?id=$2&video_url=$1 [L]` when i goes to site:epashto.com in google search it shows me url with query string like : http://epashto.com/watch_album.php?id=33 but my SEO Friendly URL is: http://epashto.com/special-hits-volume-4-pashto-songs-album-2013/album/33 Now the issue is that if user click to this url: http://epashto.com/watch_album.php?id=33 it should redirect to my new SEO …

Member Avatar for cereal
0
194
Member Avatar for tony75

Hi I need PHP functions for calculating the area and volume of a cylinder? I will be thankfull for your answer. <form action="functions.php" method="POST"> Enter the radius = <input type="text" name="radius"><br> Enter the height = <input type="text" name="height"><br> <input type="submit" name="submit" value="Calculate"><br> </form> <?php //calculates the volume of a cylinder …

Member Avatar for diafol
0
3K
Member Avatar for davidjennings

Hi All, I have been using a latest version of wamp daily for the last month on this PC and suddenly over the weekend it has stopped working. I have tried the following: I have restarted all services a number of times. Restored back to earlier point on Friday when …

Member Avatar for davidjennings
0
345
Member Avatar for Linddha

i want to show the favorite news base on calculation coment in comment table.. so ? what should i do?

Member Avatar for pritaeas
0
116
Member Avatar for Ann Krizette

we are about to begin our thesis report, we need to create an inventory system using php codes, i chose inventory system of stocks in a pharmacy, can you help me do the system?where should I begin..Thank you :)...really need your help experts :(

Member Avatar for pritaeas
0
110
Member Avatar for cakka

Hello, I am learning PHP. Now, I am creating login page. This is my index.php codes <?php require "../config.php"; session_start(); $username = $_SESSION['username']; $password = $_SESSION['password']; if(!$username && !$password){ header('Location: login.php'); } else { echo $hello.$username; } ?> And this is my login.php <?php require "../config.php"; session_start(); function loginForm(){ echo …

Member Avatar for Ejim Kingsley
0
267
Member Avatar for colo_cool

i have a text file as abc.txt which looks like hi hello john how are you jelly fine thank u now i need a php code to select this file from html page and read this text file line by line and store each line as a seperate row in …

Member Avatar for diafol
0
1K
Member Avatar for davy_yg

Hello, I am following this tutorial: http://www.codefactorycr.com/login-with-codeigniter-php.html It works when I copy it exactly as it is. Now, I only wonder why eventhough I try to imitate it and modify it a little bit to match my system, I wonder why it still does not work ? views/admin/login_view.php <!DOCTYPE html …

Member Avatar for cereal
0
496
Member Avatar for foxwizzy

so i have 2 lists i need to compare $list = array("Apple", "Orange", "Lemon", "Candy"); and $db = $r_bio['other']; $db2 = explode(":", $db); i want to compare the two and if i find the same i want to echo a checked checkbox if not an unchecked checkbox if($db2 == $list) …

Member Avatar for foxwizzy
0
115
Member Avatar for isaac.iji.5

hello guys am creating site were all users can post for there friends to see ans coment just like facebook where am having problem is how to make sure only a users friends can see there post not the whole site members i have table in my database called post …

Member Avatar for isaac.iji.5
0
271
Member Avatar for andika.kurniawan.121

for($i=1; $i<=($jumlah_row_tabel_atas+1); $i++) { $satuan = $_POST['PP_row_'.$i.'_satuan']; $word_2[$i]="SELECT id_unit FROM manage_unit WHERE name_unit = '$satuan'"; $q[$i] = mysql_query($word_2[$i]); $data_X = mysql_fetch_array($q[$i]); $id_unit = $data_X['id_unit']; $harga_1 = $_POST['PP_row_'.$i.'_harga_1']; $harga_2 = $_POST['PP_row_'.$i.'_harga_2']; $harga_3 = $_POST['PP_row_'.$i.'_harga_3']; $id_drug = $_POST['id_drug']; $value = $value_array[$i]; $word="INSERT INTO relation_mu_and_unit (id_drug, id_unit, priority, value, harga1, harga2, harga3, last_edit) …

Member Avatar for urtrivedi
0
154
Member Avatar for tony75

Hi I need better way to my checkboxes in form.php here is code <h3>Which programming languages should you learn first?</h3> HTML <input type="checkbox" name="cb_html" value="HTML"><br> PHP <input type="checkbox" name="cb_php" value="PHP"><br> Perl <input type="checkbox" name="cb_perl" value="Perl"><br> Python <input type="checkbox" name="cb_python" value="Python"><br> And my form.php code is #checkboxes if (isset($_POST["cb_html"])) { echo …

Member Avatar for tony75
0
1K
Member Avatar for ronh100

I want to have an image map with hot spots that will run a php script when clicked. I'm new to this so any help will be appreciated.

Member Avatar for JorgeM
0
46
Member Avatar for Estevan_Musgo

Hi guys, Im a uni student who's just getting started on PHP + i've hit a brick wall already. One of my tasks is to use PHP to show the song lyrics of "10 green bottles" (standing on a wall) using loops and if statements. I was thinking of having …

Member Avatar for Estevan_Musgo
0
101
Member Avatar for casey.li.146

What the webpage would do is after clicking "SUBMIT" button, a php script will be use to add records into my database. But for now i do not know where to put the "signupinsert.php" into the html and to make it run. I have try putting it at form action …

Member Avatar for JorgeM
0
4K
Member Avatar for tony75

Hi How can I pass value of my radio buttons to my form.php code? I will be very thankfull for your answer. <form action="form1.php" method="post"> First name: <input type="text" name="fname"><br><br> Last name: <input type="text" name="lname"><br><br> <h3>What is the best programming language to learn for hacking</h3> Python <input type="radio" name="rb_python" value="Python"><br> …

Member Avatar for tony75
0
332
Member Avatar for kelley82879

I have a searchable database.. I would like to change the style of how the table is displayed... I have a css file of how I would like the table displayed.. Can that be done? If so..How?

Member Avatar for kelley82879
0
293
Member Avatar for rrajeswari03

i need to upload multiple image randomly in flex with php as backend..can any one help me??

0
122
Member Avatar for Indians

<?php include("config.php"); if (isset($_POST['submit_val'])) { $cmeal = mysql_real_escape_string($_POST['meal']); $meal = "INSERT INTO ebmealplans( MealPlanName, CreatedOn ) VALUES ( '{$cmeal}', NOW() )"; if(!mysql_query($meal, $link)) { die("Error : " .mysql_error()); } $croom = mysql_real_escape_string($_POST['room']); $ref_key = mysql_insert_id(); $room = "INSERT INTO ebroomtypes( RoomTypeName, CreatedOn ) VALUES ( '{$croom}', NOW() )"; if(!mysql_query($room, $link)) …

Member Avatar for diafol
0
8K
Member Avatar for Zain_2

Hi, I need to automatically submit button only once. the javascripts i have tried keep submitting the page in an endless loop so to fix the problem the auto submit part only needs to work once when the page is loaded. please help. Thanks

Member Avatar for JorgeM
0
100
Member Avatar for nadiam

So i have a table and a calculate button. the calculate button is responsible to selecting data from specific tables and then the selected data will be displayed and added together along with the calculation. but something is wrong with the process because it is not calculating correctly. table & …

Member Avatar for Lsmjudoka
0
349
Member Avatar for Indians

index.php coding <td><input type="text" name="slno[]" value="" size="2"></td> <td><input type="text" size="10" name="date[]" id="SelectedDate" onClick="GetDate(this);" readonly="readonly"/></td> <td><input size="24" type="text" name="particulars[]" value="" placeholder="Description"></td> <td><select name="noofnights[]" value="0"> <option value="empty"></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option …

Member Avatar for Lsmjudoka
0
6K
Member Avatar for yavindu

Is there good way to generate reports in php(Free software which can customize tables easy).I've used dompdf, but when table is big every thing gets mess up. Thanks

Member Avatar for Lsmjudoka
0
126
Member Avatar for nadiam

My form has a 'save' button and 'select from previous month' button. what 'save' button does is insert all the values into my database. save button code: if(isset($_POST['jansave'])) { $basic = $_POST['basic']; $allowance = $_POST['allowance']; if($basic&&$allowance) { require "connect.php"; $total=($basic + $allowance); $query=("INSERT INTO january (basic,allowance) VALUES ('$basic','$allowance')"); $janresult=mysql_query($query); } …

Member Avatar for Lsmjudoka
0
5K
Member Avatar for nancybrown1959

Can anyone help me figure out how to fix these errors? Warning: mysql select db(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx /index.php on line 37 Line 37 is: mysql_select_db($conn, "yourmil_content"); ----------------------------------------------------------------------------- Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in/home/xxxxxx/index.php on line 247 Line …

Member Avatar for Lsmjudoka
0
419
Member Avatar for nadiam

hey guys, so im trying to display data from my database into a table but i got this error : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\CashFlow\balance_report.php on line 45 code: <?php require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query=("SELECT * FROM asset WHERE name …

Member Avatar for nadiam
0
214
Member Avatar for suraj32

Hi, I've got this string when parsed a web page. string(41) "_result_ = {status:"OK", id:"30025", name:"John Doe", location:"India"}" I believe that this code is JSON. but when I use json_decode() , it returns NULL. Someone Please help me parse this string. Thank you. :)

Member Avatar for suraj32
0
187
Member Avatar for Karry.Stewart

Hi I've a website and it shows a strange urls on the search engine and it sometimes crawls or wont show in the search engines what to do should we keep a robots.txt file. and How to take away the strange url we see in all search engines as **www.website.com/?C=S;O=A** …

Member Avatar for cereal
0
302
Member Avatar for DTSCode

so i want to set default error pages for my website, but im having trouble with setting the default 404 page (i havent done any others yet). i am running a lamp server, and put the .htaccess in the root of it (/var/www) and put in it ErrorDocument 404 /error/error404.php …

Member Avatar for TheJeffMatson
0
272
Member Avatar for tqmd1

Dear Sir, I have following codes <?php $country=""; $capital=""; if (isset($_POST['submit'])){ $country=$_POST['text1']; $capital=$_POST['text2']; if (empty($country) || empty($capital)){ die ("<script> alert('Please fill both boxes')</script>"); }else{ echo "<script> alert('The capital of $country is $capital')</script>"; } if (isset($_POST['clear'])){ $country=""; $capital=""; } } ?> <html> <head> <title>Result on same page</title> </head> <body> <center> <form …

Member Avatar for furqan219
0
119

The End.