39,388 Topics
![]() | |
Hi this is scorpionz: I need to know how to insert PHP block in database using PHP, because i am generating random tables. So i need that to insert: Here is the query: [code] <?php $sql_insert_revisions = 'INSERT INTO node_revisions(nid,vid,uid,title,body,teaser,TIMESTAMP,FORMAT) VALUES ('.$nid_ins.','.$vid_ins.','.$user_id.','.$ad_title_view.', '"<?php $block = module_invoke('block', 'block', 'VIEW', 66); print … | |
Hello, I am trying to import mysql backup from the old computer to the new computer and these error appears: Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE IF NOT EXISTS `nafqc_usergroups` ( `id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', … | |
I am having trouble with this code: <!DOCTYPE html> <html xmlns:fb="http://ogp.me/ns/fb#"> <body> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <fb:like href="http://www.MyWebsite.com" send="false" layout="button_count" width="200" show_faces="false" font="verdana"></fb:like> </body> </html> The … ![]() | |
Hi People, Got a small issue...... And don't know exactly where the problem is. I'm trying to implement Online Manga Viewer in my site. I've tried this as a stand alone page and it works fine. What this viewer does is... There is a select box... Where I've got to … | |
Hi All, I am trying to rewrite the URL http://www.example.com.br/folder/sub_folder/my_profile.php to http://www.example.com.br/folder/my-profile. I have tried lot of rewrite method but i can’t redirect the URL. Please anyone help to solve this. ![]() | |
How to save the favicon draw in the favicon drawing tool using php | |
Hi all, ive got a big question about conducting mysql_queries.. i have a schedule program that needs to sort through and pick the records that apply.. the date will change, and used a php date() formatted to mysql date and pick out the ones records that are active vers inactive. … | |
Hi I work on a 'play play server' on my pc, for lack of a real server, for this I use WampServer, I have recently updated my version. I suspect its running PHP5 - and Im used to PHP4 behaviour... Most of the pages I use forms on have the … | |
i try different method to hide the "hide" div if status result is "E" i have four status : R ,A , I and E,, if status is E then show the "hide" div other vise hide it,, you people suggest me something, thanks in advance,,, code is here : … | |
I'm a newbie here trying to figure out why my simple php code is not working inside html. Files with .php extension however works fine.The page is just blank. I modified the following line "AddType application/x-httpd-php .php" in http.conf to "AddType application/x-httpd-php .php .html" I tried adding these lines to … ![]() | |
I have one table as movie. In that i have one field as 'image' in which i want to store the images. In my mca project, I m trying to make admin panel. For this when administrater is going to add movie details, at that time i want to store … ![]() | |
Can anybody tell me another good file uploader than blueimp and plupload? ![]() | |
I am using cPanel webmail interface to acces my company's email but I was requested to change the webmail branding with my company logo and color theme. I found out there are 3rd party web mail application that I can plugin into cPanel but I cant find one. Can you … ![]() | |
how to make a private message using php? please help me with my project .. i need full details.. thankyouxoomuch :) | |
include '../../snippets/connect.php'; $orgid = $_GET['orgid']; if(!isset($orgid) || empty($orgid)){ die("Please select your image!"); }else{ $query = mysql_query("SELECT orghomepic FROM org_home_pic WHERE orgid='".$orgid."'"); $row = mysql_fetch_array($query); $content = $row['orghomepic']; if (empty($content)) { **$image = imagecreatefromjpeg('http://www.ineed.org.uk/dev/media/images/nohomepic.jpg'); header('Content-type: image/jpg'); imagejpeg($image);** } else { header('Content-type: image/jpg'); echo $content; } } So this was working previously … | |
Hi, I want to upload files from one remote server to another using CURL I used following to upload a text file in "localhost/uploads/example.txt" to another machine http://192.168.0.202/example/ <?php $ch = curl_init(); $data = array('name' => 'Foo', 'file' => '@localhost/uploads/example.txt'); curl_setopt($ch, CURLOPT_URL, 'http://192.168.0.202/example/'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch); … | |
hi, i already reach to the end of my project, however there are still minor features i want to add in for the upload. When the user upload their pictures, i need to create a folder for that particular user and store the picture inside, means different user for different … | |
Im developing a simple attendance system for my organization im updating the checkin and checkout on session base so when the user get login and its session created i stored the the time in database and when he logout and the session and distroyed i update the field of checkout … | |
Dear all, I have a problem to count the total of receiving items.. but when I run this code I output of the total displayed "1".. not "5"...here my code.. hope someone can help me to count the total of receiving.. <?php include 'connection/db_connect.php'; ?> <form name="form1" method="post" action=""> <table … | |
Hi everyone, I'm sure there are people who are using highCharts framework. I'm having a trouble passing the values to jquery code from PHP json. Your help is so appreciated. This is my php section <?php header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 01 Jan 2013 00:00:00 GMT'); // The JSON standard … | |
**I have a string** $string =" HTTP/1.1 200 OK Connection: close Date: Tue, 25 Sep 2011 14:09:35 GMT Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Server: Apache-Coyote/1.1 Content-Length: 12881 Content-Type: text/xml;charset=utf-8 Client-Date: Tue, 25 Sep 2012 14:09:35 GMT Client-Peer: 123.46.53.940:8080 Client-Response-Num: 1 <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header/> <soap-env:Body> <PlexViewResponse Command="rtrv-ngfs-subscriber-v2" … | |
first thank you for solving privious problems. I am working on codeigniter . i am making signup form in which countries dropdown list is required. i am unable to make this drop down list with table country in my database.Can any one help me. | |
if($username&&$password) { $connect = mysql_connect("localhost","root","") or ("Couldn't connect!"); mysql_select_db("phplogin") or die ("Couldn't find db"); $query = mysql_query("Select * FROM users WHERE username='$username'"); $numrow= mysql_num_rows($query); i just wont to know the IF statement when it stars what is his function in the code. ![]() | |
<?php /********************************************************************************* * Filename: index.php * * PHP 4.0 + MySQL + AJAX *********************************************************************************/ //------------------------------- // index CustomIncludes begin include ("./common.php"); include ("./Header.php"); include ("./Footer.php"); // index CustomIncludes end //------------------------------- session_start(); //=============================== // Save Page and File Name available into variables //------------------------------- $sFileName = "index.php"; //=============================== //=============================== // index PageSecurity … | |
Can i restrict a file to direct download.suppose in my domain i am having a upload folder in which i am having a exam.pdf file then it should not be downloaded by accessing url http://www.mydomain.com/upload/exam.pdf . If it is possible then please tell me the way. | |
Hello everyone, Im new in web development, Im using localhost (XAMMP),I'm trying to make my website which basically allows users to compile and run their submitted java program on my server(my web page).Essentially, I want when the users click a button(upload) they upload file from file source(e.g desktop or anywhere … | |
Hello, Is it possible to use a PHP code to create a drop-down list that automatically inserts a word from MySQL table after writing a character? For example when I type "a", all the entries beginning with "a" show in order, then I type "n", then all entries begins with … | |
Dear experties, I have a problem to insert checkbox value which is checked by user into multiple database..when I run this code, only one row inserted into database, but I had checked more than 3 checkbox.. Here is my code, please help me.. form.php <form id="form" name="form" method="post" action="dbase.php?id=<?php echo … | |
I'm trying to create an xml document without converting html entities but when I create and save the file with DOMDocument the < and > characters are converted to < and > so trying to wrap copy within <![CDATA[]]> is proving problematic. Example of my code below: // Initiate the … | |
Hey everyone, I was doing a search on good tutorials on how to use the mail function. I thought it would be as easy as what PHP api tells me how to use it. I stored the value of mail() in a variable if the variable is true then I … |
The End.