39,326 Topics
| |
Hi there, happy new year to all! I started using PDO few weeks ago, and I am trying to figure out what is the best way to use it....I just put 3 samples bellow and I was hoping you can tell me what is the most secure and professional way … | |
Hi I am looking for a script to register new users using MySql and a script to log them in and assign cookies to remember them. I have found a few scripts but nothing completely suitable as I want it to check that there is no username already in table, … | |
Hello everyone, I created a form for taking an order lunch.Everything works fine only i get an error on my php file on the array section. [COLOR="Red"]Notice: Undefined index: drink in lunch.php[/COLOR] I don't see i have missed anything, but i hope someone might be able to spot my mistake.Please … | |
I need to get values from a textfield and put it in a function, this can be done pressing enter or clicking in a button that insert the value of the textfield in the said function. | |
This is more about suggestions than it is about having an issue that needs resolving. Happy New Year Everyone...:) I have recently finished up on the basic programming of a membership site, and they have launched without issue.(Thank God)... BUT, I have a few things that I would like to … | |
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 … |
The End.