39,402 Topics

Member Avatar for
Member Avatar for master-tech

OK.. so this is probably basic but, I can't seem to wrap my head around it. The URL is like this.. [url]http://Whatever.com?id=ThisID&title=AncorText[/url] So.. I'm trying to use.. [CODE]<?php $id = $_GET['id']; $title = $_GET['title']; echo $id; echo $title; ?>[/CODE] .. to place the variable parameters into a hyperlinked URL on …

Member Avatar for master-tech
0
227
Member Avatar for imanegr

Hello I am calling a nusoap method in my script and I want to run some code if the method timed out and There was no answer of web service .So my question is that how I can check if a function is timed out in PHP . Thanks.

Member Avatar for pritaeas
0
68
Member Avatar for shielaolid

[CODE]<?php $db=mysql_connect('localhost','root','') or die('Cannot connect to MySQL!'); @mysql_select_db('dbriomra')or die('Cannot connect to database'); // Retrieve username and password from database according to user's input $login = mysql_query("SELECT * FROM login WHERE (username = '" . mysql_real_escape_string($_POST['compid']) . "') and (password = '" . mysql_real_escape_string($_POST['pword']) . "')"); // Check username and password …

Member Avatar for shielaolid
0
208
Member Avatar for learner guy

i want to assign content of one div to another div ..lets say div 1 to div 2 just like in twitter when you type something and press "Tweet" a div is created and has the content of textbox .. how can i implement in php

Member Avatar for EvolutionFallen
0
75
Member Avatar for RazorRamon

hello, I have a situation that i'm wondering if there's a solution. I have specific databases for different cities in texas. I plan on adding more but i do not nkow how many more or what their names will be. Every city is going to have the same tables in …

Member Avatar for pritaeas
0
80
Member Avatar for Eelyn123

I want to update my database when i click the label in the infowindow. but i cant seems to update even when it shows that "You have donated" the value that i pass in is dynamic data which means that i have retrieve the value and pass it into the …

Member Avatar for pritaeas
0
148
Member Avatar for anthonyjpv

I am developing a small online shopping website. My question is: Do I still have to use session if I wont allow customers to add items to cart when they are not registered? Meaning, once they want to order, they will have to register and login to their account Thank …

Member Avatar for phorce
0
164
Member Avatar for klcant

