39,388 Topics
![]() | |
![]() | I want to check if value is already exists in database with php. But this value can be as for example "John" or "JOHN" or "JOhn" or ... e.t.c how to check for all conditions? |
Hello guys, i have problem with regular expression , I have search box, I tried to enter (',#,$,%,^,&,"star",@,!,") or any other special charachters, it give me the whole database items, so i want to limit the enrty to only letters [a-z] numbers [0-9] and arabic charachters [ا-ي] or to be … | |
my code works fine but i feel i my structure of this code is not good. can any one help me out? i puted all code in one page. so i have a page. this page is made up by 3 parts. 1st part is the header. in header i … | |
Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out … ![]() | |
I am trying to connect mysql from within PHP function. The credentials are stored in a separate PHP file, which I am including it inside the function. But when I run the script, I am getting following error: Warning: mysql_query(): A link to the server could not be established in … | |
hello everyone, i am having a problem about my php code which tells that it cannot open a stream from function file(), and says 404 not found, true, but i already have filtered it but the error really comes out, but when i enter a valid id number, it produces … | |
HI I am trying to create folders from database, but get this error as im trying to make folders named field1-field2-info Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on line 8 <?php connection blar connection blar $query = "SELECT field1, field2 FROM Table"; $result = … | |
There's a web-site I used to access regularly but now when I try i come up with the message "version.php PHP script text." I don't even know what PHP is but is there any way that I can still get into the web-site or read it? ![]() | |
geeting a error Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\E_COMMERCE\MENU_PAGES\apparel_pages\male_print_image.php on line 35 line 35: while($row = mysql_fetch_assoc($item_query)) <?php ... if(isset($_POST['male_button'])) { $order_by_p = $_POST['order_by']; if($order_by_p == 'heigh_low') { $item_query = mysql_query("SELECT * FROM item WHERE sub_category='Male_T-Shirts' ORDER BY id DESC LIMIT 8"); } } … ![]() | |
My brain is not functioning! I am trying to select a number of random images (lets say 3) from a selection of folders within one other folder and I am either over complicating the code or am missing something as I can't quite get it to work. What I have … | |
Greetings, I created a script to export member's items into a tab-delimited txt file. The script works great, it escapes tabs and new lines and creates a perfect export.txt file. Problem: I have another link so people can download the export.txt file onto their computers using: PHP Code: $file = … | |
is there a way to use real link in include? bc the code below doesnt work. it say cant use http. login.php <?php include("http://localhost/E_COMMERCE/INCLUDE/header.php"); ... ?> --------------------------------------------------------------------- header.php ... <link rel='stylesheet' type='text/css' href='css/main.css' /> ... ------------------------------------------------------------------------------- another way in login.php, i can do this code below. but the problem is … | |
Hello everyone... Best Tablet To Code And Test Php On? | |
Hallo there, Can anyone explain to me, 1) how to use XML schema in future 2) any kind of specific purpose please take a look at the link here [Propel](http://propelorm.org/cookbook/working-with-existing-databases.html#dumping_da) Thanks advance, ![]() | |
Thanks you all in advance. I want to make a website showing the result of exams that are conducted in India. I want the user to enter his/her Roll Number in the form created at my website and as he/she press enter. His/her results should be displayed on the page. … | |
I am getting the error message "Invalid argument supplied for foreach()". I can't see to figure out what. Below is my query. Is there something I'm missing? Thanks public function editRole($id) { $q = $this->_db->query("SELECT * FROM `" . TP . "roles` WHERE `ID` = '" . floatval($id) . "' … | |
Below is a documented code example showing how to use the SQLite3 class to connect and query your database (and check for errors). IMHO using PDO is a better alternative, as this extension uses mixed technology in a non-standard way (objects, arrays and exceptions). If there are any questions let … | |
Hello, I have a website with an average hourly homepage visit of ~150, however, in the last day it suddenly jumped up to over 1000 visits per hour. Only the homepage is visited. How to determine what is causing the activity and should I be concerned? Thanks | |
I was having issues getting this working 2 years ago and through posting in here, got it resolved... Now I have another related question to the same rewrite code... I haven't ever run into this issue til now, so didn't realize it existed... I need the rewrite rule to be … | |
hi all.... please help me..... i want to download the files from server using php code. any help tnx in advnc........ | |
I have registered new custom post types and used this filter to add to my blog homepage add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query()) $query->set( 'post_type', array( 'post', 'kicksimage3', 'kicksimage5', 'kicksvideo', 'kicksstatus' ) ); return $query; } Now that it is showing on … | |
Below is a documented code example showing how to use the SQLite functions to connect and query your database (and check for errors). Please note that using the SQLite extension is NOT RECOMMENDED. This extension is no longer available in PHP 5.4.0. If you want your scripts to be future … | |
This demo will show a PHP script using a Smarty template. It assumes basic installation. In the folder where you copy the script, there should be a smarty folder containing the Smarty files. You should create a writable `cache` and `templates_c` folder, and a folder called `templates` where the `.tpl` … | |
Hello, I'm developing a classified script, I want that each member can register, upload your ads and view it in your personal area. I create script for registration but I don't know how develop personal area, I think that I set 2 db: users and ads. | |
Hai everybody, I need help in doctrine raw sql query, this query count not properly, $query = $db->prepare("SELECT count(p.friend_id) AS count , p.layer_id, l. * from layer l, people p where l.personal_id = :personal_id and l.id = p.layer_id "); layer_id friend_id 5 2 6 7 5 3 this is my … | |
Hello all: I have the following mysql query statement: SELECT COUNT(*) as ttl_rows FROM (SELECT DISTINCT(date(timeentry)) AS day, COUNT(*) AS total FROM history where MONTH(CAST(timeentry as date)) = MONTH(NOW()) AND YEAR(CAST(timeentry as date)) = YEAR(NOW()) GROUP BY DATE_FORMAT(timeentry, '%d') ASC) as ttl_row the statement performs a search for all records … | |
Hi , I have a form having some text fileds and submit button. One more input box and submit button . If a value is entered in input box and button pressed then that will search data from database and displayed in text boxes ,is done . Now I want … | |
Hi Everyone, How can I add a + sign to the following string.... for some reason I just can not figure it out I have tried ".+ and ".+." and sign quotes - both options but it just doesnt seem to work for me.... $number = $Code."".substr( $mobnum, 0 ); … ![]() | |
am using jquery.min.js to insert a form data into myqsl db.I just added a captcha script i got online,but i keep geting an [ Notice: Undefined index: secretNumber in D:\xampp\htdocs\mim\insert.php on line 25 ].I tryed all i know ,nwwd your help. javascript code: <script type="text/javascript"> > > $(document).ready(function(){ > //Get … ![]() | |
i am trying to save value inside input files. code below works fine when i use input field <input type="text" name="price" value="<?php if(isset($_POST['price'])){echo htmlentities($_POST['price']);}?>" /> but when i do same thing inside testarea it dooesnt safe the value. any idea why its dont safe it? <textarea type="text" name="description" value="<?php if(isset($_POST['description'])){echo … ![]() |
The End.