39,326 Topics
| |
final public function result($sql) { return $this->mysql['result']($this->mysql['query']($sql, $this->connection), 0); } Anyone got any idea how to best fix this error ? | |
This is a sample of the string of data that i need to extract the price of. "Price Rs 475 000 - CHEVROLET AVEO LS // SEP 11 6,000 kms - Red.. full options.. MANUAL 5 door // hatchback Contact me on 786 8394" I have many such strings after … | |
<?php if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } ?> <?php $vouch = mysql_query("SELECT * FROM cms_vouchers"); while ($voucher = mysql_fetch_assoc($vouch)) { $username = $voucher['user_id']; if(($_SESSION['user']['username']) == "$username") { ?> <div id="page-content-text" class="left"> <div id="contentTitle" class="red">%hotel_name% Alert: Enter the voucher code <?php echo $voucher['code'] ?> to receive <?php echo … | |
hi all,.... plz help me..... hi guyz... i just know how to insert a file into database, but i dont know how to update that file.... here is my code.... <?php $resume=$_FILES['resume']['name']; $file=$_FILES['resume']['tmp_name']; $ext=strstr($resume,"."); //echo "file".$file; //echo "<br>"; //echo "resume".$resume; $sql = "SELECT MAX(cnd_id) FROM tbl_candidate"; $res = mysql_query($sql); $data= … | |
Heello, I was having problems with this php script. I am trying to echo a statement on a contact form depending on the data entered, but when I hit submit, I get a blank page. I belive the error is something small, but I can;t put my finger on it. … | |
How to search for a filename in Php?? Even if i put a substring of a file,it display the full file name?Is there a direct function in PHP? | |
hi all i cant see my erron in the code i have followed the tutorial but i cant see it i wont some help. here is my code. $to = 'andi_138el@hotmail.com'; $subject = 'Contact from submitted'; $body = $contact_name."\n".$contact_text; $headers = 'From: '.$contact_email; if (mail($to,$subject, $body, $headers)){ echo 'Thanks for … | |
I'm new to phpmailer and I tried to follow their example. I'm using php mail() function to send emails and I'm getting an error: "Invalid address: $toYou must provide at least one recipient email address. Mailer Error: You must provide at least one recipient email address." What email address is … | |
I am developing a script that takes an article, searches the article for a "keyword" and then randomly replaces that keyword with an anchor link. I have the script working as it should, however I need to be able to have an array of "replacements" for the function to loop … | |
So, I've been trying this multiple delete thing with a checkbox and I did look on the internet for some code snippets and up to now, I have this: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Intrious Website</title> <link rel="stylesheet" href="tablestyle.css" type="text/css" /> </head> <body> <?php include('includes/header.php'); ?> <div id="main"> <h1>Hardware Delete<h1> … | |
So, I installed the recaptcha into my site... and I don't know why it doesn't verify... You can submit the form with out worrying about the code you have to type in so that recaptcha verifies the form. So... I have a form that shows recaptcha, but it doesn't verify... … | |
How can I extract the main classname of a java file ? I am doing this in php! I will read the whole java program as a string! Please help! <any_type/public/private/static> class **MainClass** { //Could be anything over here! public static void main(String[] args) { System.out.println("Hello World!"); } } | |
Hello. I am trying to connect my MYSQL Database to my JpGraph but it is not working. Any help is appriciated. Here is my conde. <?php include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_bar.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_line.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie3d.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/db.inc"); $host = "localhost"; $username = "root"; $password = ""; $database = "test"; … | |
PHP: Display Image from Database I'll Keep It Short Because I Need Help Immediately. Im Trying To Do Exactly What On This Tutorial But Don't Know Where To Start. I've Recently Posted Two Post About This But Have Yet To Find Anyone Completely Helpful! If Knows ANYTHINg About This, Fell … | |
i wont to know why we have to equal this variabel what is theri meaning $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_text']; | |
need help finding whats wrong syntax error in line 265 <?php function pay_upline( $refered, $level, $oamount ) { global $Db1; global $username; global $settings; global $today_date; $return = 0; $sql = query( "SELECT user.membership, memberships.downline_earns FROM user JOIN memberships ON memberships.id=user.membership WHERE user.username='{$refered}' and type='1'" ); if ( 0 < … | |
Hi, I have a table and I need to write a SQL to limit the resulset set based on 2 conditions, by IP and out of that resultset, remove the rows which have nothing in 2 columns. So I have tried this but it's not producing the expected results: SELECT … | |
Please help me with this... I cannot insert pictures into the folder and it is not saving in the database But it creates album folder. Thanks $albumname = addslashes($_POST['albumname']); $target_path = "Gallery/images/".$albumname."/"; @$imagename = basename($_FILES['image']['name']); @$target_path = $target_path . $imagename; $file = $_FILES['image']['tmp_name']; //@$image = addslashes(file_get_contents($file)); $album_target = "Gallery/images/".$albumname; @$image_size … | |
So I just started learning MySQL. I am learning from [Tizag](http://www.tizag.com). They are using PHP files. Now I can see that the PHP files are slightly complex, I'm only 15. And they also recommended PHPMyAdmin. This GUI tool has many complicated options. So I quite don't know what to use. … | |
OK, hopefully this question makes sense... I have a select that I have been to randomly select a record within a table The Table was simply a list of member IDs 'mem_id' BUT Now I've added a couple more fields to the table, one of which allows the member to … | |
Hello everyone, I'm having trouble with Joomla non-existing category re-direct problem. I cannot seem to find the proper rewrite url line for .htaccess file for the following problem. I have my website http://www.dubrovnik.com I'd like to send user to my 404 Page whenever user request for non-existing link. I've managed … | |
Hi Im getting into a php mvc framework, available here ([url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#8[/url]), but they only explain their code, and dont offer much other advice on the basics of working inside a framework... how would i go about posting a form? working outside of any framework i usually just post the form … | |
Go here: http://www.tizag.com/phpT/fileupload.php Under the heading "**php - file upload: uploader.php**" there are these sentences:- ----$_FILES['uploadedfile']['name'] - name contains the original path of the user uploaded file. ----$_FILES['uploadedfile']['tmp_name'] - tmp_name contains the path to the temporary file that resides on the server. The file should exist on the server in … | |
I have a database and want to display data in rows then create a link to show the whole data when selected. Kindly guide me how to get the right php script for creating the link to display the whole row from database. | |
// set timeout period in seconds $inactive = 1; // Testing. Change back to 600 when done // check to see if $_SESSION['timeout'] is set if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); header("Location: index.php"); } } $_SESSION['timeout'] = time(); The code above works fine. … | |
Hello, Im Jeffrey McCain! Im Trying To Build A Website And The Last Thing I Need To Know How To Do Is Display Imade From A Datbase! I Found A Tutorial >http://www.codeofaninja.com/2011/02/how-to-resize-and-print-image-file-from.html < But I Don't understand How To Implement It! I Will Glady Pay ANOYONE Who Can Show Me … | |
Hello, To Keep It Short! I'm Building Three Websites. And I Basically From What i Was Told Need To Put Images On In A Row Going Down The Page And The Images Need To Come From A Database Which Is Mysql And Im Guessing That PHP And Such. Also When … | |
Im tring to show image1.png if it exists, else show image2.png <?php $image1 = images/image1.png; $image2 = images/image2.png; if ( $image1 < true ) { echo "$image1"; } else { echo "$image2"; } ?> I am getting a Warning: Division by zero Thank you | |
Hi Folks, I've recently started using High Charts to chart dynamic data from my database. I was on last week with an issue in relation to my column charts not rendering. I managed to figure that out with the assistance of other forum users. I now have a new problem, … | |
I need to create a video gallery for a website, and would like to create it using the html5 video tag backed up by videojs. As I havent worked with video uploads before I have some doubts on how to approach it: What file size would you recommend as a … |
The End.