39,323 Topics
| |
How to extract only first two paragraph form mysql? [CODE] while($row = mysql_fetch_assoc($result)) { $about=$row["about"]; } $start = strrpos($about, '<p>'); $end = strrpos($about, '</p>', $start); $paragraph = substr($about,$start,$end-$start ); [/CODE] This code gives first only one paragraph. How to get first two paragraphs? Please help | |
i want to do a project on online vihecle tracking so i need to know the requirements and the code | |
Hi, This is code. $toname = 'XXXXXXXX'; $to = 'test@mail.com'; $fromname = 'YYYYYYY'; $from = 'test123@mail.com'; $subject = 'This is test email '; $body = 'Hai this is test email MIME......Help me out.....'; $text_body ='<html> <head> </head> <body> <table align="center" cellpadding="5" cellspacing="0"> <tr align="right"> <td bgcolor="#336699"> <b><font color="#FFFFFF" face="Verdana, Arial, … | |
Hello! I ma trying deferent times but nothing happened in my website the frontpage dont change ...I have 3 colums i need 2 colums ,when i set nothing happend.Can i have an help please?my website is [url]http://shqiplive.info[/url] i set like image here[CODE]http://desmond.imageshack.us/Himg201/scaled.php?server=201&filename=tablehj.jpg&res=medium[/CODE] | |
Im building a very small website which has an admin and public area what i want to know is your prefence when it comes to reporting or logging ie. when admin or user insert, update, delete, from and to the database changes will be written to either a database or … | |
How do I set default value of function parameter as today's date? I tried: [CODE]function funcName($today=date('Y-m-d')) {do something}[/CODE] Throws me this error: [CODE]Parse error: syntax error, unexpected '(', expecting ')'[/CODE] Thanks. | |
So, for the past couple years, I've been using systems like WordPress and now Drupal to construct client websites. Most of the development has been front-end with themes and simple widgets (or blocks in Drupal). Don't get me wrong, I love using those systems, but now I want to move … | |
Hi! Im changing my database engine from MyISAM to InnoDB its because I learned online that if I were to use FK's that its more likely that I have to use InnoDB my question is: if I have a one-to-many relationship tables: ie. one PK in table 1 can have: … | |
Hi all, I do not know PHP at expert level. I have an admin panel which has index file coded in OOP which does not open the admin_home.php. When i give admin username and password to login, it logs in and takes me no where and shows the same log … | |
Hi all, I hav a code that takes my table rows and displays as checkboxes in a registration form, When the form submits user checked values will be saved separated by comma's(,) in one column . In future the user need to edit his details means how to show that … | |
Hey guys anyone here know how to set-up virtual host on nginx? ive tried the manuals but doesn't work for me | |
Hi I am retrieving values from database for edit profile... I have one query ..... i.e. Based on department Id in database i am showing selected value in drop down box.... but while inserting how to insert department id. $data = @mysql_query("select * from Department"); $array = array(); while ($row … | |
Greetings everyone, im new here so i hope anyone could help me with this: I have bought a script that are encoded is something that i cant change or read, and i have ask the owner how to put a {user} at the end of every hyperlink so are going … | |
Am trying to validate these variables with an if statement,but it not working,any help will do. [CODE] if($navtype == "xxxx") { $com_name = $_POST['com_name']; $loc = $_POST['loc']; $name_mech = $_POST['name_mech']; $vtype = $_POST['vtype']; $s_veration = $_POST['s_veration']; $remnder_ver = $_POST['remnder_ver']; $vreg = $_POST['vreg']; $last_startdate = $_POST['dy']."-".$_POST['dm']."-".$_POST['dd']; $mileage = $_POST['mileage']; $current_mileage = … | |
Question in title. I need it for my PHP site to know which theme is active and I dont want to use database for it. I think it should be possible, cause wordpress doesnt have this stored in database either (I think). | |
Hello! i am looking for coders to help with making a online mafia game, i myself cannot do it yet but am trying to learn, and have realized how much money can be made once you get active players!!! i am willing to put a lot of time into this … | |
Hello, First let me start of by saying that I am new to javascript and ajax, but I thing I need them to accomplish what I am trying to do and here it is. I have there search forms, 1 search owner, 2 search contractor, 3 search properity. Then I … | |
I have the code shown below that nicely fills a Combobox but I have no idea how to have it on a form so that the user can select an item and the resulting $_POST would be availabe to another page the same way it would be if the Combobox … | |
Hello, all. I am doing a project, which supports users such as Administrators, teachers and students. Since I will not always be available when they are registering, I want a user to create for themselves an account. However, the challenge is that, I do not want a user to register … | |
Hi I am working on web for some group, but i have problem my code is [ICODE]<?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = mysql_connect("http://mysql.ic.cz/phpmyadmin/","USERNAME","PASSWORD") or die("Nemůžu se pÅ™ipojit"); mysql_select_db("vy_promm") or die("Nemůžu najÃt databázi"); $query = mysql_query("SELECT * FROM uživatelé WHERE username='$username'"); $numrows = mysql_num_rows($query); … | |
Can someone tell me y PHP is good for making a website? | |
I have html page(Main_Frame.html) which contain two frames. 1)abc.php 2)xyz.php How can i auto refresh abc.php without refreshing the whole. | |
I want to create a button on a php pafe like a form now after pressing this button i should load an image. Now the I have done this. when the image is appearing it's on the other page than where the button was. I want to have the button … | |
Hey guys... Needed some help in PHP .. Basically.. say.. I have 2 or more input fields and one text area. Now, I want some sort of a php script that would use POST to extract submitted data from the inputfield1, inputfield2, and text-area. The textarea is going to have … | |
Anyone can help me how to get data from one page to other page? here code : [CODE] <form action="" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?>"/> <div> <p><strong>ID:</strong> <?php echo $id; ?></p> <strong>Nik: </strong><font class="important">*</font><input type="text" name="nik" value="<?php echo $nik; ?>" /><br/><br/> <strong>Name: </strong><font class="important">*</font><input type="text" name="firstname" value="<?php … | |
Hi! I need to know if theres a function that is simmilar to mysql_insert_id function where it gets the last inserted id but the thing is my id is not auto increment i tried doing the select statement but not working my scenario is: i am updating a record from … | |
I was given this assignment: Create an html form. Include at least two text boxes, at least one of which must be numeric, a set of at least three radio buttons, a submit button and a reset button. Upload to your account. Make sure the permissions are correct. Name it … | |
Somebody please help me come up with a code that helps a motorist troubleshoot a problem in his car.A non mobile application will also be a good one. | |
I have a directory named action at the same level as my basic script. I want to include a file called Upload which is in the action directory in my script. I keep getting errors saying the script can't find my file, but my script looks identical to the book. … |
The End.