39,320 Topics
| |
hi all I have the code below, and I am getting this error: The image "http://127.0.0.1/newsite/thumbnailgenerator.php" cannot be displayed because it contains errors. think this should be correct, what could the problem be? please help if you can. thanks :) [CODE] <?php header('Content-type: image/jpg'); function create_thumb_nail($array_image) { if (isset($array_image['image'])){ $image … | |
$result = mysql_query("SELECT * FROM rooms"); while($row = mysql_fetch_array($result)) { mysql_query("insert into chat (name,text,date,chat_id) values('$_SESSION[username]','$_POST[text]','$date','$row[id]')"); } can i do that without repeat the mysql_query code? | |
Hi, Maybe anyone has worked with this before. I have a cakephp app where i need to dynamically create images. When i use header('Content-Type: image/png'); imagepng($dest); i get this - The image cannot be displayed, because it contains errors. When i try this imagepng($dest,"image.png"); The image is never saved, tried … | |
It outputs blank for some reason, here is my current code. [CODE]<table> <?php $puserid = $anothervalue; echo public_Images($puserid); ?> </table>[/CODE] [CODE]function public_Images($puserid){ $sql = "SELECT * FROM `ue-userfile` WHERE userid = '$puserid' AND albumname ='Public' ORDER BY date DESC"; $result = mysql_query($sql); $count = 0; while($row = mysql_fetch_array($result)){ if ($count … | |
Drupal 7 I know there was a previous post, but this is a little more specific to the $_GET function and Drupal. echo $_GET['id']; Error Message: Notice: Undefined index: id in eval() Just to make sure it worked, I created a test site and copy/pasted my code into a php … | |
Ok, I feel like I'm so close, but could use some help. I am trying to retrieve data from mySQL database via use of a form with checkboxes. This form is working somewhat except that it is only pulling one selection, not all that are selected. Can someone look at … | |
But the problem is: There a File names "includes" which includes the php files which have been included in some of the php files outside of it. But I want to lock/ make it inaccessible for users. Is it possible that the users can't access the folder/directory but the php … | |
Has anyone found a good way to create powerpoint files on the fly. I'd like to go straight from PHP but creating from an HTML or XML doc is fine too... Also I'm totally Linux so COM Objects on Windows is out... thanks for any help... | |
this code will delete all the files from a directory on the server. be careful when using this as it will delete everything in the directory so use it wisely or make sure you have backups if it is implemented on the wrong directory. it works by searching for all … | |
Have a website that i am developing [url]http://www.wheels4rent.net[/url] and need help with PHP. when the dates etc and location is entered i have a deep link into another site and i have done this with PHP. This displays cars etc and prices. However i want to have a "book" button … | |
Hello everybody, i need help from you guys.. I want to split text line into 2-3 lines and put it on image using GD. I know how to write text on image with GD, but i don't know how to split text to get the last line.. Here is what … | |
Hi There, I have 2 tables, one with dst codes and one with fees. I want to match the fees with the dst code. I've been trying a for loop but it's not working 100%. What is the best way of matching dst code with the corresponding fee? If TABLE … | |
I have a large text string which is queried from a database. It can be several thousand words long. As of right now, when the search is run, it pulls all of the text and then prints the first 150 characters: [code] echo '<span class="line3">'. strip_tags(truncateText($sermontext, 150)) .'</span>'; [/code] The … | |
i have table in the database for login system [CODE]CREATE TABLE users ( username varchar(30) primary key, password varchar(32), userid varchar(32), userlevel tinyint(1) unsigned not null, email varchar(50), timestamp int(11) unsigned not null ); [/CODE] already have cart for things that doesnt need shipping, but its with JavaScript, [url]http://lasthunter.freehostia.com/rated-online/conf_files/js/simpleCart.js[/url] but … | |
I have never worked with mysql. I need to design a few pages for a website that allows certain people to log into the page and be able to update or change the info manually without having to use any html editing software are any programs. How is this done? … | |
i have a date column where dates are saved in varchar format like this 17-03-2011 :: 11:19:48 i want to find last date through query.. please help thanks | |
i need simple shopping cart (without shipping fee and those things) but with/without cPanel and registration form with MySQL to save members data, any suggestions? :D | |
Hello, I have a database where I insert records into, in Hebrew. One of the fields needs to have quotes in it. Then I need to use this field as the title attribute in an image tag. I got confused with all the different functions: mysql_real_escape_string, addslashes, stripslashes etc. Up … | |
What I am upto: I am tryin' to develop a Blog CMS. There is a Database named blog in which there's a table named posts. The posts table has these fields: post_id, post_title, post_url, post_time, post_category, post_desc, post_username. Here, post_username is the username of the user who posted this post. … | |
I am analyzing a code and I receive the next error Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\AktiveKB\admin\includes\classes\class.auth.php on line 175 I am new in php and I don't know how to handle this error | |
hi i want an idea/code that can call a controller method from a javascript function inside a view. am using codeIgniter 1.7.2. what i wanted to achieve is to load details of a client by entering his account number and press enter key to load the details. hope you will … | |
Hello, I am making an online gallery for a friend and have this (partially listed) folder structure. root/index.php root/inc/gallery.inc.php root/inc/setup.inc.php root/inc/includes.inc.php Gallery.inc.php has various functions in it (Get image, album, etc), setup.inc.php has config variables (for my friend's ease of access, contains SQL stuff and date formats), here is what … | |
Hi :) I have a page where users can enter youtube url's within bbtags such as: [Youtube ]youtube-url-here[ /youtube] However...I'm having some problems when the url contains the & sign..as this seems to cut off the string at this point. I've read somewhere that one have to use urlencode these … | |
how can i appear confirm message box when row are delete (are you sure to delete this record) in php?? [CODE]echo '<td><a href="teachers_delete.php?Course_Id=' . $row['Course_Id'] .'" ><img src="images/delete.gif" /></a></td>';[/CODE] | |
Hi all, I have three CSV file. First one include toname,toid and status.Second one has username and password and the third one include from,subject,content,reply to,cc etc.I want to read csv files and to send bulk amount email address. Also want to increase mail sending time. How will read csv file … | |
Hey, I am very new to php. I have a PHP script (modified from [url]http://woogley.net/misc/Highscore/)that[/url] I call from a my Java code to access a database in order to read/write records. The SELECT part of it was perfect. However, i can't write to the database when I try to UPDATE. … | |
hi everyone! I would like ask what is the use of this file in wordpress? myfile.mo <--(sample file that I'm talking about). every time i use plugin in wordpress and inspect their files. i always see this file(myfile.mo). i want to know why they include this file into their plugins. … | |
How to use self created button in wordpress navigator? | |
how to secure WordPress from hacking?i want know details information, can you help me friends? | |
Hello, I know this kind of questions sound silly most of the times, but still I need to ask it. I am planning to get a web application done, for my business usage; it should be able to handle a huge DB scenario ( think of retailers DB ), support … |
The End.