- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
10 Posted Topics
Hey you don't need to worry about this problem Just after the </html> code write this code ob_end_flush(); if you have used header('location:...'); Better user ob_start while using header tag and ob_end_flush after header('location:..')
while using the mysql_fetch_array('query here'); you dont need to know the field name in advance .But if you use mysql_fetch_assoc('query here'); you must know the field name in advance. exampe:[CODE]$rows = mysql_fetch_array( "select name, address from people"); Means you then get each of the row results as a straight array, …
This is one of the way to promote your site . Try blogging , make links and first basic seo necessities
User die() instead of mysql_query, run that query in sql in phpmyadmin and find the error , its better to find the error than solution.
for(){ if (condition) { $errors[] = 'something.'; } } echo implode('<br/>',$errors); $errors contains multiple data or indexed value if you want to show that error in a next line then user implode. hope u understand
if(isset($_POST['deleteme'])){ $count = count($_POST['multiple']); $data = $_POST['multiple']; for($i=0;$i<$count;$i++){ $id = $data[$i]; mysql_query('delete from multiple where id='.$id); } } <td><input type="checkbox" name="multiple[]" value="<?php echo $result['id']; ?>"/></td>
Using jquery: [CODE]$(":checkbox").each(function() { if($(this).val() === "") alert("Empty Fields!!"); }); [/CODE]
[CODE]function get_real_ip_addr(){ if (!empty($_SERVER['HTTP_CLIENT_IP'])){ //check ip from share internet $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ //to check ip is pass from proxy $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else{ $ip=$_SERVER['REMOTE_ADDR']; } return $ip; }[/CODE]
The End.
anandgodar