39,323 Topics
| |
Hi all i am using a curl script to go to a link and get its content for further manipulation. following is the link and curl script: [CODE] <?php $url = 'http://criminaljustice.state.ny.us/cgi/internet/nsor/fortecgi?serviceName=WebNSOR&templateName=detail.htm&requestingHandler=WebNSORDetailHandler&ID=368343543'; //curl script to get content of given url $ch = curl_init(); // set the target url curl_setopt($ch, CURLOPT_URL,$url); … | |
Alrite so i am trying insert new values into my table, and when i try to, i get the following error [code]#1062 - Duplicate entry 'Hit Em High' for key 'team_home' [/code] Any idea how to fix this? I've heard it could be a primary key error, but im not … | |
function gethotproperty($hot){ $gethot = "select p.reference_id, p.area, p.area_unit, p.transaction_type,p.property_type,p.property_name,p.address1,p.address2,p.city,p.locality,p.pincode,p.area_in_sqft,p.total_price,p.negotiable,". "p.rate_per_sqft,p.num_bedrooms,p.floor_number,p.intro_image_loc,p.amenities_detail, p.specification_detail, p.location_detail from " . DBConf::getDatabaseSchema() . "property p where p.hot = ".$hot; $result = mysql_query($gethot, $this->connection); $property = new Property(); while($row = mysql_fetch_array($result)){ $property->referenceId = $row['reference_id']; $property->transactionType = $row['transaction_type']; $property->propertyType = $row['property_type']; $property->propertyName = $row['property_name']; $property->address1 = $row['address1']; $property->address2 … | |
Hi everybody I need a help. codes below are written by someone else. I have a mysql database, html form to login to this database: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>1</title> </head> <body> <h4>Please provide correct username and password:</h4> <form enctype="multipart/form-data" action="login.php" method="post"> Login: <input … | |
Ok, I have all my functions working along with the real_escape_string(). Now I just need to find out WHY the password check isn't working properly. Whenever I try to login with the username: Dyl and the password it was signed up with, it says "Dyl is an existing username, but … | |
Attached is a picture of the database layout I'm talking about. I would like to list out all the shirts in the database along with which categories they are in, and which textures and colors they come in. These are all many to many relationships, and hence the linking tables. … | |
I want to do an old C/C++ trick where I can conditionally define a function. for instance I want to conditionally output a string (debugging) so I can have some outputstring() interspersed in my code. Instead of adding/removing these during development, I want to turn them on/off. Is there a … | |
Brain going mushy, please help! My code: [CODE]$reguser = $_COOKIE['ID_my_site']; function curPageName() { return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); } $currentpage = curPageName(); echo "$currentpage";[/CODE] Connect to the db then: [CODE]$query = ("SELECT rstextresume FROM scuserspro WHERE profilemng = '$currentpage'")or die(mysql_error()); $result = mysql_query($query); if($result == false) { user_error("Query failed: " . mysql_error() . … | |
hey guys, I'm trying to simply use the mail function. I'm using ubuntu 8.10 and have installed sendmail. My php.ini config is: [CODE]; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail -t -i[/CODE] and for testing purposes my php is: [CODE]$to = … | |
Hi! I have txt file containing something like: User1 123434 User2 435345 User3 234234 User3 234924 Now, i need to delete one user from that txt file, along with number that is after the user so lets say that i entered in delete form: User1 , then i would like … | |
which software is use to make a crystal rreport in php /mysql | |
Hello everyone, I'm in the process of learning php in a class and had a quick question for one of my assignments. I am uploading a file to a server which the user can name the directory. However, after they upload the file, I have to give them the option … | |
Hello, I am trying to link up a certain row i am outputting on a site. How would i go about putting multiple lines inside of one echo statement. [code=php]echo "<a href='profile.php?player_id=>'".$row['gamertag']."</a>";[/code] That is the current code i am using, but it is now, working, any idea on how to … | |
How can i create a php file that export my selected mysql database to a execel or csv form i have my own database named as "users" that have 10 tables i want to php file that export my "users" databse to ms excel and which when run on the … | |
Warning: Cannot modify header information - headers already sent by (output started at /home/wesleysoccer/webapps/wp/wp-content/themes/infocus/functions.php:1) in /home/wesleysoccer/webapps/wp/wp-login.php on line 302 Warning: Cannot modify header information - headers already sent by (output started at /home/wesleysoccer/webapps/wp/wp-content/themes/infocus/functions.php:1) in /home/wesleysoccer/webapps/wp/wp-login.php on line 314 This is what I'm getting in my wordpress login screen...can't login to … | |
hi, I have used Ajax validation for my form, in my form there are two radio buttons both has separate fields and my requirement is to validate only the selected radio button fields but its validating for both radio buttons, can u please suggest what to do? | |
Hi! I try to write my thumbnail creator script, no trouble with image load, resize cut, watermark, etc, but memory handling! File is submitted by simple file form. [CODE]function makeLog($logthis) // this is only for tracking mem usage { $handler=fopen("log.txt","a"); fwrite($handler,$logthis . " \r\n"); fclose($handler); } function handleImgUpload() { $fTName=$_FILES["Filedata"]["tmp_name"]; … | |
Hi this is my Form , when User fill form and by mistake he click on back button. I want when he open it next time all values be there, so he cant type again [CODE]<form name="form1" method="post" action="checklogin.php"> <input name="myusername" type="text" value="Enter Your Username"onfocus="this.value=''" /> <input name="mypassword" type="password" id="mypassword" … | |
Hi everyone, I am having a lot of trouble with this... I am using PHP/MySQL. What I have is a dating website. One of the tables in the database is called "users" which has many fields in it, storing the usual info (id, name, email, etc). What I want to … | |
I am working on a Joomla Website and Have Installed Jomsocial however I keep getting some syntax errors. The files and folders are exactly where they are supposed to be I believe its just the code and I cant see it. below is where my errors are said to be... … | |
Hi First of all, I apologise if I'm not posting in the correct place - I'll gladly ask elsewhere if deemed necessary. I've got a reasonable amount of experience with HTML and CSS and so far have only ever built websites that I know I'll be maintaining. So although updates … | |
Hi Guys... I'm making a form with the ability to delete users. But don't know how to do it... My form structure.. users.php ---- Lists a user with options like edit user / delete user. (His details are displayed from database on my html page in a table.) For delete … | |
I need more information about online video conference based on php. | |
hello.... i am fully confussing with this problem. i have to display sorting order from my table. i have table like this. [CODE]auto_id,firstname,passportno(int).[/CODE] now i am displaying [CODE]order by passportno[/CODE] but here i saw very funny issue. i have passport nos like this.....[CODE]077,100,099,088,101,1000.[/CODE] now after executing the query [CODE]"SELECT * … | |
I just want to know if this is the correct syntax for updating data in the database. [CODE]<?php $user_id = $_GET['user_Id']; $qry = mysql_query("SELECT win_id,win_net_drives,win_asset_no,win_new_pc,win_requirements,win_uid FROM windows_application WHERE win_uid = '".$user_id."'"); $db = mysql_fetch_array($qry); if($_GET['process'] == 1){ $drives = $_POST['network_drive']; $asset = $_POST['win_asset_no']; $newpc = $_POST['new_pc']; $winreq = $_POST['win_requirements']; $qry … | |
Hi, this is my option value. June is my Default selected Value, but there is a small issue. When Users select any month like January-2010, when he/she click on submit button. Page will show again June in Option. But I want which the user selects. [CODE=php]<td> <label>Billing Month <span class="small">Like … | |
Hi everybody, I would like to have functionalities & interface like this [url]http://www.bluenile.co.uk/diamond-search?filter_id=0&track=head[/url]. Currently, the search result and checkbox are presented as in the above example. However, I am not sure of where should we keep the checked value to have something like in the bottom. ( all selected record … | |
Can anyone tell me what the best option for getting the dynamic title AND dynamic meta description on my particular site setup would be? I have an index.php but all of the individual page content is stored in a subdirectory called \html\ it's stored as .html files and is called … |
The End.