39,388 Topics
![]() | |
afternoon all! I am having some issue writing a log in script for a website! this is my first ever attempt so i am hoping it is something very straight forward!!!! I am getting the following error message - Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource … | |
Hi, I am habving problem with tcpdf library.I am using Version: 5.9.162.I have a table format structure and the user writes in the table format and add the data and creates the pdf but my pdf file is not creating as i wish to create them some of the data … ![]() | |
Hi, This has been troubling me for the last hour and I cant think of a way around it. My SQL table looks like this: **Name, Cost** Matt, $5.00 Carl, $4.50 Tom, $6.00 Tom, $7.50 I need to make a query so that it puts anything with the same **Name** … | |
<?php header('Content-Type: text/html; charset=UTF-8'); if (file_exists('./admin/actions/precheck.php')) { $testing_from = ''; require_once './admin/actions/precheck.php'; } $response = ''; try { require_once 'admin/config/ProjectConfig.php'; ProjectConfig::setup(); $options = array(); $application = new Moto_Html_Application($options); $response = $application->dispatch(); } catch(Exception $e) { echo '<b>Exception</b>: '; echo $e->getMessage(); } echo $response; Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on … | |
I have this calculator class that performs business calculations distributed among small methods. I'm split between choosing to save the state, or just calculate everytime a method is called. Am I doing unnecessary micro-optimization or not? class Bill { private $value1; private $rate1; private $value2; private $rate2; // ...code here … | |
Hello, i am new to magento. please clarify me i want to do below task if cart amount greater than (grand total)500 then charge 10% deposit at first and before product delivery user has to pay remaining amount. if cart amount(grand total<=500) then user has to pay total amount. how … ![]() | |
I want to open this flash code in popup box. But can't find solution any one can tell me ho can it is possible. I want to used this in joomla CMS. <p style="text-align: center;"> <object height="215" width="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,32,18" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="src" … ![]() | |
I'm using Drupal 6.2 and Ck editor. Now whenever i upload some image in ck-editor , the image gets uploaded and saved in file system successfully. My problem is when i try to show data on some page , the uploaded image is missing but text is shown but when … ![]() | |
I'm almost done with college and I want to work on a side project that I could use to show case my skills. I'm looking for something that I can combine a bunch of different aspect into one. I know this will be a big project and won't be able … | |
so here is the line calling the function: $login = login($username, $password); if($login == false) { $errors[] = 'That username/password combination is incorrect'; }else { $_SESSION[user_id] = $login; header('Location: anounceEdit.php'); exit(); and here is the functions code function login($username, $password) { $user_id = user_id_from_username($username); $username = sanitize($username); $password = SHA1($password); … | |
Hi, I have this code here: **index.php** <?php include 'core/init.php'; include 'includes/overall/overall_header.php'; ?> <h1>Welcome to AwsomeChat!</h1> <p>This is AwsomeChat - a free place just to hang out. This site is made for chatting or socializing with a friend. This site is free, no membership needed to use this site.</p> <?php … ![]() | |
Hello, everyone. I've been attempting to make a proper proxy checker to check for HTTP proxies for a while, yet I've been unable to find one that correctly finds working proxies. The bulk of my code is below. $ch = curl_init(); //initizlize and set url curl_setopt ($ch, CURLOPT_URL, "http://google.com"); curl_setopt($ch, … | |
Heloo everyone. I have this code for a form in PHP...but when I use $POST['collection'] or any other from th drop down lists I cannot access the vaalue of the variable passed: <form enctype="multipart/form-data" action="insert_validation.php" method="post"> <table border="0"> <tr><th>Choose category: <tr><td><select name="category"> <?php $sql=mysql_query('SELECT category from Category order by category'); … | |
![]() | in the string XX is always changed and string can be longer or shorter and it can be without searched word, where XX is a number example: 1 kom. nije naručeno, obično dolazi za 5 dana., slični: sony-6am6ptb1a (0 kom.), sony-s006pb1a (-9 kom.) So from that I need to output … ![]() |
ok so here is the code that is being called <?php require 'core/init.php'; if(empty($_POST) === false) { $username = $_POST['userName']; $password = $_POST['password']; if(empty($username) === true || empty($password) === true) { $errors[] = 'please enter a username and password'; }else if(user_exists($username) === false) { $errors[] = 'we can't find that … | |
I am a php newbie, and I have realised that there are many functions to learn in php, but can anyone point out which ones are the best for beginers? Can you mentions 10 most usefull functions or more? ![]() | |
I'm thinking of hosting a *name that tune* type game. I don't know anything about PHP or even if it's the languge to use, but I'm hoping someone might put me straight on that matter too. Here is an outline of my needs/scenario. I post a link to a song.mp3 … | |
hi all.. pls help me.. i want to sum the price of multiple products with its quantity and shipping charges. in my products table all the products have different shipping charges. for ex: product1 shipping charges. product2 shipping charges. shipping to US = $10.99 shipping to US = $14.99 shipping … | |
ok so here is the code I am working with, <?php include 'database/conection.php'; $allowedExts = array("jpg", "jpeg", "gif", "png"); $extension = end(explode(".", $_FILES["file"]["name"])); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 20000000) && in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > … | |
ok so I am trying to create a login page for my website, however after following a tutorial on creating all the functions and calls and everything I need to in order to get it up, I upload it to my server and when I try to test it the … | |
I'm trying to create a php script to print fibonaaci series. The idea is to add a new number to the series everytime the page is refreshed and print the series. <?php if (!isset($_COOKIE["fno"])) {setcookie("fno",0,time()+3600);} if (!isset($_COOKIE["sno"])) {setcookie("sno",1,time()+3600);} if (!isset($_COOKIE["series"])) { $text="0 1 "; setcookie("series",$text,time()+3600); } $fno=$_COOKIE["fno"]; $sno=$_COOKIE["sno"]; $fibostring=$_COOKIE["series"]; //echo … | |
Hello, been a while since I have been here but I am working on something that has me stumped and I have not been able to solve it nor find an answer that does what I need to do. I have a form that is usually sent to an external … ![]() | |
hai everybody i have a social media connection in my pagewhenever click the share button the first screen you see is an **'Allow Access?**' screen with a button for **'Allow'** or **cancel** (link). How do I get such a screen to display for my page? thanks in advance. ![]() | |
I am using curl function to login my web site using the Gmail username and password. Its working fine in my local environment but once i moving that file into my client server it returns the response **"HTTP/1.1 401 Unauthorized"**. provied some solution here is my curl function code for … | |
Hello, Somenone that know osclass script, can hel me to customization search bar. I try to edit inc.search.php but I don't know how can I obtain this result: [Click Here](http://i50.tinypic.com/3537gwi.png) In this search bar tou can see 3 menus: What, Where (with city) and Category. Thanks to all | |
For some reason, every time I try to submit a question I get the error message that the code snippet in my post is formatted incorrectly.. I don't even have a code snippet. is it just me or is it something that happens to others? | |
i have and error : mysql_fetch_array() expects parameter 1 to be resource, boolean what should i do??where is the problem..??please suggest..Thank you in advance.. | |
getting a error at $item_id_g'. its bc of the quotes <?php echo" <button type='submit' onmousedown='func('$item_id_g');'>test</button> "; ?> i also tried this but didnt work <?php echo" <button type='submit' onmousedown="func('$item_id_g');">test</button> "; ?> | |
<html> <head> <title>Contact form</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> <script type="text/javascript"> $(document).ready(function() { var RecaptchaOptions = { theme : 'custom' }; Recaptcha.create('your public key', 'recaptcha_image', RecaptchaOptions); Recaptcha.focus_response_field(); $('#submit_button').click(function() { $.ajax({ type: 'POST', url: 'coustomer_rgistration.php', data: $('form#myform').serialize(), dataType: 'json', beforeSend: function() { var resp_field = $('#recaptcha_response_field').val(); var name = $('#name').val(); … | |
hi actually iu'm fetching 5 question id from db and saved in an array. now i'm fetching questions and their respective options from database. so i'want to save the option in seesions or cookies when ever user selected. this is my code for fetching questions & ANSWERS. public function display( … |
The End.