I am trying to display the result from a query in to a table. I can do this pretty easily when doing queries from mysql, but cannot get it to work with mssql. Below is the code I used to actually make sure I could get the data (and it …

Member Avatar for klcant
0
5K
Member Avatar for anthonyjpv

Hi! Im new to MySQL RDMBS. I know the basic CRUD if you know what i mean. Create Read Update Delete. I have 2 tables: Category table and Product Table Products should be categorized. Product table has PK as an ID and FK to Category Table How to INSERT INTO …

Member Avatar for anthonyjpv
0
193
Member Avatar for youvi

Hello, How can i access a code igniter website by without specifying the controller name? I have given the base_URL as [url]http://example.in/[/url] and default controller as "home".. Am calling a view in the home controller.. but i can't access the website...Please help me..how can i solve this? Thanks

Member Avatar for cereal
0
68
Member Avatar for aradhana123

hi, I am trying to work with Google web master tools api in php. do u have any idea abt this? i am totally stuck in the middle of the code i got from Google. any kind of suggestion or sample codes wud be really helpful. thanks in advance.

Member Avatar for aradhana123
0
222
Member Avatar for theakshay

Hey, I need a 2-level drop down selection for the state-city selection where the code gets the values of these dropdowns from the mysql database(since i'm using php). After the selection of the state the code should display the cities belonging to that particular state. Could you please provide me …

Member Avatar for pritaeas
0
214
Member Avatar for akhtar.ali803

[CODE]<?php $conn = mysql_connect("localhost","rentwall_rentwall",")X7zlBx)XgZ5") or die ("Could not connect MySQL"); mysql_select_db('rentwall_rentwall',$conn) or die ("Could not open database"); function post($postname) { $posted = mysql_real_escape_string($postname); return $posted; } ?>[/CODE] Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rentwall_rentwall'@'localhost' (using password: YES) in C:\wamp\www\site2\db.php on line 3 Could not connect MySQL please someone help …

Member Avatar for akhtar.ali803
0
590
Member Avatar for davy_yg

index.php [CODE] <body> <?php include("includes/header.php"); ?> <?php //start session session_start(); //unset any session data until user submits valid username and password // this is correct way not unset($_SESSION), sorry my mistake // see http://www.php.net/manual/en/function.session-unset.php session_unset(); session_destroy(); ?> <div id="login"> <form action="proseslogin.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br /> <label>user : …

Member Avatar for davy_yg
0
186
Member Avatar for xiiopao

Good day guys =) ..., i know there are somewhat similar threads of this around here but i still cant find the one to solve my problem ... well i am currently building an online store.. and in this online store there's a table of products with the an image, …

Member Avatar for tashi lhendup
0
3K
Member Avatar for Danny159

Hey guys! I have the following script... Resize works... Scaleup works... but watermark, black and white doesnt work or sepia... Can anyone see why? Or help? Thanks Dan [CODE] <?php header ("Content-type: image/jpeg"); ini_set("memory_limit","80M"); /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REQUIRES PARAMS: path - path to file from domain root w - sets width to …

Member Avatar for Danny159
0
167
Member Avatar for phoenixfire2

hello everyone, I am making a job portal site. the job seeker in my site enters his date of birth by using three drop down lists (date,month,year). this value i concatenate and insert into database as (1990-09-28). when the user presses the edit button , i want to retrieve this …

Member Avatar for phoenixfire2
0
436
Member Avatar for IanArcher

I have clients who send email messages to a specific e-mail address, and i have a script that will automatically update the MySQL table with that data from that e-mail and will publish it to a web page. Images inserted into the emails cannot be seen on a web browser, …

Member Avatar for hakeemtunde
0
1K
Member Avatar for n3xtgen

I have a php page with the following: [CODE]echo "<form method='post'><input type='hidden' id='memberIdd' name='memberIdd' value=" . $memberId . "></form>";[/CODE] Now I created another php page and want to grab the value of this hidden field and place it into another variable. How can I do this? I tried using this …

Member Avatar for hakeemtunde
0
6K
Member Avatar for doctorphp

Hi everyone, happy new year!!! I am trying to add some extra "security" to my website. I would like all links that do not link to my website to visit an "out" page that will tell the user that they are being taken to an external domain. Would I be …

Member Avatar for hakeemtunde
0
512
Member Avatar for cali_dotcom

Does anyone know how i can configure varnish vcl file so that it does not ban .css and .js files when i issue a BAN?

0
58
Member Avatar for nakresimin

some part of the website look ok but some not and none of the links works. can you please help me? [url]http://204.45.7.122/[/url] [ICODE]overHead(); echo $html->pageTop(); include('loginmenu.php'); include(inc_dir . "/left.php"); echo $html->pageMiddle($config["page_name"]); $toplamkullanicilar = $adetler["JAS_FD"]+$adetler["JAS_FS"]+$adetler["JAS_TP"]+$adetler["JAS_TH"]+$adetler["JAS_OH"]+$adetler["JAS_BG"]+$adetler["JAS_OK"]+$adetler["JAS_OL"]; $ortadakipara = getMoney("JAS_FD")+getMoney("JAS_FS")+getMoney("JAS_TP")+getMoney("JAS_TH")+getMoney("JAS_OH")+getMoney("JAS_BG")+getMoney("JAS_OK")+getMoney("JAS_OL"); ?>...........[/ICODE]

Member Avatar for broj1
0
215
Member Avatar for issaru07

hi everyone, i am new here and i also quite new to php. i know this issue is quite common, been spending hours try to troubleshoot for this issue earlier. i have to give up and decide to seek advice from you guys, thanks for your time. The problem actually …

Member Avatar for veedeoo
0
316
Member Avatar for 21122012

My codes work in localhost but this error happens when I upload to a web site. [code]<?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_conn = "mysql4.000webhost.com"; $database_conn = "a3027257_ccbc"; $username_conn = "a3027257_ccbc"; $password_conn = "a123456"; $conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR); mysql_select_db($database_conn, $conn) or die("cannot select Database"); mysql_query("SET NAMES …

Member Avatar for EvolutionFallen
0
284
Member Avatar for jabeen123

[CODE]<SCRIPT language="javascript"> function abc(){ <?php $search1=mysql_query("select Lab_credit_hr from courses where Course_Number='$_GET[course]'"); if (mysql_num_rows($search1) == 0) { ?> document.fm.lab.disabled=true; <?php }?> </SCRIPT> [/CODE] i want to check mysql table row that if column "lab credit hour"= 0 then lab text field disabled help me this code? and this javascript function call …

Member Avatar for EvolutionFallen
0
388
Member Avatar for newinphp

Hi everyone! I've been looking for a solution, but i just can't find it anywhere... Ok, so the problem is: i have a database which looks something like this: user_id product_id score 14 . 235 . 79 23 . 235 . 32 53 . 665 . 21 14 . 235 …

Member Avatar for diafol
0
115
Member Avatar for freakunleash

Need help in updating the tables I have array of data coming from a form which I'm inserting in my DB. I have 5 tables product filter product_filter heater product_heater Im able to put the data in the "[B]product[/B]", "[B]filter[/B]" & "[B]heater[/B]" tables but i dont know how to put …

Member Avatar for pritaeas
0
438
Member Avatar for nakresimin

I saw many post how to add Facebook connect functionality into a website but i could not see how to implement it to a website with an existing user database. would you please help me to make this work, facebook connect functionality? i am sure it will help a lot …

Member Avatar for nakresimin
0
147
Member Avatar for labise

for experiment i pull data from mysql to xml to use in flash how can i add ahref to id in xml to achieve like this [url]http://www.kalitekolik.x10.mx/product.php?id=1[/url] [url]http://www.kalitekolik.x10.mx/PHP_MySQL_Flash_FINISHED.swf[/url] my database like this id/ product_name/ price/ details [CODE] <?PHP $link = mysql_connect("localhost","lafamosa_kermis","lafamosa1000"); mysql_select_db("lafamosa"); $query = 'SELECT * FROM products'; $results = …

Member Avatar for shahbaz13
0
124
Member Avatar for murad2012

i successfully sign-up,but i like to check the null entry in the form before other check.please healp. This Is My Sign-up From <form action="signup.php" method="post"> <label><b>User Name:</b></label><input type="text" name="login" /><br /> <label><b>Password :</b></label><input type="text" name="password" /><br /> <label><b>Confirm :<br/></label><input type="text" name="confirm" /><br /> <label><b>Email :</b></label><input type="text" name="email" /><br /> <label></label><b><input …

Member Avatar for shahbaz13
0
292
Member Avatar for accra

[ICODE]am trying to create a filter,but am geting no result with this,my data type in mysql is date.Any help pls?[/ICODE] [CODE] <?php $date = ""; $driver = ""; $vreg = ""; $desti = ""; $radiotype = $_REQUEST['find']; if ($radiotype == "") { echo"<p class='bodytxt'>N.B: You can filter by selecting any …

Member Avatar for pritaeas
0
134
Member Avatar for labise

i get such a error:"Deprecated: Function eregi_replace() is deprecated " [CODE] <?php // let's initialize vars to be printed to page in the HTML section so our script does not return errors // they must be initialized in some server environments $errorMsg = ""; $firstname = ""; $lastname = ""; …

Member Avatar for pritaeas
0
189
Member Avatar for ommannette

I am trying to integrate Authorize.net DPM into my PHP/smarty based shopping cart. It is proving to be quite a challenge. I am now getting this parse error. I get this error: Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/wopl/public_html/yamada/classes/gateways/authnet.class.php on line 119 which …

Member Avatar for veedeoo
0
741
Member Avatar for ashutoshhshukla

Hi all, I wanna open a MS word file placed on FTP , and then edit it (I wanna add text and table on the top of a file) such that it maintains it's entire content and formatting, and then save it to the other location on FTP. I have …

Member Avatar for veedeoo
0
188
Member Avatar for fika

how can i print the search result using php??? sorry, i dont have any reference code and i dont know how to start the print process using php.... any help, please??? and thanks for your time...

Member Avatar for fika
0
109
Member Avatar for keroppi89
Member Avatar for veedeoo
0
1K
Member Avatar for nguoixanh

Hello everyone, I'm newbie and I need some helpful for my problem: [CODE] class pages { var $total_pages = NULL; var $scroll_pages = NULL; ... function page_link (...) { if ($this -> total_pages <= $this -> scroll_pages) { ... } } } [/CODE] Sorry I don't understand the code above …

Member Avatar for almostbob
0
149
Member Avatar for limonzmn

I had created a php page but the server is so old that it doesnt support php. I want a page with a simple leftnav and I need to add a photogallery with thumbnails... anyone have any advice for me? Or maybe some good tools?

Member Avatar for veedeoo
0
75
Member Avatar for GreaseJunkie

Hi guys, Happy New Year! I'm trying to setup a voting site where the button under the contest entry just says "Vote For Me" and my form will collect the data from that button and store it into MySQL. I'm having trouble naming that image/vote button so the form will …

Member Avatar for phorce
0
143
Member Avatar for geneh23

Hey everyone! I have an issue with the my checkuser.php..which is my login check that redirects certain users to a certain page, due to if they logged in as an admin or a regular user..I have a test site on my local server that works fine when I log in …

Member Avatar for geneh23
0
218
Member Avatar for Mojtabarahimi

Hi guys I used the joomla cms for web development. Actually i install the roknewsrotator module and use it for Persian language that it decode with UTF-8. i don't know why the News rotators module want to show some news in UTF-8 language, at the end of the sentences it …

Member Avatar for diafol
0
605
Member Avatar for flashmanvc

In my web application I need to be able to allow the user to transfer files (word documents and pictures) from their computer to the server and I have been unable to google an answer. PHP, Apache and MySQL. The problem is mainly I am unsure how to compose the …

Member Avatar for flashmanvc
0
220
Member Avatar for MargateSteve

I am trying to create a soccer results matrix from an existing database (tables and current query are at the bottom of the post) and am not sure where to start with it. It is a bit hard to explain (unless you are a soccer fan where these results matrix's …

Member Avatar for MargateSteve
0
213
Member Avatar for lastgame2007

please take a look at my code, what i want to happen is this, 1st, i want to pass the ID of the selected student from the other page, which can be updated or removed in the process... which i can't , do it.. anyone can help me with this! …

Member Avatar for diafol
0
136
Member Avatar for erik216

As I don't know how many column for table So I only can write a stupid script when the value is not null. Then show the value Does anyone have a good idea for write a simple script to implement this request. [CODE]foreach ($pl_width_arr as $pl_width_arr[$pl]){ if ($pl_width_arr[$pl]['family_code'] == $family_code_eng) …

Member Avatar for diafol
0
136
Member Avatar for glut

Hey, I have a question on fwrite. I know that fwrite can write things to your server, for instance, but when I put try to write C:\foo.txt, will this actually save it to my server, or to the clients computer? If not, then is there any way that I can …

Member Avatar for diafol
0
116
Member Avatar for Virangya

hi, my $.post code returns a whole page i want to get only content inside a id from that . this is my code it alerts null. what's wrong with it..? [CODE] $(document).ready(function(){ var url_select_file = "index.php"; $.post(url_select_file, { component: "tinymce_details", action: "selecticondata" }, function(data){ //alert(data); alert($(data).find('#ContentPane').html()); } ); [/CODE]

Member Avatar for link_umer
0
1K
Member Avatar for Hendo

I'm trying to make a simple login page to grant access to my form pages. I don't want anything fancy, just a simple name and password match to grant access. What I have grants access no matter what is typed in, and I don't understand why. Any help would be …

Member Avatar for EnjoyYourMeal
0
262
Member Avatar for violaceous

I have a function (myError) that causes a message to pop up whenever you do anything... either, confirming your actions "Email has been deleted!" or telling you that something didn't work "You don't have enough money for that item!" Problem is, I'm trying to re-design my layout, and the error …

Member Avatar for violaceous
0
152
Member Avatar for champmanking

I am trying to code a comment system where I can leave comments on all pages. Every page has its own id. I would like a comment box where I can add and see other comments already posted. This is my code thus far: db table [CODE]`id` INT AUTO_INCREMENT, `page_id` …

Member Avatar for EvolutionFallen
0
266

The End.