39,323 Topics
| |
I am using a php code to perform search queries through MySQL database. The database consists of a product title, url, posted date and store name. The query is looking at the title and returns relevant results. I want to add a sorting feature on my page that will allow … | |
Hello, I'm not sure if this is a php issue, but I would like to set up a page that will allow for a 1 time download (say give someone 1-2 hours to download a given video file after purchase). I'm thinking it would need to be a code that … | |
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 … | |
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. | |
[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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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. | |
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 … | |
[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 … | |
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 : … | |
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, … | |
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 … | |
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 … | |
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, … | |
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 … | |
| 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 … |
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? | |
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] | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … |
The End.