Archive for the ‘php programming’ Category
How to get a random string in php programming?
You can use session id to geenrate random string
<?php
session_start();
echo session_id();
?>
How to learn php programming language ?
I am an web designer but dont know any programming language but i am interested in php how to improve it learn it ……..
I learned it just by searching on google. Like: submit command PHP. That way I can do anything. It works for me and I hope for you too.
Is php a good programming to write exploits in?
I am wanting to learn some hacking, I am fairly good with php. I am curious if that is a good language to know of hacking? Also if decent exploits can be written in it?
PHP is good for building bots as well as many other languages such as Java, Perl, and Python.
In PHP programming What is the difference between explode and split?
split() can work using regular expressions
Ex. $date = "04/30/1973";
list($month, $day, $year) = split(‘[/.-]‘, $date);
but Explode use only single value to explode string into Array
which is the best computer training institute in ahmedabad for PHP, SEO or web programming?
I want to Learn PHP, SEO and Web Programming in ahmedabad.
Any one suggest me.
Which Institute better for me?
VaaYaa Edutech provide world’s first and only life time support training programs thaty cover newer, innovative and affordable online higher education programs and courses that meet the needs of a wide and diverse market. We support an updated, improved model of educationthat is focused, self-paced and supported by dedicated and accomplished faculty. We are dedicated to delivering to our students degree programs that enable them to make contributions not only in their personal lives but in their communities as well. With our virtual online setting, students can study at their own pace to fulfill their educational goals. We help you in hiking your current salary or get you well deserved job and salary as per your expectations. Our training program also comes with life time support – only offered by us in the world.
VaaYaa Edutech – SEO Training Institute Ahmedabad
E-Mail: info@vaayaaedutech.com Or Web: http://vaayaaedutech.com
Phone: 079.6542.4739, 6545.3262, 079.6542.4718, 6545.2653, 6545.3226, 4037.3354,
Address: A/1/A, Chinubhai Tower, 3rd Floor,Nr. H.K. College, Ashram Road, Ahmedabad: 380 009.
php programming?
in php DOMDocument is it possible to call HTML Tag (to get it`s value)? as it is in xml?
Create a video blog
How can i delete multiple records using checkbox in php programming?
You can use following code for it
<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="test_mysql"; // Table name
// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
?>
<table width="400" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><form name="form1" method="post" action="">
<table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF"> </td>
<td colspan="4" bgcolor="#FFFFFF"><strong>Delete multiple rows in mysql</strong> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">#</td>
<td align="center" bgcolor="#FFFFFF"><strong>Id</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Name</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Lastname</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Email</strong></td>
</tr>
<?php
while($rows=mysql_fetch_array($result)){
?>
<tr>
<td align="center" bgcolor="#FFFFFF"><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $rows['id']; ?>"></td>
<td bgcolor="#FFFFFF"><? echo $rows['id']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['name']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['lastname']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['email']; ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="5" align="center" bgcolor="#FFFFFF"><input name="delete" type="submit" id="delete" value="Delete"></td>
</tr>
<?
// Check if delete button active, start this
if($delete){
for($i=0;$i<$count;$i++){
$del_id = $checkbox[$i];
$sql = "DELETE FROM $tbl_name WHERE id=’$del_id’";
$result = mysql_query($sql);
}
// if successful redirect to delete_multiple.php
if($result){
echo "<meta http-equiv=\"refresh\" content=\"0;URL=delete_multiple.php\">";
}
}
mysql_close();
?>
</table>
</form>
</td>
</tr>
</table>
PHP programming?
write a program in php which can process the data from this HTML form. To convert a temperature in Fahrenheit to Celsius, 32 degrees need to be subtracted and the result needs to be multiplied with (5/9). For instance, 95 degrees Fahrenheit is 35 degrees in Celcius, and 20 degrees in Celcius is 68 degrees in Fahrenheit.
I cant really understand the guide from PHP user manual anyone can help me please
Caffeinated Content – Members-Only Content for WordPress
Could I get help with programming with php?
I want to make an awesome facebook app I’m using the developer app to make the app but it’s to confusing the only programming back round knowledge I have is writing simple batch files so is there like a site or something that can break down php programming for noobs like me.
Also side note I want to impress a girl by making this app you didn’t need to know that, but yeah.
Kansieo.com
Why and when would someone use OOP rather than procedural programming in PHP?
I know some very basic PHP OOP (PHP: Hypertext Preprocessor object-oriented programming). However, I’m not sure why or when someone would ever really want to use it. It seems time consuming and in general unnecessary. Please give me examples on when one method would be better over the other. But mainly, why would you really ever want to use OOP in PHP?
PHP Programming