39,323 Topics
| |
I have table in mysql, have values in row i want when page loads the highest value is alwyas the selected one. Im using two queries first one pulls the top value and adds it to box then it populates the rest, so it shows this top value twice, is … | |
Hi, I want to buy a Codeigniter book to learn its framework and develop PHP applications with it. I've been using PHP about 4 years but never used any kind of framework before. Which one of these books would be good for me to get staring: [URL="http://www.amazon.co.uk/CodeIgniter-Professional-Development-Adam-Griffith/dp/1849510903/ref=sr_1_1?s=books&ie=UTF8&qid=1304357639&sr=1-1"]CodeIgniter 1.7 Professional Development[/URL] … | |
I want to run a simple query when a Link is clicked, without disturbing the page i.e at the back end of a page. Also I am passing some values also. | |
I'm looking for any website or online book on object oriented in php to learn more about how to use classes and objects better. I would appreciate beginners level and expert level resources. | |
I was just wondering if it can or not. Otherwise wouldn't this code work great for stopping SQL injection? [code=php] $some_post = addslashes($_POST['some_post']); if (!ctype_alnum($some_post)) { //error } else { //all good } [/code] | |
i notice a thing about header function in php.....sometimes we used it as 1.header("Content-type: $contenttype"); //i saw this in a dynamic page 2.header("Content-type: $image/png"); //saw this in a captcha create page 3.header("location:bird.php"); // this one i understand 4.header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); //saw these … | |
Hi there, I'm trying to setup a website with a database. I want my php code to create the database and then input the data into it, however a get the error on my register page: Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*****' (using password: YES) in /fg_membersite.php on … | |
Hi, I did an example to see the time it takes to run a query and cache it but it doesn’t work and I cannot find why. Please give me a hand. No cache file gets created as well. In config/database.php: I’ve set $db[‘default’][‘cache_on’] = FALSE; because I don’t want … | |
I'm trying to write php code to access my sql database. pretty new at this and was wondering for my hostname and username and that, do i prefix the web address to the username and password or what is it? I geta error saying my credentials are not correct. Can … | |
I have downloaded files from [url]http://sergey89.ru/files/ffmpeg-php-win32-all.zip[/url]. I add four files in c:\\windows\system32\ folder these files are : avcodec-51.dll, avformat-51.dll, avutil-49.dll and pthreadGC2.dll. And one file php_ffmpeg.dll i add in \xampp\php\ext\ folder. After restarting system and server i get following error: --------------------------- Warning --------------------------- PHP Startup: ffmpeg: Unable to initialize module … | |
I am printing checkbox's value on combobox value using AJAX, but showing undefined. First time it ok, but When checkbox is clicked then value is set to be off, showing undefined. Here is the code. [B]Checkbox[/B] [CODE]<input type="checkbox" name="course_inactive" value="off" id="course_inactive" onclick="check(this.value); value2(this.value)">[/CODE] [B]Combobox[/B] <div style="float:right; height: 26px; padding-top:2px;" id="div_courses"> … | |
[CODE]<?php require_once('Connections/TSFH.php'); ?> <?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = "aclevel"; $MM_redirectLoginSuccess = "/users/" . $loginUsername . "index.php"; $MM_redirectLoginFailed = "/login.php"; $MM_redirecttoReferrer = false; mysql_select_db($database_TSFH, … | |
Is using php with MS SQL server over MySQL a good practise? Ive been using MySQL for quite sometime and what I like about it is that it is free. Are there any advantages of using MS SQL server over MySQL? Or any challenges. | |
Can any one suggest me where i can get free blog templates similar to below template. [url]http://blog.artoflegendindia.com[/url] | |
i am wondering where i am going wrong, i have a uploader image in php and html, it all works as in it goes into the set folder, but i have a problem, because i want the program to do the folder then do another folder inside,as in using the … | |
Greeting to all :) i wanted to store a selected option in to mysql database My senior said must in this format" option 1 option 2 option 3 I was stuck with this couple hours ago! i have think of nl2br but i'm not familiar with it Can anyone help? … | |
I downloaded the php. MySQL and the apache but, I am facing a problem in which the code is being displayed and not the web page. There must be a configuration problem. Any help would be much appreciated. | |
Hii, I am new to PHP world. I need to convert the video files into flv format. I am having a problem in the code. Its not working. I dont know whats the problem. It gives error " Parse error: parse error in \script\uploadvideopro.php on line 63 " Here is … | |
| Hi, I am creating a script to show stock information, but the images showing the price difference (down and up arrows) are not appearing in page or in source. They do exist on the server and the src url is correct, so I think it is a PHP problem. Here … |
Hi If somebody can point me in the right direction for what i require that would be great. I will give an example rather than exactly what i require just to make it simplier to get the information across 1.I have a csv file which has around 400 rows in … | |
hi i'm using drupal. when i'm on my blog page and when i'm signed in as admin i'm getting a list of all the og groups in a selectbox and when i'm signed in as a normal user i'm getting checkboxes for only the groups i belong to. i want … | |
I need to process/send this form [CODE] <?php <form name=\"form1\" method=\"post\" action=\"send_contact.php\"> <p>Emne:</p><input name=\"subject\" class=\"input\" type=\"text\" id=\"subject\" size=\"64\"><br /><br /> <p>Forespørgsel:</p><textarea name=\"detail\" cols=\"50\" rows=\"7\" id=\"detail\"></textarea><br /><br /> <p>Navn:</p><input name=\"name\" class=\"input\" type=\"text\" id=\"name\" size=\"64\"><br /><br /> <p>Email:</p><input name=\"customer_mail\" class=\"input\" type=\"text\" id=\"customer_mail\" size=\"64\"><br /><br /> <input type=\"submit\" name=\"Submit\" value=\" Send \"> <input type=\"reset\" name=\"Submit2\" … | |
Hello, I have a query, that I am trying to have a conditional statement for a variable that I will pass into the query. If I use one of the conditions it works, but if I try both I can't get it to work. I would appreciate any help. Thanks, … | |
Dear All, I have a page at this link [url]http://183.78.169.54/v3/addTab.php[/url]. The problem now if you click on the Driver Employment tab and press Add button at the bottom the content will change to Driver Details. But the tab Driver Employment is still highlighted not the Driver Details. Below is the … | |
Dear all i have created a from to receive data from users. and data will store in sql table. all is going well. BUT NOW i have installed a module so users can type in Hindi fonts to fill details in form. when users will type data in hindi font … | |
Hi, I have found a REALLY simple contact form, which i am trying to mail to my own email for testing. But I havent tried this before so i am not sure how to set it up. Hope someone can help me out! I get this error: [CODE] ( ! … | |
Hi, I am working on this code.I am trying to redirect the [B]URL[/B] coming from database. i am using target="_blank" but its opening in reverse order. i.e. main.php is opening in new page & uRl page is opening on the same page but i want URl coming from database should … | |
Hi, i was wondering if anyone can help me. i am new to php and was wondering if it was possible to embed javascript in php. i was trying to get an alert/msg box up to explain an error to the user. i have written the following code <?php ............. … | |
hi, i would like to know how to use server side validation in php i mostly use client side validation using javascript but now i want to validate my form using php. thanks | |
how to add circle marker on google map by giving latitude,longitude and radius in KM? |
The End.