- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi All, I am a beginner in php and working on admin side of a small website. I have attached a PHP CKEDITOR to the admin page so that the admin may edit the pages text. Here, i am a bit confused about one thing and that is about how … |
|
Hello, I want to ask.. I have a website which is fine to be opened using any other browsers except IE7. In IE7, some of the functions do not work well. I tried using IE8 and it worked fine. Anybody knows the solution? Thank you |
|
Hello friends, I am new in php.I need your help in sending sms through HTTP. Could you suggest me what to do? |
|
Hi there :) I am doing a login log script and at first I didn't record the timestamp unlike all my newer logs, I was wondering is there a way to turn the date d/m/Y (15/02/2011) turned into a timestamp? I would appreciate any help given Thank you in advance! |
|
[CODE=PHP] $query = "SELECT * FROM VISITOR"; if($result = $VISITOR->query($query, SQLITE_BOTH, $error)) [/CODE] Fatal error: Call to a member function query() on a non-object in ...file path. I keep getting this error. Can anyone help? Thanks |
|
Hi, I am trying to write a .htaccess script that can redirect example.com to example.com/subdomain. This is my code but it's not working. Can you please suggest. RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ [url]http://www.example.com/subdomain/[/url] [R=301,L] Thanks in advance |
|
Hi Guys, As the title says really... Sounds simple, it is. But....! I'm dealing with huge numbers here. I'm dragging bandwidth from a logging system I am developing for a client and it returns it in BYTES... Very accurate :| This is the sort of number I'm dealing with here... … |
|
I have a database of questions for some tests. They will be uploaded on a website so that the users can browse them but I would like to make it hard for the users to copy them. I am using php to interface with the database. I have thought of … |
|
Hi, I know this is not PHP issue but we here writes a lot of database SQL querries so I hope for a help. I have a bible script that is supposed to query the scriptures between two intervals. My table is named Bible and have columns: ID (int), Book … |
|
Hi All, I want to integrate a What you see is what you get editor for my website. I understand that the editor can be the one as I can see I am typing in. How do I store data in database so that when I retreive the data from … |
|
I'm wondering if it is possible to skip certain fields in the mysql table in a sql statement. Here is what I mean: I have a table that has the following columns: firstname lastname phone dob Suppose I write the following statement: $[CODE]mysql_query=("insert db_table (firstname, lastname, phone) VALUES ('$firstname' ,'$lastname', … |
|
Hello: I have the following challenge I need assistance with. I have a mysql table [CODE] -- phpMyAdmin SQL Dump -- version 3.3.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 01, 2010 at 01:22 PM -- Server version: 5.1.48 -- PHP Version: 5.2.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET … |
|
Hi, Below is the data format which I am passing to php via javascript in json format. [CODE] {"name":"Secret","value": "checked","name":"OldSpice","value": "unchecked","name":"Degree","value": "unchecked","name":"Dove","value": "unchecked","name":"Axe","value": "unchecked","name":"Maxim","value": "unchecked","name":"Nivea","value": "unchecked",}[/CODE] I can access the data successfully using the code [CODE]echo $_POST['name'];[/CODE] I want to convert it to an array. I tried to use json_decode() … |
|
-------------------------------------------------------------------------------- I am trying to create a madlibs game .. I have a txt file with paragraphs in it .. Some of the sentences have the following tags in it <#noun>, or <#verb>, etc ... I need to parse the file in php and display the content in between the … |
|
Can someone help me insert a "white list" in this code? i already have a black list in it but thats pretty stupid when i only want these extensions; 'jpg', 'gif', 'png', 'bmp', '2bp', 'abm', 'afx', 'apd', 'art', 'arw', 'avatar', 'bm2', 'bmc', 'bmf', 'cal', 'cals', 'cam', 'can', 'cd5', 'cdg', 'cdg', … |
|
Hi Ive written my own MVC framework, which uses the mod_rewrite apache tool... first part of the url is the controller and second part is the 'action'... some of my controllers have functionality which is publicly available, and other functionality which i want to restrict to logged in users... i … |
|
Hello All, I have went through my code and checked for any whitespace or blank spaces and also missing closing marks and etc. But the error message clearly states that it is initiated at line 8 of my php code. Is it my echo in the code? Can someone please … |
|
I'm reading in a file's contents as a string. From this string, I want to get a substring. All I know is the text that is beginning of the substring and the end ot the substring, I do not know what is contained in the string between the beginning and … |
|
Hi, I recently bought a domain. As usual, the domain provider has given email accounts facility. The problem is that, I can access the email accounts only through the webmail address provided by the domain registrar (which has a pathetic interface) or through POP based email clients like outlook. Is … |
|
anyone know how to make the colour text box w2 change to a random colour when button clicked please ? [CODE] </html> <FORM NAME = frmOne> StartA X: <INPUT TYPE = Text NAME = x SIZE = 5 value ="0"> Two B Y: <INPUT TYPE = Text NAME = y … |
|
Is it possible to make the first letter of every word uppercase unless it is one of a group of words? I have to get some data from a database and present it on a page as a menu. The format would be that all words would start with a … |
|
I have a question that I can't seem to find a satisfactory answer to by searching the site, and I'm not entirely sure I am searching with the correct keywords. Anyway, here goes. I am working on a free membership script, and would like to use the members username as … |
|
can anyone help me out with these errors i'm getting please? and if they can explain why im getting them and how i can avoid them in future thanks :) Notice: Undefined index: prod_name in C:\wamp\www\uniwork\update_database.php on line 17 Notice: Undefined index: prod_price in C:\wamp\www\uniwork\update_database.php on line 24 Notice: Undefined … |
|
Good Afternoon, I am looking to create a page where I can enter data into a form and use INSERT to enter into the database. In the code example below, I have shown only 3 fields, but my page will have 13 fields and I want to designate 8 of … |
|
Hi there, I used code to fetch email address record from table abc on server but shows " Access denied for user 'mysqluser'@'serverip' (using password: YES) " [code] /********code ********/ <?php include "connection.php"; $tableName = 'abc'; $todayDate=date("m-d-Y H:i"); $backupFile = '../backup/abc_'.$todayDate.'.csv'; $query = "SELECT email_address INTO OUTFILE ".$backupFile." FIELDS TERMINATED … |
|
[code]foreach ($items as $product ) { echo $product; ?><input type="text" size="2" value="<?php \\display quantity here ?>" name="quantity" /><?php }[/code] $items is an array. It has multiple values, some duplicate. How do i count the duplicate values in the array and display in this foreach loop? i know array_count_values($product) but putting … |
|
|
Hello people. I was reading severals scripts, and I saw, all the time, that they used %s... What is the application of that ??? Becuase I'm searching about that and I don't find anything about it ! I know that it's about injection codes... Can anyone give me a web … |
I created a php page. this is my code. [CODE]$con=mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql = mysql_query("SELECT * FROM $tbl_name WHERE (Order = '" . $_POST['order'] . "')") or die(mysql_error());[/CODE] But its showing error like this You have an error in your SQL syntax; check the … |
|
Dear Friends, I am following the bestuff.com's active member session. I am doing the following thing... 1. when user logs in, I update my database's field with value 'O' (means user is logged in and fires query which has flag value 'O') But the problem is how to check user's … |
|
Hello, Few days ago I was searching online for a way to create a PHP forum though which the visitors can leave their messages and to automatically appear on the page. I found the a code and I used it to create the PHP form, but unfortunately I discovered the … |