39,320 Topics
| |
Hi guys, I've made a class with a lot of functions, and for the 99% of the time i need the __construct functi. How can i call the class without the __construct ? class Test { public function __construct() { echo "bla"; } } $test = new Test(); What I … | |
Hi everyone, i am building book store, i am thinking about to create a single page who fetch a record from MYSQL on the basis of Book_ID instead of create each product detail page. when some click on detail button it passes book_id to another page where i write a … | |
Hi, I would know how can I validate the following php form fields Need for my student project. Please help me Fields requied are **Mobile Number**: `(10 digits number field)` **Gender **:` (Radio button or drop down box)` **Email **: `(valid email field)` **Date of Birth:**`( YYYY/MM/DD)` Please help me..Urgent.. … | |
Hi, I am trying to make my search results table sortable. The content is obviously dynamic, so how would I do this? *Tablesorter.js does not work…* I am using CodeIgniter... Any help would be fantastic! Thanks | |
Hi all, Need help from all of you... I am still a newbie, and wanna ask code to display mysql data based on username login. I try many time to change on this code : $result=mysql_query('SELECT tb_hitung.Keterangan, tb_hitung.Debit, tb_hitung.Kredit FROM tb_hitung INNER JOIN tb_bulan ON tb_hitung.id_bulan=tb_bulan.id_bulan ORDER BY tb_hitung.id_hitung'); but … | |
Hey all, I have created a mail script in PHP for a contact form on my website. I have a message that displays when the message has been sent. I would like this message to display below my form but am having some trouble with this. The message is currently … | |
I am a newbie to php and learning now, can you please help me telling how can I take inputs from users in pHp instead of using forms (i.e., a replacement of scanf() in php. I am solving a question to take number as a input and print that number … | |
Dear Frendz, Can we publish a web application in php like .Net? | |
Hi all i am creating a web application and i would like to generate a md5 checksum on an uploaded file while uploading can i just add md5($file); or is there another way to add a checksum thanks | |
So I am trying to do a neat little script in a wordpress plugin that replaces matching keywords with links to other articles on the site. I think I'm done all except one little thing down here below. I need to fix the preg replace function. It should match anything … | |
i am storeing image in database type long blob. //STORE IMAGE IN $IMAGE $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); //store image name in $image_full_name(.jpeg) $image_full_name = $_FILES['fileupload']['name']; //store image size in $image_size than conver to 100x100 $image_width_height = getimagesize($_FILES['fileupload']['tmp_name']); $image_resolution = $image_width_height[0] . "X" . $image_width_height[1]; //size of image 100x100 //get size in … | |
Hi , I edited my webpage and this occured **Parse error: syntax error, unexpected $end in /home/techgeek/public_html/FrF/test.php on line 59** I have checked all the tags and they are closed and here is the code. <?php include("include/session.php"); global $database; $config = $database->getConfigs(); ?> <html> <head> <title><?php echo $config['SITE_NAME']; ?> - … | |
I have an issue when I add "" around text in the statement below. With out it works fine but when I add it the whole page is blank. Can someone please help me out on this one. I need to have the quotes in the verbiage. **This works:** $lang["t_tech_v26_content"]="We … | |
hi i am working on a mobile verification code wher user can enter his email and his mobile number.then code has to be send to his mobile number,by that code user can login to site. how to achive this target. thanx in advance....... | |
I want to load three list boxes where 2nd list box is loaded on the basis of selection of 1st list box and 3rd list box is loaded on the basis of selection of 2nd list box.. . | |
Hello, I am trying to upload music files to a database for use on my website. However, the file doesn't seem to actually be going into the folder. I get the name of the file in phpmyadmin, but I don't see the file anywhere. Here's my script (I do have … | |
Hi, I have a file called reports.php which has several php and database functions. Upon viewing it in a browser it displays a nicely formatted report. Is there a way I can save the HTML(only) output from this reports.php into a **new file** (probably html) in a web server ? … | |
Hi, I don't know much about php, since I didn't need it. Now though I need to make one small change in .php file - change some text that gets displayed. This text is in UTF-8 Format with letters like ā š ķ , etc I've changed text inside of … | |
Hi, I've written my own pagination but one last bit left and need help. I have the array wbelow: Array ( [First] => First [<] => < [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 [7] => 7 [8] => … | |
i have the folowing code that gives me the first letter of each word. $string = $rowec['doopnamen']; $punt ="."; $words = explode(" ", $string); $doopnamen = " "; foreach ($words as $value) { $doopnamen .= substr($value, 0, 1); } But how can i get a dot after each letter ? … | |
Hi all, I just started joomla module writing (1.5 version). I have some knoweledge about this module writing now. problem is I want to select country name from a one module and load country flag in another module.which second module is in another region(or div). I know only to handle … | |
so i have a page where where is a link <a href=\"editimage.php?img=".$image_id."\">asdf</a> an another page i have to get the image_id that i am passing $image_id_g = isset($_GET['img']) ? $_GET['img'] : 0; echo"$image_id_g"; but the problem is that it prints 0 here. but i wan tto print image_id | |
I want to create an email class with many functions and use this methods I want some advice how to make this flexible and reliable as much as I can but another important feature is security to verify all the external input I am going to past all my code … | |
Hi, I have an unordered list in a file called elements. is there any way of putting the unordered list into a variable so that i can use include to place it on my homepage? help would be appreciated thanks | |
Hi all, I'm having difficulty with a function I've written. What it does, is creates a standardised list of Options Value's in a Selector for HTML. The value of the MySQL query is then used as the value, but for some reason, I'm getting an error in the code. If … | |
Hey Guys, I m new here. I need a help I am working with a s/w where I need to fetch data from database onchange event. actually scene is the user will select one option (ie. name of company) from the dropdown box. According to that value the s/w should … | |
Hi, I have some issues like 1.for free classified ads website what CMSs or Ecommerce softwares or we can do just code in php without using any of these? 2.Same for social networking and job portal websites too?? 3.If we use just php coding for free classified ads website how … | |
Hi, I am using below linked converter to convert kruti hindi font in to unicode font. But i am not exactly getting same data(in unicode) as in my document(in kruti font). [Click Here](null) http://svnnews.in/convertor.htm Below is attached document of kruti font which i want to convert & above link is … | |
Hi, I have a database table structure that works as follows: search_id: (auto int) group_id: (unique to group) field_name: field_value: so some entries in my db would look like this: search_id group_id field_name field_value 1 123456 fname John 2 123456 lname Doe 3 123456 email jdoe@abc.com 4 789012 fname Jane … | |
Hello, I never used cron jobs before and now I have this scenario: I have a table with a Boolean column called: new. I need to check this table every day, and if the record was created 30 days ago, I need to update the column to False. Do I … |
The End.